w3-video.com logo

HTML5 Tutorial

Home HTML5 XAMPP .htaccess Firefox Notepad++

Share it



h1 h2 h3 h4 h5 h6 syntaxes

Syntax h1, h2, h3, h4, h5, h6 elements

each heading has:

Example h1, h2, h3, h4, h5, h6 syntax: both tags required

Valid Syntax
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<!doctype html>
<html>
<head>
<title>...</title>
</head>
<body>

<h1> ... </h1>
<h2> ... </h2>
<h3> ... </h3>
<h4> ... </h4>
<h5> ... </h5>
<h6> ... </h6>

</body>
</html>

Video demonstration h1, h2, h3, h4, h5, h6 elements, syntax

HTML5 h1, h2, h3, h4, h5, h6 elements, syntax Tutorial

min video details
00:07h1, h2, h3, h4, h5, h6 elements: syntax
00:12adding all headings in page: h1, h2, h3, h4, h5, h6
00:38 each heading has:
a start tag: e.g. <h1>
and an end tag: e.g. <⁄h1>
h1...h6 intro h1...h6 browser display h1...h6 parents - children h1...h6 outline