0
Wasn't the div tag replaced with the section tag for HTML5?
In the HTML course they say the div tag was for HTML4 and has been replaced with the section tag for HTML5. If thats the case then why is the div tag so prominently used in this app? Does it really even matter? Does it just make a difference for SEO?
1 Odpowiedź
+ 7
div tag not replaced by section tag in HTML 5. section tag added in HTML 5 to make your code looks neat.
example
1. with div:
<div id=header>...</div>
<div id=section>...</div>
<div id=footer>...</div>
2. without div (HTML5's new tags):
<header>...</header>
<section>...</section>
<footer>...</footer>
bothly give same output. it only to make your code simple and neat