Bing
Bing

Reputation: 71

I am new at HTML5 Can anyone help me with this?

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

Answers (2)

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

Rajesh P
Rajesh P

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

Related Questions