Where is my empty tag?


#1

<!DOCTYPE>
<html>
<head>
<title>Biswas Playground</title>
</head>
<body>
<p> Wher is the empty tag?</p>
<hl>Its my Playground , I am the Boss</h1>
<p>I am Debais Biswas, I am a business man but I love Computer.I play with code in codecademy</P>
<p>I am not a  student of Computer scince, from Chandpur in Bangladesh.</P>
<p>I love HTML CSS  codes , I will love all codes.</p>
<p> There is no  empty tag here.</p>
</body>
</html>

#2

HTML is case sensitive when matching opentag with endtag.

<p></p>

HTML 4 permitted uppercase tags. XHTML changed all this to strictly lowercase. HTML5 came along and accepted HTML 4 syntax if XML compliance is not a requirement. So technically, uppercase tags MAY be okay, but best practice would dictate always using lowercase to match the commonality of the development community.


#3

Also, take a look at your !DOCTYPE as you haven't declared it correctly; and make sure your h1 element has the correct syntax (Hint : the level 1 heading element is represented by the <h1> tag, not <hl>).


#4

Thank you, I got it.


#5

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