In prevoius post I have told how to create a very basic html page .Now I will tell you how to create headings and paragraphs .Xhtml uses six type of headings named h1 h2 h3 h4 h5 h6 .Usually h1 is used to denote the most important part of the page and h2 and other headings come next to h1 .h1 is very important for seo .Size of default h1 is much more than othe heading but it can be cahnged with style sheet .
Writing a h1 heading
<?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”>
<html xmlns=”http://www.w3.org/1999/xhtml”>
<head>
<title >my page title</title>
</head>
<body>
<h1>my h1 heading</h1>
</body>
</html>
Writing a h2 heading
<?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”>
<html xmlns=”http://www.w3.org/1999/xhtml”>
<head>
<title >my page title</title>
</head>
<body>
<h1>my h1 heading</h1>
<h2>my h2 heading</h2>
</body>
</html>
Writing a paragraph
<?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”>
<html xmlns=”http://www.w3.org/1999/xhtml”>
<head>
<title >my page title</title>
</head>
<body>
<h1>my h1 heading</h1>
<p>paragraph line goes here</p>
</body>
</html>
You can add as many paragraphs as you want with Opening <p> and closing </p>










