Lesson 13, add an ID to <h2> error



"Oops, try again. Did you remember to add the intro ID to the h2 header?"

Replace this line with your code. 
<!DOCTYPE html>
		<link type="text/css" rel="stylesheet" href="stylesheet.css"/>
		<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>
		<h3>Regular HTML Selectors</h3>
		<p>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.


To assign an id-Attribute into your HTML Element
you will have to use the assignment operator

<h2 id="intro">Introduction</h2>

You will also have to change your class-attribute's


3 posts were split to a new topic: Did you remember to set #intro's color to #B83C3A?"


2 posts were split to a new topic: I'm still confused on the part where class and id differ


Your using semicolons. Try using an equal sign instead.


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.