HTML and CSS Reference
In-Depth Information
The XHTML code to create the unordered list shown in Figure 2.12 follows:
<h1>Popular Web Servers</h1>
<li>Apache Web Server</li>
<li>Microsoft IIS</li>
<li>Sun Java System Web Server</li>
Legacy Alert. You will find many Web pages that use the type attribute to configure
the numbering system of ordered lists and the bullet style of unordered lists. Be aware
that the type attribute is supported in XHTML 1.0 Transitional but is deprecated. In
Chapter 7 you will learn to use Cascading Style Sheets (CSS) to configure ordered and
unordered lists.
In this Hands-On Practice you will use heading tags and lists on the same page. Launch
Notepad or another text editor and type in the following XHTML:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
<html xmlns="" lang="en" xml:lang="en">
<title>Headings and Lists</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<h1>Web Servers and Web Browsers</h1>
<h2>Popular Web Servers</h2>
<li>Apache Web Server</li>
<li>Microsoft IIS</li>
<li>Sun Java System Web Server</li>
<h2>Popular Web Browsers</h2>
<li>Internet Explorer</li>
Save your file as heading5.html. Launch a browser and test your page. It should look
similar to the page shown in Figure 2.13. You can compare your work with the solution
in the student files (Chapter2/heading5.html).
Search WWH ::

Custom Search