Lesson 13, add an ID to <h2> error


#1


https://www.codecademy.com/en/courses/web-beginner-en-WF0CF/2/4?curriculum_id=50579fb998b470000202dc8b


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


Replace this line with your code. 
<!DOCTYPE html>
<html>
	<head>
		<link type="text/css" rel="stylesheet" href="stylesheet.css"/>
		<title>Result</title>
	</head>
	<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>
		<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.
		</p>
	</body>
</html>


#2

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

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

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


#3

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


#6

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


#7

Your using semicolons. Try using an equal sign instead.


#8

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