Reputation: 89
I use a lot of DIVs for padding and filling on my page. For example:
<div id="pd1"></div>
<div id="pd2"></div>
<div id="pd3"></div>
<div id="pd4"></div>
<div id="pd5"></div>
<div id="pd6" />
Can you tell me is the syntax I use for pd6 valid?
Upvotes: 0
Views: 85
Reputation: 1039428
No, it is not valid HTML. According to the HTML specification a <div>
tag cannot be self closing:
Start tag: required, End tag: required
Upvotes: 4