<h2> HTML Tag

In this article I will discuss <h2> tag of HTML
  • 1236

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.

Example

<html>

<head>

    <title></title>

</head>

<body>

    <h2>

        HTML:</h2>

    <dfn>Hypertext Markup Language</dfn>

    <h2>

        XHTML:</h2>

    <dfn>eXtensible HyperText Markup Language</dfn>

    <h2>

        XML:</h2>

    <dfn>Extensible Markup Language</dfn>

</body>

</html> 

 

Output

HTML:

Hypertext Markup Language

XHTML:

eXtensible HyperText Markup Language

XML:

Extensible Markup Language

Ask Your Question 
 

Got a programming related question? You may want to post your question here
 

 

© 2013 dotNetheaven. All rights reserved.