Heading tags can also use the "align" attribute to align text.
Left alignment is the default, and will occur without special instruction.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>Welcome to HTML</title>
</head>
<body bgcolor="#bdbdbd" text="black">
<h3>This text is left aligned (the default)</h3>
<h3 align="left">This text will also be aligned to the left</h3>
<h4 align="center">This text will be aligned to the center</h4>
<h5 align="right">This text will be aligned to the right</h5>
</body>
</html>
|