Laying out your divs


#1


https://www.codecademy.com/courses/web-beginner-en-9x6JW-WnAFv/0/2?curriculum_id=50579fb998b470000202dc8b


I keep getting this error, and I'm not sure why. "Oops, try again. Did you create a

with an ID of 'header'?"


<html>
	<head>
		<link type="text/css" rel="stylesheet" href="stylesheet.css"/>
		<title></title>
	</head>
	<body>
	    <div id:"header"></div>
	    <div class:"left"></div>
	    <div class:"right"></div>
	    <div id:"footer"></div>
	</body>
</html>


#2

IDs are assigned to HTML elements with the word id and an equals sign:

<div id="first"></div>
<div id="second"></div>
<p id="intro"></p>

 <div id:"header"></div> //wrong

so write = instead of :


#3

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