1. Overview of HTML Specification
The HTML identifier defines the document as containing HTML elements. It contains only the Head and Body elements.
The Head element contains HTML elements that describe the documents title, usage and relationship with other documents.
The Body element contains the text and its associated HTML elements of the document.
<HTML> <HEAD> <TITLE>The Document's Title</TITLE> </HEAD> <BODY> The document's text. </BODY>
An anchor specifies a link to another location (<A HREF>) or the value to use when linking to this location from another location (<A NAME>):
See <A HREF="http://www.hal.com/">HaL</A>'s information for more details. <A NAME="B">Section B</A> describes... ... See <A HREF="#B">Section B</A> for more information.
<ADDRESS> Newsletter editor<BR> J.R. Brown<BR> JimquickPost News, Jumquick, CT 01234<BR> Tel (123) 456 7890 </ADDRESS>
Place the <BODY> and </BODY> tags above and below the body of the text (not including the head) of your HTML document.
I think it ends <BLOCKQUOTE> <P>Soft you now, the fair Ophelia. Nymph, in thy orisons, be all my sins remembered. </BLOCKQUOTE> but I am not sure.
Every HTML document must have a head, which provides a title. Example:
<HTML> <HEAD> <TITLE>Introduction to HTML</TITLE> </HEAD>
<H1>This is a first level heading</H1> <P>There are six levels of headings. <H2>Second level heading</H2> <P>This text appears under the second level heading
Inserts a horizontal rule that spans the width of the document. Example:
<HR> <ADDRESS>, CERN</ADDRESS> </BODY>
An HTML document begins with an <HTML> tag and ends with the </HTML> tag.
Forces a line break:
Name<BR> Street address<BR> City, State Zip
<H1>This Heading Precedes the Paragraph</H1> <P>This is the text of the first paragraph. <P>This is the text of the second paragraph. Although you do not need to start paragraphs on new lines, maintaining this convention facilitates document maintenance. <P>This is the text of a third paragraph.
<PRE WIDTH="80"> This is an example of preformatted text. </PRE>
<TITLE>Title of document</TITLE>
<DL> <DT>Term<DD>This is the first definition. <DT>Term<DD>This is the second definition. </DL>
<DIR> <LI>A-H<LI>I-M <LI>M-R<LI>S-Z </DIR>
<MENU> <LI>First item in the list. <LI>Second item in the list. <LI>Third item in the list. </MENU>
<OL> <LI>Click the Web button to open the Open the URL window. <LI>Enter the URL number in the text field of the Open URL window. The Web document you specified is displayed. <LI>Click highlighted text to move from one link to another. </OL>
<UL> <LI>This is the first item in the list. <LI>This is the second item in the list. <LI>This is the third item in the list. </UL>
Suggests the rendering of the text in boldface. If boldface is not available, alternative mapping is allowed.
Specifies a citation; typically rendered as italic.
Indicates an inline example of code; typically rendered as monospaced.. Do not confuse with the <PRE> tag.
Provides typographic emphasis; typically rendered as italics.
Suggests the rendering of text in italic font, or slanted if italic is not available.
Indicates text typed by a user; typically rendered as monospaced.
Indicates a sequence of literal characters; typically rendered as monospaced..
Provides strong typographic emphasis; typically rendered as bold.
Specifies that the text be rendered in fixed-width font.
Indicates a variable name; typically rendered as italic.
Inserts the referenced graphic image into the document at the location where the element occurs.
Example:
<IMG SRC ="triangle.gif" ALT="Warning:"> Be sure to read these instructions.
The Form element contains nested elements (described below) which define user input controls and allow descriptive text to be displayed when the document is processed.
Takes these attributes: ALIGN, MAXLENGTH, NAME, SIZE, SRC, TYPE, VALUE. The type attribute can define these field types: CHECKBOX, HIDDEN, IMAGE, PASSWORD, RADIO, RESET, SUBMIT, TEXT.
For example:
<FORM METHOD="POST" action="http://www.hal.com/sample"> <P>Your name: <INPUT NAME="name" SIZE="48"> <P>Male <INPUT NAME="gender" TYPE=RADIO VALUE="male"> <P>Female <INPUT NAME="gender" TYPE=RADIO VALUE="female"> </FORM>
The Option element can only occur within a Select element. It represents one choice.
Select provides a list of choices.
<SELECT NAME="flavor"> <OPTION>Vanilla <OPTION>Strawberry <OPTION>Rum and Raisin <OPTION>Peach and Orange </SELECT>
Textarea defines a multi-line text entry input control. It contains the initial text contents of the control.
<TEXTAREA NAME="address" ROWS=64 COLS=6> HaL Computer Systems 1314 Dell Avenue Campbell California 95008 </TEXTAREA>
Generated with CERN WebMaker