This forum is now read-only. Please use our new forums! Go to forums

0 points
Submitted by tony de araujo
over 10 years

How to post your code in the Q&A Forum

To show your code on a Q&A ticket paste your code into the text box and then follow these two step: Step 1

Step 2

Step 3

Answer 54c6870776b8feb27900027e

14 votes
Best answer

Permalink

To color a word or a phrase in red wrap it in a pair of grave accents:

`red words`

The grave accent is the symbol below the ~ on the American qwerty keyboard.

Example:

this should be red

points
Submitted by tony de araujo
about 9 years

9 comments

supercool12 almost 9 years

#continuecoding

supercool12 almost 9 years

#dinnerwasyum!

Sergeant Shift almost 9 years

nice.

supercool12 almost 9 years

: )

red7cool almost 9 years

thx always wanted to know and help other people

supercool12 almost 9 years

yeah

AlexBunt almost 9 years

For reference, the grave accent is above the TAB button on the UK qwerty keyboard.

Caleb Yin almost 9 years

var userChoice = prompt(“Do you choose rock, paper or scissors?”)

var computerChoice = Math.random()

console.log (computerChoice)

if (computerChoice <= 0.33){
    console.log("Rock");
}else if (computerChoice <= .66){
    console.log("Paper");
} else {
    console.log("Scissors");
}
AlexBunt over 8 years

Child comments don’t support formatting - only in the original post and parent comments.

Answer 5547260a51b88712ac000533

2 votes

Permalink

PS- changing browsers work, but seriously, we shouldn’t have to. There are good reasons why each of us sue the browsers we do, and it is not good to dictate to us which browsers we should use. You’re coding experts, right? I assume you can avoid making us do this?

points
Submitted by Richard
almost 9 years

4 comments

AlexBunt almost 9 years

Where did they tell you to use a certain browser?

Old browsers such as IE 8 or lower are not supported because they are very outdated and don’t contain the necessary means to use this site. In short, they CANT make this site work on them. IE9+, Chrome, Firefox, all work fine.

tony de araujo almost 9 years

Before changing browsers it is a good idea to try refreshing the browser with CTRL + f5 ( or CMD + r if on MAC). Many times the reason why it works when changing browsers is because the browser gets a fresh copy of the page from the server. Browsers are notorious for caching data in order to speed up page rendering and many times that creates a problem when we correct an exercise and resubmit

Richard almost 9 years

Many people suggested changing browsers. It is a pain.

AlexBunt almost 9 years

As long as you’re using an up to date browser - firefox, chrome, IE11 (and supposedly microsofts new browser from windows 10), codecademy should work. If not, CTRL+F5 / CTRL+SHIFT+R works for most browsers for refreshing WITHOUT CACHE.

Answer 55c516b4e39efef9d30001e1

1 vote

Permalink

amazing

points
Submitted by Marijana
over 8 years

Answer 561404cbd3292f25a4000174

1 vote

Permalink

On the index.html tab, set your

s to any classes you like—just be sure to use each of the above classes at least one time. If you’re feeling adventurous, feel free to add more!

points
over 8 years

Answer 55556c629113cbbd57000259

0 votes

Permalink

<!DOCTYPE html>
<html>
    <head>
    </head>
    <body>
        <p style="font-size:10px"> Some text for you to make tiny! </p>
        <p style="font-size:20px"> Some text for you to make normal size!</p>
        <p style="font-size:40px"> Some text for you to make super big!</p>
    </body>
</html>
enter code here
points
Submitted by cws24
almost 9 years

3 comments

Rideedee almost 9 years

you did it

iiRosie1 over 8 years

Good job you did it!

iiRosie1 over 8 years

I’ve learned it a few month ago.

Answer 5597edc376b8fe4a70000336

0 votes

Permalink

<html>

Or you could do <html> So basically in a sentence when you posting a code and its formatted it would turn out red. If it’s just the code, if would be the first <html> example.

points
Submitted by iiRosie1
over 8 years

Answer 55aa77489113cb52f6000170

0 votes

Permalink

<!DOCTYPE html>
<html>
<head>
</head>
     <body>


      </body>
      </html>
points
Submitted by dbgt321
over 8 years

Answer 5602b9399113cb7b8e000502

0 votes

Permalink

<!DOCTYPE html>
<html>
    <head>
        <title>Changing the colors!</title>
    </head>
    <body>
        <h1 style="color: green; font-size 16px">Big Heading</h1>
            <p stlye="color: violet">A giant bear and a little duck were friends.</p>
            <p style="color: red; font-size 10px">But the bear got hungry and ate the duck.</p>
    </body>
</html>
points
Submitted by hav0xcode
over 8 years

1 comments

hav0xcode over 8 years

get it

Answer 55e02ae5e39efecd57000323

-2 votes

Permalink

points
Submitted by Boti Boti
over 8 years