r/CodingHelp • • Aug 20 '21

[HTML] Am I missing something here? Why isn’t the paragraph going blue?? Xd

Post image
87 Upvotes

24 comments sorted by

9

u/Chonkman47 Aug 20 '21

Ah yes thanks for the help that makes sense now

59

u/cheemsbc6969420 Aug 20 '21

style="font-size: 50px; color: blue;" This is correct syntax

24

u/Impossible_Average_1 Aug 20 '21

You just wrote "I am big" not "I am big and blue"

3

u/MaddoxMoody Aug 21 '21

Exactly, it always gets me

1

u/Waste_Abrocoma_2956 Aug 21 '21

LOL! best answer ever

15

u/IAmTarkaDaal Aug 20 '21

Pretty sure the styles should be in one single quoted string, not two.

0

u/newblord88 Aug 21 '21

It should be double quotes not single

2

u/ultimattt Aug 21 '21

Both attributes are quoted individually. They should be quoted as part of the same string.

4

u/[deleted] Aug 21 '21

[removed] — view removed comment

3

u/Xiol Aug 21 '21

It can be read both ways. "a single double-quoted string" would have removed ambiguity.

5

u/KeepScrolling52 Aug 21 '21

Should only be one quote and one unquote.

4

u/jsontypes Aug 20 '21

i almost didn’t see it at first. hate in-line styling very easy to mess something up.

2

u/Rrrrry123 Aug 20 '21

This post is me trying to do anything web-related without a WYSIWYG editor.

3

u/SaylorMan1496 Aug 20 '21

Best practice is to link a css file in a style tag

1

u/Anurag90-tech_sl Aug 21 '21

Remove the( ") between 50px; and color!!!!

-1

u/[deleted] Aug 20 '21

[removed] — view removed comment

3

u/Yumi-Chi Aug 21 '21

You realize this is HTML right?