Professional Documents
Culture Documents
Design
Prepared by:
Line Break
<BR>
Formatting Tags
Opening Tag Closing Tag Attribute Description
Horizontal Rule
<HR>
ALIGN="Left, Align Text- 3 choices
Center, Right"
Thickness of Horizontal
SIZE = "number" Rule
Removes Shading
NOSHADE
FONT tags
Opening Tag Closing Tag Attribute Description
Section of Text
<FONT> </FONT>
COLOR="#color Font Color
code"
</STRIKE> Strikeout
<STRIKE>
</SUB>
<SUB> Superscript Text SUB
</SUP>
<SUP> Subscript Text SUP
HTML Headings
• Headings are defined with the <h1> to <h6>
tags.
<h1> defines the largest heading.
<h6> defines the smallest heading
•Use HTML headings for headings only. Don't use
headings to make text BIG or bold.
•Search engines use your headings to index the
structure and content of your web pages.
HTML Styles
The purpose of the style attribute is:
To provide a common way to style all HTML elements.
Styles was introduced with HTML 4, as the new and
preferred way to style HTML elements. With HTML styles,
styles can be added to HTML elements directly by using the
style attribute, or indirectly by in separate style sheets (CSS
files).
You can learn using styles with CSS
Examples:
1. style="background-color:yellow"
2. style="font-size:10px"
3. style="font-family:Times"
4. style="text-align:center"
Definition LISTS
Optional list header(LH), followed by one or
more terms(DT) and definitions(DD).
A definition list is a list of terms and corres-
ponding definitions.
Definition lists are typically formatted with the
term on the left with the definition following on
the right or on the next line.
The definition text is typically indented with
respect to the term.
Definition LISTS
The opening list tag must be <DL>. It is followed
by an optional list header (<LH>caption</LH>)
and then by term names (<DT>) and definitions
(<DD>).
For example:
<DL> <LH>My Favorites</LH>
<DT>Song<dd>This is My LIFE!!!<br> I love this one…
<DT>Author<dd>Carole Mortimer
<p>WOW!!! </DL>
LISTS
List tags define lists of elements that may
be displayed as bulleted or numbered
lists, glossary entries with definitions,
and menu formats. All of these layouts
are useful when organizing lists of items
or elements to improve their readability.
Unordered LISTS
An unordered list is a list of items. The list items
are marked with bullets (typically small black
circles).
An unordered list starts with the <ul> tag. Each
list item starts with the <li> tag.
<html><body>
<h4>An Unordered List:</h4>
<ul>
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ul>
</body></html>
Ordered LISTS
Ordered Lists
An ordered list is also a list of items. The
list items are marked with numbers.
An ordered list starts with the <ol> tag.
Each list item starts with the <li> tag.
<ol>
<li>Coffee</li>
<li>Milk</li>
</ol>
Types of Ordered LISTS
<h4>Numbered list:</h4>
<ol> <h4>Roman numbers list:</h4>
<li>Apples</li>
<ol type="I">
<li>Bananas</li>
<li>Lemons</li> <li>Apples</li>
<li>Oranges</li> <li>Bananas</li>
</ol> <li>Lemons</li>
<li>Oranges</li>
<h4>Letters list:</h4>
</ol>
<ol type="A">
<li>Apples</li>
<li>Bananas</li> <h4>Lowercase Roman numbers
<li>Lemons</li> list:</h4>
<li>Oranges</li> <ol type="i">
</ol>
<li>Apples</li>
<h4>Lowercase letters list:</h4> <li>Bananas</li>
<ol type="a"> <li>Lemons</li>
<li>Apples</li> <li>Oranges</li>
<li>Bananas</li> </ol>
<li>Lemons</li>
<li>Oranges</li>
</ol>
Types of Unordered LISTS
<h4>Disc bullets list:</h4> <h4>Square bullets
<ul type="disc“ >
<li>Apples</li>
list:</h4>
<li>Bananas</li> <ul type="square">
<li>Lemons</li> <li>Apples</li>
<li>Oranges</li>
</ul>
<li>Bananas</li>
<li>Lemons</li>
<h4>Circle bullets list:</h4> <li>Oranges</li>
<ul type="circle“ > </ul>
<li>Apples</li>
<li>Bananas</li>
<li>Lemons</li>
<li>Oranges</li>
</ul>
The Graphics Images
The Image Tag and the SRC Attribute
In HTML, images are defined with the <img> tag.
The <img> tag is empty, which means that it contains
attributes only and it has no closing tag.
To display an image on a page, you need to use the src
attribute. Src stands for "source". The value of the src
attribute is the URL of the image you want to display on your
page.
The syntax of defining an image:
Hyperlinks are created using the anchor tag.
<a command="target">Highlighted Text</a>
Commands for this tag can be:
• href - Signifies a hyperlink.
• name -Signifies a specified location on page.
• The anchor tag requires a closing tag- </a>
Links in Files
Linking in the same document
We employ the <A> tag in this case too, but its format changes slightly.
Instead of a URL in the HREF attribute, we use names.
First, an anchor is set at the desired place in the document using the
NAME attribute. In this case :
<A NAME="top"></A>
The value of NAME attribute can be anything you want use. Also note,
that it is not necessary to enclose any text or other HTML element if the
anchor tag is used in this manner.
8.After setting an anchor with its NAME attribute you employ another set
of <A> to make a link that points to it:
<A HREF="#top" CLASS="text">Click here to go to the
top</A>.
•On clicking this link, you will be taken to the top of the page where you
have put the anchor.
•The HREF attribute takes the value of the NAME attribute mentioned
before as its value; the name is prefixed with a # symbol.
Links in Files
a href Remo vin g the Un der lin e
Text links are defined with the The default underline can be removed from
the hyperlink using style sheets. Though,
hyperlink reference anchor. you should not remove the underline from
It looks like this in your code: links within your document body, there are
<a times when this practice is acceptable.
href="target">Destination</a
> The code:
a {text-decoration : none}
Lo cat ion on Sam e Si te
To link to another page on the same
site the code would be:
<a href="samesite.htm">
Another Page</a>