HTML Basic Codes

 

<! --- --->
Comment: to document HTML design, techniques, etc; supports author comments

 

<HTML> ... </HTML>
Identifies the document as an HTML document

 

<HEAD> ... </HEAD>
The head contains the TITLE and META commands.

 

<BODY> ... </BODY>
The body contains the visible portion of the page.

 

<TITLE> ... </TITLE>
Creates a title that labels entire document, shown on the title bar and is used as a bookmark or favorite name.

The background color has changed to blue.<BODY BGCOLOR="#0000FF">
There is a background image.<BODY BACKGROUND="rainbow.jpg">
The text color has been changed to red.<BODY TEXT="#FF0000">

Heading One

<H1> ... </H1>
First-level heading

Heading Two

<H2> ... </H2>
Second-level heading

Heading Three

<H3> ... </H3>
Third-level heading

Heading Four

<H4> ... </H4>
Fourth-level heading

Heading Five

<H5> ... </H5>
Fifth-level heading

Heading Six

<H6> ... </H6>
Sixth-level heading

Link to a (url) sample page.
Link to a target name on the same page.

<A HREF="url"> ... </A>
<A NAME="text"> ... </A>
Anchor or link; provides fundamental hypertext link capabilities

This text is bold.

<B> ... </B>
Boldface, makes text bold

This text is italic.

<I> ... </I>
Italic, italicizes text

A line break does not leave
extra space between the lines

<BR>
Forces a line break, starts a new line without starting a new paragraph


<HR>
Draws a horizontal line across the page

 Red mustang graphics Red mustang graphic

<IMG SRC="url" ALT="text">
References to inline images for documents Inserts a referenced image into a document with alternate text, clickable map, & placement controls

Paragraph codes leave

extra space between the lines

<P> ... </P>
Paragraph, adds space after the paragraph.

  1. Dedman College
  2. Meadows School of the Arts
  3. Cox School of Business
  4. Perkins School of Theology
  5. Law School

<OL> ... </OL>
Ordered list, numbered list of elements

TYPE =
1 (Arabic)
i I (upper or lower case Roman)
a A (upper or lower case letters)

<LI> ... </LI>
List item, within a list of any type <LI> marks an item

  • Dedman College
  • Meadows School of the Arts
  • Cox School of Business
  • Perkins School of Theology
  • Law School

<UL> ... </UL>
Unordered list, bulleted list of elements

TYPE =
disc (solid round bullet)
round (open circle bullet)
square (square bullet)

<LI> ... </LI>
List item, within a list of any type <LI> marks an item

RAM
Random Access Memory; temporary workspace; volatile, it is erased when the machine goes off.

<DL> ... </DL>
Glossary list, a special format for terms and their definitions
<DT>
Definition term, the term being defined in a glossary list
<DD>
Definition datum, the definition for a term in a glossary list

Contact the author at the following address: xyz@abc.net

<ADDRESS> ... </ADDRESS>
Author contact information for document

Fourscore and seven years ago our forefathers brought forth ...

<BLOCKQUOTE> ... </BLOCKQUOTE>
Used to set off long quotes or citations

The Firm, perhaps the best book written by John Grisham...

<CITE> ... </CITE>
Short citation, distinctive text for citations

A sample code for an image is: <IMG SRC="imagename.gif">

<CODE> ... </CODE>
Code font, used for code samples

I would like to emphasize the importance of good grades.

<EM> ... </EM>
Emphasis, adds emphasis to enclosed text

I would like to strongly emphasize the importance of good grades.

<STRONG> ... </STRONG>
Maximum emphasis to enclosed text

Return to Help Page.