Chapter: Internet & World Wide Web HOW TO PROGRAM - The Ajax Client - Introduction to XHTML

| Study Material, Lecturing Notes, Assignment, Reference, Wiki description explanation, brief detail |

Headings - XHTML

Some text in an XHTML document may be more important than other text.

Headings

 

Some text in an XHTML document may be more important than other text. For example, the text in this section is considered more important than a footnote. XHTML provides six headings, called heading elements, for specifying the relative importance of informa-tion. Figure 4.2 demonstrates these elements (h1 through h6). Heading element h1 (line 13) is considered the most significant heading and is typically rendered in a larger font than the other five headings (lines 14–18). Each successive heading element (i.e., h2, h3, etc.) is typically rendered in a progressively smaller font.


<?xml version = "1.0" encoding = "utf-8"?>

 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"

 

"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

 

<!-- Fig. 4.2: heading.html -->

 

<!-- Heading elements h1 through h6. -->

 

<html xmlns = "http://www.w3.org/1999/xhtml">

 

<head>

 

<title>Headings</title>

 

</head>

<body>

 

<h1>Level 1 Heading</h1>

 

<h2>Level 2 heading</h2>

 

<h3>Level 3 heading</h3>

 

<h4>Level 4 heading</h4>

 

<h5>Level 5 heading</h5>

 

<h6>Level 6 heading</h6>

 

</body>

 

</html>




Study Material, Lecturing Notes, Assignment, Reference, Wiki description explanation, brief detail


Copyright © 2018-2020 BrainKart.com; All Rights Reserved. Developed by Therithal info, Chennai.