13/23 Help, I don´t know. why my code does not work?


#1

HTML:

Introducción


CSS:

intro{

color=#B83C3A;
}

#2

general css syntax:

selector {
  property: value;
}

after the property (color in your case) there should be a colon, not a equal sign


#3

Not work .











Regular HTML Selectors


If you don't bother with a class or ID, an HTML element just gets
the regular CSS styling for that element—or the default styling if you
don't specify any particular styling on the stylesheet.



intro {

color: #b83c3a;
}
.standout {
color: #f7ac5f;
font-family: Verdana;
}


#4

i would like to see your html code. if you edit/update your question, leave a reply so i get a notification. Your html code is not visible, take the following steps to make it visible:


#5

ml>








Regular HTML Selectors


If you don't bother with a class or ID, an HTML element just gets
the regular CSS styling for that element—or the default styling if you
don't specify any particular styling on the stylesheet.




#6

still no good, select your code, then press ctrl + k (unless you are on mac)


#7

Thanks, guys

:smile:


#8

I need help on this it keeps saying "Did you remember to add the intro ID to the h2 header?"


#9

Please post your code, can't do anything without code


#11

What do I need to change on my HTML code? I've gone blank with selecting only the first h3 and p...?
Any help much appreciated

<h2 id="intro"></h2>
	<h3 class="standout"></h3>
	<p class="standout"></p>

#12

your paragraph and headings do not seem to contain any content:

<p>i am a paragraph with content</p>

#13

i'm getting the reply: Oops, try again. Did you remember to add the intro ID to the h2 header?

</body>
	<h2 id="intro">Introduction</h2>
	<h3 class="standout">Classes and IDs in CSS</h3>
	<p class="standout">Classes and IDs are super easy in CSS. You're using them right now!</p>
</html>

I'm not sure what you mean sorry...indent preformatted text by 4 spaces


#14

works fine, maybe you hit a glitch? try a different browser as workaround


#15

Hmm i've tried on another browser and it's still not working. Do you mind posting your HTML so I can check if it works? Cheers


#16

Nope sorry, i don't do that. Can i see your full code one more time? I am confused by your code that your headings and paragraph are outside body


#17

Ah no worries, thank you that comment helped enough. I hadn't put it in the correct place.


#18

depending on whether you are calling a class or an id you need to place a # or a . in front of intro:

.intro {

or

#intro{

#20

Ya, this is the form you want to follow

selector {
property: value;
}


#21