Oct 24, 2019 in HTML
Q: How are tags migrated from HTML4 to HTML5?

1 Answer

0 votes
Oct 24, 2019

No. Typical HTML4 Typical HTML5

1) <div id="header"> <header>

2) <div id="menu"> <nav>

3) <div id="content"> <section>

4) <div id="post"> <article>

5) <div id="footer"> <footer>

Header and Footer Example

HTML 4 Header and Footer:

<div id="header">  

  <h1>Monday Times</h1>  

</div>  

.  

.  

.  

<div id="footer">  

  <p>&copy; JavaTpoint. All rights reserved.</p>  

</div>  

HTML 5 Header and Footer:

<header>  

  <h1>Monday Times</h1>  

</header>  

.  

.  

.  

<footer>  

  <p>© JavaTpoint. All rights reserved.</p>  

</footer>  

Menu Example

HTML 4 Menu:

<div id="menu">  

  <ul>  

    <li>News</li>  

    <li>Sports</li>  

    <li>Weather</li>  

  </ul>  

</div>  

HTML 5 Menu:

<nav>  

  <ul>  

    <li>News</li>  

    <li>Sports</li>  

    <li>Weather</li>  

  </ul>  

</nav>  

Related questions

0 votes
Feb 11, 2020 in HTML
0 votes
Oct 24, 2019 in HTML
...