This forum is now read-only. Please use our new forums at discuss.codecademy.com.

HTML Basics Forum

View Course

2933 points
5533b41186f55278520000c6_295543857
Submitted by
tony de araujo
almost 4 years ago

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


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

2933 points
5533b41186f55278520000c6_295543857
Submitted by
tony de araujo
over 2 years ago

9 Comments

5703940c5917ecbfcc0003b2_537713534 supercool12 about 2 years ago

#continuecoding

5703940c5917ecbfcc0003b2_537713534 supercool12 about 2 years ago

#dinnerwasyum!

A86f7a545bb298e9d17b1b0ba5ae2a31?s=140&d=retro Sergeant Shift about 2 years ago

nice.

5703940c5917ecbfcc0003b2_537713534 supercool12 about 2 years ago

: )

6d3ba23867c4f6c15f69f5e7812b03ba?s=140&d=retro red7cool about 2 years ago

thx always wanted to know and help other people

5703940c5917ecbfcc0003b2_537713534 supercool12 about 2 years ago

yeah

7519a67f66b60c9bb1e3be005da93c9c?s=140&d=retro AlexBunt about 2 years ago

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

556e0bb2d3292fb53600075b_885190818 Caleb Yin almost 2 years ago

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");
}

7519a67f66b60c9bb1e3be005da93c9c?s=140&d=retro AlexBunt almost 2 years ago

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


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?

323 points
Picture
Submitted by
Richard
about 2 years ago

4 Comments

7519a67f66b60c9bb1e3be005da93c9c?s=140&d=retro AlexBunt about 2 years ago

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.

5533b41186f55278520000c6_295543857 tony de araujo about 2 years ago

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

Picture Richard about 2 years ago

Many people suggested changing browsers. It is a pain.

7519a67f66b60c9bb1e3be005da93c9c?s=140&d=retro AlexBunt almost 2 years ago

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.


1 vote

permalink

amazing

1125 points
55dfa0bed3292f20950003f5_930328204
Submitted by
Marijana
almost 2 years ago


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!

161 points
9b91ecc0ce3bda6d719b844b329a45b9?s=140&d=retro
Submitted by
Manuel Cardenas Gutierrez
over 1 year ago


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

113 points
A43a4dd8c43fee56a79f59ee869cf397?s=140&d=retro
Submitted by
cws24
about 2 years ago

3 Comments

541c44d8548c35b82f002a3c_228774915 Rideedee almost 2 years ago

you did it

5793e37558212240e90003fd_774329516 iiRosie1 almost 2 years ago

Good job you did it!

5793e37558212240e90003fd_774329516 iiRosie1 almost 2 years ago

I've learned it a few month ago.


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.

642 points
5793e37558212240e90003fd_774329516
Submitted by
iiRosie1
almost 2 years ago


0 votes

permalink

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


      </body>
      </html>

48 points
A7d4635e564c56c5a1e61f0a6255ec84?s=140&d=retro
Submitted by
dbgt321
almost 2 years ago


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>

34 points
Dc8e99c7cfc5e662d11d515d02acedfe?s=140&d=retro
Submitted by
hav0xcode
over 1 year ago

1 Comment

Dc8e99c7cfc5e662d11d515d02acedfe?s=140&d=retro hav0xcode over 1 year ago

get it


-2 votes

permalink

1795 points
7f23c21604dec53efaccf6c5f059c5bf?s=140&d=retro
Submitted by
Boti Boti
over 1 year ago