Reputation: 71
What is wrong here? I have to supply an id to for a codeacademy exercise.
</head>
<body>
<div class="header">
<h1
id="head-text">
</h1>
<div > <!--Add an id to this div -->
<h1> Travel Like Never Before</h1>
<h2>Whether you're looking for adventure or luxury, let us help you
plan your perfect getaway.</h2>
</div>
Upvotes: 0
Views: 58
Reputation: 14746
Just follow this code
<div id="div_custom" > <!-- -->
<h1> Travel Like Never Before</h1>
<h2>Whether you're looking for adventure or luxury, let us help you
plan your perfect getaway.</h2>
</div>
Make sure that id is unique in page.
Upvotes: 1
Reputation: 363
You can add it as shown below.
<div id="container"> <!--Add an id to this div -->
<h1> Travel Like Never Before</h1>
<h2>Whether you're looking for adventure or luxury, let us help you
plan your perfect getaway.</h2>
</div>
Upvotes: 0