13 putting it all together


#1

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


It keeps saying Did you remember to add the intro ID to the h2 header?

This is my html code
<!DOCTYPE html>
<html>
	<head>
		<link type="text/css" rel="stylesheet" href="stylesheet.css"/> <title>Result</title>
	</head>
	<body>
		<h2>Introduction</h2>
		<h2 id="intro">First Heading</h2>
		<div h3 id="standout"></h3>
		<div p id="standout"></p>
		<h2 id="intro"></h2>
		<h3>Classes and IDs in CSS</h3>
		<p>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>
This is my css code
#intro{
color:#B83C3A}
.standout
{
color:#F7AC5F;
font-family:Verdana;}

#2

this is the code you start with:

<!DOCTYPE html>
<html>
	<head>
		<link type="text/css" rel="stylesheet" href="stylesheet.css"/>
		<title>Result</title>
	</head>
	<body>
		<h2>Introduction</h2>
		<h3>Classes and IDs in CSS</h3>
		<p>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>

you only need to add attributes, no need to add more html elements


#3

What type of attributes should I add


#4

id, but you should add it to the existing html elements, so for example:

<span>example</span>

now if want to add a style attribute, i can add it to the opening tag:

<span style="color: red">example</span>

i on purpose use elements/attributes you don't have, but id goes the same way


#5

Thank you Verry much


#6

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