Skip to Content
HTML Pocket Reference
book

HTML Pocket Reference

by Jennifer Niederst Robbins
December 1999
Intermediate to advanced
95 pages
2h 34m
English
O'Reilly Media, Inc.
Content preview from HTML Pocket Reference

Tag Structures

The examples below show the tag structure for common web page elements. When an attribute appears in the tag, it indicates that the attribute is required.

HTML Document

The standard skeletal structure of an HTML document is as follows:

<HTML>
  <HEAD>
    <TITLE>document title</TITLE>
  </HEAD>
  <BODY>
    contents of document
  </BODY>
</HTML>

Lists

The following are examples of simple lists.

Definition list

<DL>
   <DT>
      <DD>
   <DT>
      <DD>
</DL>

Ordered (numbered) list

<OL>
   <LI>
   <LI>
   <LI>
</OL>

Unordered (bulleted) list

<UL>
   <LI>
   <LI>
   <LI>
</UL>

Nested lists

<OL>
   <LI>
   <LI>
      <UL>
         <LI>
         <LI>
      </UL>
</OL>

Linking Within a Document

The first <a> tag specifies a named fragment; the second <a> tag links back to that named fragment.

<A NAME="fragmentname" >Text</A>
...
<A HREF="#fragmentname">Link to Text</A>

Client-side Imagemap

In the example below, the image graphic.gif is an imagemap that contains two clickable areas and uses the client-side imagemap named map1.

<MAP NAME="map1" >
		<AREA SHAPE="rect" COORDS="123,20,234,40"
		HREF=http://www.oreilly.com/">
		<AREA SHAPE="circ" COORDS="111,50,25" 
		HREF="index.html">
</MAP>

<IMG SRC="graphic.gif" USEMAP="map1">

Basic Table

The following HTML sample shows the basic structure for a simple four-cell table. The number of columns is determined by the number of cells (<td>) that appear within each row (<tr>). The table in the example below has two rows and two columns.

<TABLE>
   <TR>
      <TD></TD>
      <TD></TD>
   </TR>
   <TR>
      <TD></TD>
      <TD></TD>
   </TR>
</TABLE>

Framed Document

The following code ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

HTML Pocket Reference, Second Edition

HTML Pocket Reference, Second Edition

Jennifer Niederst Robbins
HTML5

HTML5

Matthew David

Publisher Resources

ISBN: 1565925793Catalog PageErrata