HTML 4
HTML 4
Tag Description
<ol> Defines ordered list
<ul> Defines unordered list
<li> Defines list items
Attribute Description
type Type of ordering or unordering (circle,
square, disk)
1
List.html
<html> <head>
<title>Internet and WWW How to Program - Lists</title>
</head>
<body>
<h1>The Best Features of the Internet</h1> By inserting a list as an
<ul>
<li>You can meet new people from countries around
entry in another list,
the world.</li> lists can be nested.
<li>You have access to new media as it becomes public:
<ul>
<li>New games</li>
<li>New applications
<ol type = "I">
Entries for an ordered list
<li>For business</li> must be placed between the
<li>For pleasure</li></ol>
</li> <ol> and </ol> tags.
<li>Around the clock news</li>
<li>Search engines</li>
<li>Shopping</li>
<li>Programming
<ol type = "a">
<li>XML</li>
<li>Java</li>
<li>XHTML</li>
The type attribute of the
<li>Scripts</li> ordered list element allows you
<li>New languages</li></ol></li></ul></li>
<li>Links</li> to select a sequence type to
<li>Keeping in touch with old friends</li>
<li>It is the technology of the future!</li></ul>orderText
theplaced
list. between
<h1>My 3 Favorite <em>CEOs</em></h1> the em tags will be
<ol>
<li>Harvey Deitel</li> italicized.
<li>Bill Gates</li>
<li>Michael Dell</li </ol>
2
</body>
</html>
List.html
Program Output
3
Linking
Tag Description
Attribute Description
5
Program Output
6
Placing image on web page:
Tag Description
Attribute Description
7
align defines the placement side of the image
(the default is left).
Aligning text with images
Aligning text with images:
<img align="top" src="img.gif"> text </>
<img align="middle" src="img.gif"> text </>
<img align="bottom" src="img.gif"> text </>
The value of the src
attribute of the image
<html>
<head>
element is the location of
<title>Internet and WWW How to Program - Welcome</title> the image file.
</head>
<body>
Format
MP4 video/mp4
WebM video/webm
Ogg video/ogg
Optional Attributes
Format
MP3 audio/mpeg
OGG audio/ogg
WAV audio/wav
Optional Attributes