The HTML h2 tag is used for specifying level 2 headings. There are 6 levels of headings (h1 - h6) with h1 the most important and h6 the least important.
h2
h1
h6
Example
<html>
<head>
<title></title>
</head>
<body>
<h2>
HTML:</h2>
<dfn>Hypertext Markup Language</dfn>
XHTML:</h2>
<dfn>eXtensible HyperText Markup Language</dfn>
XML:</h2>
<dfn>Extensible Markup Language</dfn>
</body>
</html>
Output
Ask Your Question