HTML5 Syntax - HTML5 is a next version of HTML. HTML5 introduces more than 40+ HTML tags such as audio, video, header, footer, data, nav, article etc.
HTML introduces semantic tags such as
<header>
,<footer>
, <nav>
and <article>
that define the layout of a website. These semantic tags are very helpful for designers and developers.
HTML5 Doctype is short and easy to remember in comparison to HTML4 and XHTML. Let us see the basic doctype of HTML5.
Followings are the HTML5 layout tags:
<header>
, <nav>
, <section>
, <article>
, <aside>
, <figure>
, <footer>
Source Code
<!DOCTYPE html>
<html lang="en">
<head>
<title>HTML5 Page</title>
<meta charset="utf-8" />
</head>
<body>
<h4>My First HTML5 page.</h4>
</body>
</html>