Hyper Text Markup Language
Hyper Text Markup Language
Hyper Text
Text Markup
Markup
Language
Language
www.w3schools.com/html
Introduction
• A markup language combines text and extra
information about the text, this extra information
is contained in "tags," which are easily recognizable
by the < > symbols.
CODE HTML
Text Formatting Tags
• <font>..</font>: Defines the sizes, faces and colors of the
fonts on your web page. It has 3 attributes:
face: define the type of font (name)
size: define the size of font (numeric value)
color: defines the color of font (name/RGB/hexadecimal)
• <b>..</b>: Defines bold text
• <big>..</big>: Defines big text
• <em>..</em: Defines emphasized text
• <i>..</i>: Defines italic text
• <small>..</small>: Defines small text
• <strong>..</strong>: Defines strong text
• <sub>..</sub>: Defines subscripted text
• <sup>..</sup>: Defines superscripted text
• <strike>..</strike>: defines strike tag
CODE HTML
HTML Alignment and pre
formatted text tags
• <center> ..</center>: indicates a section that is center
aligned.
CODE HTML
HTML Lists
• <ul>..</ul>: defines an unordered list of items.
The list items are marked by bullets.
• <ol>..</ol>: defines an ordered list of items. The
list items are marked with numbers.
• <li>..</li>: each list item starts with this tag.
• <dl>..</dl>: defines a Definition Lists. This is a list
of terms and explanation of the terms.
• <dt>..</dt>: each definition-list term starts with
this tag.
• <dd>..</dd>: Each definition-list definition starts
with this tag.
CODE HTML
Horizontal Line tag
• <HR>:This tag draws a horizontal line (a "horizontal
rule") across the page. It has no end tag. It indicates
a division in the page. Stuff before the rule is in a
different "section" from the stuff after. It has 4
optional attributes:
size: define the height of line (numeric value)
width: define the width of line in pixels.
(numeric)
align: define the alignment of line.
(left/right/center)
color: define the color of line
(name/RGB/hexadecimal)
The Anchor Tag <a>..</a>
An anchor can point to any resource on the Web: an HTML
page, an image, a sound file, a movie, etc.
CODE HTML
HTML Tables
• <table>..</table>: Tables are defined with this tag.
CODE HTML
HTML Frames
To display more than one HTML document in the same browser
window. Each HTML document is called in a frame, and each frame is
independent of the others.
• <frameset>..</frameset>:
defines how to divide the window into frames. Each frameset
defines a set of rows or columns. The values of the rows/cols
attributes is the amount of screen area each row/column will occupy.
Frame tag has partition only, not the body tag (or page definition).
CODE HTML
HTML Forms
• <form>..</form>:
A form is an area that can contain form elements. Form
elements are elements that allow the user to enter
information in a form.
• <input>..</input>:
The type of input is specified with the type attribute. The
value of types are text, radio, button, submit, textarea,
checkbox, select (option).
CODE HTML
Assignment
• In this assignment, you will create three linked web pages on
you and your interests.
• <SELECT NAME="shipping">
<OPTION VALUE="1"> Standard
<OPTION VALUE="2"> 2-day
<OPTION VALUE="3"> Overnight
</SELECT>
OR
• <SELECT MULTIPLE NAME="interests" SIZE="4">