Ch2 - HTML-1
Ch2 - HTML-1
Ch2 - HTML-1
HTML
Content
General concepts of Web design
Basics of HTML
HTML Tags and Attributes
Text Formatting with HTML
Tables in HTML
Forms in HTML
2
Browser Version
One of the biggest challenges in designing for the Web is dealing
with the different browsers.
In the past browsers were so incompatible that web authors were
forced to create two separate sites, one for Internet Explorer and
one for Netscape.
Things have improved dramatically now that browsers have better
support for web standards established by the World Wide Web
Consortium (W3C for short).
Nearly all browsers in use today support HTML 4.01 and XHTML
standards, with only a few exceptions. 3
A Web Page, Step by Step
Step 1: Start with content. We add raw text content and see what
browsers do with it.
Step 2: Give the document structure. We learn about HTML elements
and its structure.
Step 3: Identify text elements. You’ll describe the content using the
appropriate text elements and learn about the proper way to use HTML.
Step 4: Add an image. By adding an image to the page, we will learn
about attributes.
Step 5: Change the look with a style sheet. We learn formatting content
with CSS.
4
Step1. Start with Content
Rules Naming Conventions
It is important that you follow these rules and conventions when naming your
files:
Use proper suffixes for your files._ HTML files must end with .html (some
servers allow .htm). Web graphics must be labeled .gif or .jpg (.jpeg is also ).
Never use character spaces within filenames. It is common to use an
underline character or dash to visually such as robbins_bio. html or robbins-
bio.html.
Avoid special characters such as?, %, #, /, :, ;, •, etc. Limit filenames to
letters, numbers, underscores, and hyphens.
Filenames may be case-sensitive, depending on your server configuration.
The browser knows that any text within brackets is hidden and not
displayed in the browser window. 7
Cont.…
The element name appears in the opening tag (also called a start
tag) and again in the closing (or end) tag preceded by a slash (/).
Be careful not to use the similar backslash character in end tags.
The tags added around content are referred to as the markup.
It is important to note that an element consists of both the content
and its markup (the start and end tags).
Not all elements have content, however. Some are empty by
definition, such as the img element used to add an image to the
page.
8
Step 3: Identify Text Elements
Introducing...semantic markup
The purpose of (X)HTML is to provide meaning and structure to
the content
It is not intended to provide instructions for how the content should
look (its presentation).
Your job when marking up content is to choose the (X)HTML
element that provides the most meaningful description of the
content at hand. That is semantic markup
9
Step 4. Add an Image
we’ll add an image to the page using the img element <img>
Empty elements: are do not have text content because they are
used to provide a simple directive. E.g. image element (img), line
break (br), horizontal rule (hr).
Attributes are instructions that clarify or modify an element. For the
img element, the src (short for “source”) attribute is required, and
provides the location of the image file via its URL. The syntax for
attributes is as follows:
<element attribute-name="value">Content</element> or for empty
elements: or <element attribute-name="value" /> 10
Step 5. Change the Look with a Style Sheet
11
2. Basics of HTML
HTML, which stands for Hypertext Markup Language, is the
predominant markup language used for creating web pages.
A markup language is a set of markup tags, and HTML uses markup tags to
describe web pages.
15
16
Cont.…
<HEAD> </HEAD> The web page should have only one head tag.
The head tag starts with <head> and ends with </head>. The text or tags
that are inside the head tag will not be displayed in the browser window
One of the important tags which is put inside <head> is <title> </title> tag.
Title tags are used to give title to the browser window and it displayed at
the top left side of the window.
Title tags are also important for our search engine point of view. We should
keep most important keywords inside the title tag.
Example: <html><head><title> First Example </title></head>
18
Cont.…
Example: Here is the example of using title tag.
<head>
<title>HTML Basic tags</title>
</head>
19
3. HTML tags and their attributes
Attributes provide additional information about HTML tags.
HTML tags can have attributes
Attributes provide additional information about a tag
Attributes are always specified in the start tag
Attributes come in name/value pairs like: name="value"
The syntax for attributes is as follows:
<element attribute-name="value"> Content </element>
Style (background color, text color, font face, text size, alignment)
Formatting( bold , italic, underline, sup, sub, mark highlight, strike, del, ins )
Table
Frame
Form
22
<body> Attributes
Background Color
You can change background color of your web page by using
<BODY> tag attribute bgcolor
<body bgcolor=”green”>
Color can be specified using color name or RGB value. The
following also sets background color to green:
<body bgcolor=”#00FF00”>
23
Background Image
24
Text Color
We can also set the text color of the web page just like background
color. We use text attribute of <BODY> to do this.
<body bgcolor=”yellow” text="red">
Example:
<body bgcolor="yellow" text="#FF0000">
Page with yellow background color and red text color
25
Other <body> attributes
• alink: Sets the color for active links or selected links.
• vlink: Sets a color for visited links - that is, for linked text that you
27
Attribute of <a>
The href Attribute
The target attribute
28
The href Attribute
A link in HTML is always composed of two parts, the clickable part
(the link text) and the URL (the destination site, page or resource).
The URL is specified using href attribute. Here is an example:
29
The target attribute
It is used to specify where to display the contents of a selected
hyperlink. If set to:
_blank : then a new window will be opened to display the loaded
page
_self : then loads the new page in current window. By default its
_self.
Example: a link that opens on a new window
30
The title attribute
The title attribute is used to type a short description of the link.
If you place the cursor over the link, you will see the text in the title
attribute.
Example:
31
Linking to email
It is also possible to make a link to an e-mail address.
of a table.
HTML colors are defined using a hexadecimal notation (HEX) for the combination of Red,
The lowest value that can be given to one of the light sources is 0 (in HEX: 00). The highest
value is 255 (in HEX: FF). HEX values are specified as 3 pairs of two-digit numbers, starting
with a # sign.
Eg. <body bgcolor=”red”> and <body bgcolor=”#FF0000”> will change the background color
in to red. 34
4. Text formatting with HTML and background changing
HTML Headings
Helps to organize the document into sections, just as you might do when writing
a book.
A heading element briefly describes the topic of the section it introduces.
Headings are defined with the <h1> to <h6> tags.
<h1> defines the largest heading and <h6> the smallest heading.
Example:
sequences of paragraphs.
Along with using headings to structure your Web page, you can add
Example:
<p>This is a paragraph</p>
You can do this by using align attribute. Align attribute can be used with
Example:
The font tag is has three attributes called size, color, and face to customize your
fonts.
Font Size:
You can set the size of your font with size attribute. The range of accepted values
Example:
Instead they will default to Times New Roman of your font with size attribute.
Example:
<font face="Times New Roman" size="5"> Times New Roman </font> <br>
A visitor will only be able to see your font if they have that font installed on
their computer.
39
Font Color
You can set any font color you like using color attribute.
You can specify the color that you want by either the color name or
hexadecimal code for that color.
Example:
40
Formatting Tags
In HTML, there are many tags that you can use to enhance and change the look
of the text.
E.g. <p>The use nuclear energy needs <b> safety caution </b> because of the
42
Create Line Breaks - The <br> Element:
The <br> tag inserts a single line break.
You can also use <br /> which does the same.
Whenever you use the <br> element, anything following it starts on a new
line.
This tag is an example of an empty element, where you do not need opening
The <br /> element has a space between the characters br and the forward
slash. If you omit this space, older browsers will have trouble rendering the
line break.
E.g. Hello<br /> You come most carefully upon your hour.<br>
43
Thanks<br /> Markan
Horizontal Rules - The <hr> Element
<hr> stands horizontal rules are used to visually break up sections
of a document or used to separate content in an HTML page.
The <hr> tag creates a horizontal line in an HTML page.
44
Preserve Formatting - The <pre> Element:
Sometimes you want your text to follow the exact format of how it
is written in the HTML document.
In those cases, you can use the preformatted tag (<pre>).
The <pre> tag defines preformatted text.
Text in a pre-element is displayed in a fixed-width font, and it
preserves both spaces and line breaks.
E.g. <pre>
function testFunction( int a, int b ){
int sum = a + b;
alert (sum);
return;
}
</pre>
45
Subscript and Superscript Text:
The <sub> tag defines subscript text. Subscript text appears half a
character below the baseline.
The <sup> tag defines superscript text. Superscript text appears half
a character above the baseline.
Superscript text can be used for mathematical expressions like x2+y.
Example:
47
Bidirectional Text - <bdo> Tag
bdo stands for bidirectional override.
The <bdo> tag allows you to specify the text direction and override
the bidirectional algorithm.
This is especially useful for languages like Hebrew and Arabic
where text is written from right to left.
Example:
48
Special Characters
Characters within HTML documents that are not part of a tag are
rendered as-is by the browser.
However, some characters have special meaning and are not
directly rendered, while other characters can't be typed into the
source document from a conventional keyboard.
Special characters need either a special name or a numeric
character encoding for inclusion in an HTML document.
E.g.
49
Working with Graphics and Images
Images are very important to beautify as well as to depicts many
concepts on your web page.
It is often said that a single image is worth than thousands of words.
In HTML, images are defined with the <img> tag.
The <img> tag has attributes, but not closing tag.
51
The width and height attributes
To define the height and width of the image, rather than letting the
browser compute the size, use the height and width attributes.
The attributes:
width: sets width of the image. This can have a value like 10
(pixels) or 20% (percentage of the available window size) etc.
height: sets height of the image. This can have a value like
10(pixels) or 20% (percentage of the available window size) etc.
E.g. <img src=”coffee.png” height=”50” width=”100”>
52
The border attribute
The border attribute sets a border around the image. This will have
a value like 1 or 2 etc.
The align attribute
The align attribute sets horizontal alignment of the image and takes
value either left, right or center.
Example:
<img src="coffee.png" alt="Highland coffee" width="100"
height="100" border="2" align="right" title=“Coffee cup" />
53
The hspace and vspace attributes
hspace: sets horizontal space around the image. This will have a
value like 10 or 20% etc.
vspace: sets vertical space around the image. This will have a value
like 10 or 20% etc.
The title attribute
The title attribute specifies a text title. The browser displays the
title when the mouse passes over the link.
54
Cont.…
E.g. <body> Just checking img tag.
<img src="coffee.png" alt="Highland coffee" align="left"
hspace="50“ vspace="100“ title=“coffee cup” /> </body>
55
Tables in HTML
Creating Tables
Tables are defined with the <table> tag.
A table is divided into rows with the <tr> tag, and each row is
divided into data cells with the <td> tag.
td stands for "table data," and holds the content of a data cell.
A <td> tag can contain text, links, images, lists, forms, other tables,
etc.
Table headers
Headers in a table are defined with the <th> tag.
The text in a <th> element will be bold and centered. 56
Example:
<table border="1">
<tr>
<th>Header 1</th> <th>Header 2</th>
</tr>
<tr>
<td>row 1, cell 1</td> <td>row 1, cell 2</td>
</tr>
<tr>
<td>row 2, cell 1</td> <td>row 2, cell 2</td>
</tr>
</table>
If you do not specify a border attribute, the table will be displayed
without borders. Sometimes this can be useful, but most of the
time, we want the borders to show.
57
Attributes of table
The attributes of a table will be applied on the whole table element
which include one or more rows (<tr>), header cells (<th>) or data
cells (<td>).
Attribute Value Description
Align Left Specifies the alignment of a table according to surrounding text
Center
Right
Bgcolor rgb(x,x,x) Specifies the background color for a table
#xxxxxx
colorname
Background Image url Sets background image of the table
Border Pixels Specifies the width of the borders around a table
Bordercolor rgb(x,x,x) Specifies the color used for the border
#xxxxxx
colorname
Cellpadding Pixels Specifies the space between the cell wall and the cell content
Cellspacing Pixels Specifies the space between cells
Width Pixels Specifies the width of a table
%
Height Pixels Specifies the height of a table 58
%
Example
<table border="5" bordercolor="green" bgcolor="gray">
<tr>
<th>Column 1</th>
<th>Column 2</th>
<th>Column 3</th>
</tr>
</table> 59
Class Work
60
Class Exercise
<table border="5">
<tr>
<th>Name</th>
<th>ID</th>
<th>Course</th>
</tr>
<tr><td>Rahel</td>
<td>3478/10</td>
<tr><td>Yonathan</td>
<td>2378/10</td></tr>
<tr><td>Internet Programming</td></tr>
</table> 61
Table Cellpadding and Cellspacing
There are two attribiutes called cellpadding and cellspacing which
you will use to adjust the white space in your table cell.
Cellspacing defines the width of the border, while cellpadding
represents the distance between cell borders and the content within.
Example:
<table border="1" cellpadding="15" cellspacing="10">
<tr> <th>Name</th> <th>Salary</th> </tr>
<tr> <td>Ramesh Raman</td> <td>5000</td> </tr>
<tr> <td>Shabbir Hussein</td> <td>7000</td> </tr> </table>
62
Attributes of rows and cells
This attributes will be applicable only to the header cell or the data
cell if it is used with <th> or <td> tag while it will affect the whole
content of the row if it is used by the <tr> tag.
Attribute Value Description
Align Left | right | center | Aligns the content in a cell
justify
63
Spanning rows and cells
It’s sometimes necessary for data to span multiple rows or columns.
This is achieved via the rowspan and colspan attributes,
respectively.
<table border="1">
<tr>
<td>A cell</td>
<td>Another cell</td>
<td>Yet another cell!</td></tr>
<tr>
<td rowspan="2">A cell that spans two rows</td>
<td colspan="2">A cell that spans two columns</td></tr>
<tr>
<td>Another cell</td>
<td>The last cell</td>
</tr></table> 64
Vertical alignment of cell content
If you set your table’s width to a small value, or if you have a lot of
content in one cell and relatively little in an adjacent one,
something else becomes apparent:
web browsers vertically align content in the middle of cells.
You can use the valign attribute to set where the text is displayed
vertically.
The attribute can be added to a row or cell start tag, and set to the
desired value.
65
Using a Header, Body, and Footer:
Tables can be divided into three portions: a header, a body, and a foot.
The three elements for separating the head, body, and foot of a table are:
<thead> - to create a separate table header.
<tbody> - to indicate the main body of the table.
<tfoot> - to create a separate table footer.
Example: <table border="1" width="100%">
<thead> <tr>
<td colspan="3">This is the head of the table</td> </tr> </thead>
<tfoot> <tr>
<td colspan="3">This is the foot of the table</td> </tr> </tfoot>
<tbody> <tr>
<td>Cell 1</td> <td>Cell 2</td> <td>Cell 3</td></tr> </tbody>
<tbody> <tr>
<td>Cell 1</td> <td>Cell 2</td> <td>Cell 3</td> </tr>
<tr> Table 1: examples of table header, body and footer </tr></tbody>
</table> 66
Practice 2.1
67
Using Ordered and Unordered List
The most common HTML lists are ordered and unordered lists.
An ordered list: An unordered list:
1. The first list item List item
2. The second list item List item
3. The third list item List item
Unordered List
An unordered list starts with the <ul> tag.
Each list item starts with the <li> tag.
The list items are marked with bullets (typically small black
circles).
The “type” attribute can be used to specifies the style of the bullet
points of the list items, its value includes disc, square and circle.
68
Cont.…
Example:
<ul>
<li>Banana</li>
<li>Orange</li>
</ul>
How the HTML code above looks in a browser:
• Banana
• Orange
69
Ordered List
An ordered list starts with the <ol> tag.
Each list item starts with the <li> tag.
The list items are marked with numbers.
Example:
Types of fruits are:
<ol>
<li>Banana</li>
<li>Orange</li>
<li>Apple</li>
</ol>
How the HTML code above looks in a browser:
Types of fruits are:
1. Banana
2. Orange
3. Apple 70
The start attribute:
If you want a numbered list to start at a number other than “1,” you can use the start
Example
<ol start="17">
</ol>
The resulting list items would be numbered 17, 18, and 19, consecutively.
Start number Specifies the start point for the list items
72
Cont.…
Example:
Types of fruits are:
<ol type=”I”>
<li>Banana</li>
<li>Orange</li>
<li>Apple</li>
</ol>
This produces the following attribute:
Types of fruits are:
I. Banana
II. Orange
III. Apple
73
Nesting Lists
One list can be put inside another to create nested list.
Example:
<ol>Types of Computer:
<li>Super computer</li>
<li>Mainframe computer</li>
<li>Mini computer</li>
<li>Micro computer</li>
<ul>
<li>Desktop computer</li>
<li>Laptop Computer</li>
<li>Palmtop computer</li>
</ul>
</ol> 74
HTML Description Lists
HTML also supports description lists.
A description list is a list of terms, with a description of each term.
76
HTML Block and Inline Elements
Every HTML element has a default display value depending on
what type of element it is.
The default display value for most elements is block or inline.
Block-level Elements
A block-level element always starts on a new line and takes up the
full width available .
The <div> element is a block-level element.
Example
<span>Hello</span>
<span>World</span>
This produces the following outputs
78
Practice 2.2
Write a code that displays the courses that you are currently taking
(use unordered list)?
Write a code that displays your favorite books in order list?
Write the HTML code for the following output.
79
HTML frames implementations
Frames can divide the screen into separate windows.
*
Rows pixels Specifies the number and size of
% rows in a frameset
83
Cont.…
Example:
<frameset cols="30%,*">
<frame src="frame-one.html" />
<frame src="frame-two.html" />
</frameset>
This produces the following output:
84
Nested Frames
Framesets may be nested to any level.
Example:
<FRAMESET cols="33%, 33%, 34%">
<frame src=”one.html”>
<FRAMESET rows="40%, 50%">
<frame src=”two.html”>
<frame src=”three.html”>
</FRAMESET>
<frame src=”four.html”></FRAMESET> 85
Cont.…
You can also nest framesets, to create a combination of columns &
rows:
<frameset rows="120,*">
<frame noresize=”noresize” src="frame-one.html">
<frameset cols="150,*">
<frame src="frame-two.html">
<frame src="frame-three.html">
</frameset>
</frameset>
86
Practice 2.3
Create a web page that is divided in to three equal rows
and the first row is divided in to two columns.
87
Forms in HTML
HTML forms are used to pass data to a server.
Users generally "fill" a form by modifying its controls (entering text, selecting list
items, etc.) before submitting the form for further processing by server (e.g., to a
Web server, to a mail server, etc.).
Forms are a vital tool for the webmaster to receive information from the web surfer,
such as: their name, email address, credit card, etc.
You may store that data into a file, place an order, gather user statistics, register the
person to your web forum, or maybe subscribe them to your weekly newsletter.
A form will take input from the site visitor and then will post to your back-end
application such as CGI, ASP, PHP script etc.
Then your back-end application will do required processing on that data in whatever
way you like.
88
Cont.…
We can define the form in HTML using the <form> tag.
<form>
input elements
</form>
The most important element inside form element is the input element.
An input element can vary in many ways, depending on the type attribute.
Eg <form>
First name: <input type="text" name="firstname" /><br />
Last name: <input type="text" name="lastname" />
</form> 90
Attributes for <input type=”text”> tag
name: The name attribute is required for identifying the input field
name.
value : The value attribute specifies default text that appears in the
field when the form is loaded. When you reset a form, it returns to
this value.
size: By default, browsers display a text-entry box that is 20
characters wide, but you can change the number of characters using
the size attribute.
maxlength: By default, users can type an unlimited number of
characters in a text field regardless of its size.
You can set a maximum character limit using the maxlength
attribute if the forms processing program you are using requires it.
Eg: <input type="text" name="username" size="8"
maxlength="8">
91
Practice 2.4
Create a web page that has a form for course registration;
use your registration slip as a guide.
Create a web page that has a form for signing in to an
email.
92
Password
A password field works just like a text entry field, except the
characters are obscured from view using asterisk (*) or bullet (•)
characters, or another character determined by the browser.
<input type="password" /> defines a password field:
Eg. <form>
Password: <input type="password" name="pwd">
</form>
How the HTML code above looks in a browser:
93
Text Area
At times, you may want your users to be able enter multiple line of
text.
For these instances, use the <textarea> element that is replaced by
a multi-line, scrollable text entry box when displayed by the
browser.
Example:
94
Text Area attributes:
name – name is used to identify the text area.
rows - specifies the number of lines of text area should display.
Scrollbars will be provided if the user types more text than fits in
the allotted space.
cols - specifies the width of the text area measured in number of
characters.
Eg. <textarea name="comment" rows="5" cols="100"> Tell us
what you feel about our tutorial with 50 words or less. </textarea>
95
<form>
First name:<br> <input type="text"
name="firstname" value=“Aster"><br />
Last name:<br> <input type="text"
name="lastname" ><br>
Show Max Length <br><input type=
"text“ name="username" size="8"
maxlength="8" /><br>
Password:<br> <input type="password"
name="pwd"><br>
Write comment here <br>
<textarea name="comment" rows="15“
cols=“50"> Tell us what you feel
about our tutorial with 50 words or less.
</textarea>
</form> 96
Using Buttons, Checkboxes and Selection Lists
Radio Buttons
Radio buttons are a popular form of interaction.
Radio buttons let a user select ONE of a limited number of choices.
Only one value will be sent for a given group of radio buttons
97
Cont.…
<input type="radio"> defines a radio button.
98
Radio button attributes are:
value: sets the value of the radio button. This is the data sent to
server when the user submits the form.
checked: sets whether the radio button is checked by default or not.
It accepts the value checked.
99
Practice 2.5
Create a web page that let students choose their department; use the
list of department in your faculty as a guideline.
Use a checkbox to create a web page that will enable students to
select a subjects they enjoy most (more than one selection is
possible).
100
Checkboxes
Check boxes allow for multiple items to be selected for a certain group of
choices.
The check box's name and value attributes behave the same as a radio button.
We can defines a checkbox like <input type="checkbox" />.
Checkboxes let a user select ONE or MORE options of a limited number of
choices.
Eg. <form>
<input type="checkbox" name="vehicle" value="Bike" /> I have a bike<br />
<input type="checkbox" name="vehicle" value="Car" /> I have a car
</form>
101
Checkbox attributes are:
name: sets name of the checkbox
value: sets the value of the checkbox. This is the data sent to server when the user submits the
form.
checked: sets whether the checkbox is checked by default or not. It accepts the value checked.
<ul>
</ul>
102
Selection lists
Drop down menus are created with the <select> and <option> tags.
<select> is the list itself and each <option> is an available choice
for the user.
E.g.
Educational level: <br>
<select name="degree">
<option>Choose One</option>
<option>Some High School</option>
<option>High School Degree</option>
<option>Some College</option>
<option>Bachelor's Degree</option>
<option>Doctorate</option>
</select>
103
Attributes of Select
Attribute Value Description
disabled disabled Specifies that a drop-down list should be disabled
multiple multiple Specifies that multiple options can be selected
name text Specifies the name of a drop-down list
size number Specifies the number of visible options in a drop-
down list
Attribute of Option
Attribute value Description
selected selected Specifies whether the option is selected or not
when the form loads
104
Scrolling Lists
To make the menu display as a scrolling list, simply specify the
number of lines you’d like to be visible using the size attribute.
Example:
Select the fruits you like:
<select name="fruits" size="6" multiple="multiple">
<option>Orange</option>
<option>Apple</option>
<option selected="selected">Banana</option>
<option selected="selected">Mango</option>
<option> Avocado</option>
<option>Pineapple</option>
<option>Papaya</option>
<option>Strawberry</option>
</select>
105
Cont.…
This produce the following output
106
Grouping menu options
You can use the optgroup element to create conceptual groups of
options.
The required label attribute in the optgroup element provides the
heading for the group.
<select name="icecream" multiple="multiple“ size=“8”>
<optgroup label="traditional">
<option>vanilla</option>
<option>chocolate</option>
</optgroup>
<optgroup label="fancy">
<option>Super praline</option>
<option>Nut surprise</option>
<option>Candy corn</option>
</optgroup>
</select>
107
Cont.…
This produces the following output:
108
Button
There are a number of different kinds of buttons that can be added to web
forms.
Some are: submit button, reset button, and client side button.
Submit Button
When clicked, the submit button immediately sends the collected data in the
form to the server for processing.
Submit button is defined as follows:
<input type="submit">
Example:
<input type="image" src="coffee.png" alt="Submit" width="48"
height="48"> 112
File selection control
Web forms can collect more than just data.
They can also be used to transmit external documents from a user’s hard drive.
For example, a printing company could use a web form to receive artwork for a
business card order.
A magazine could use a form on their site to collect digital photos for a photo
contest.
The file selection control makes it possible for users to select a document from
the hard drive to be submitted with the form data.
It is added to the form using our old friend the input element with its type set to
file.
Example: <input type="file">
113
Cont.….
The browser displays a “file” input as a text field with a button that allows
the user to navigate the hard drive and select the file for upload.
Example: <input type="file" name="photo" />
</form> 114
Linking HTML Forms with PHP Scripts
115
Linking HTML Forms with PHP Scripts
The easiest way to add video or sound to your web site is to use
<embed> tag.
The src attribute of <embed> tag defines what video/audio file to
embed into the page.
This tag causes the browser itself to include controls for the
multimedia automatically.
Example:
align - determines how to align the object. It takes either center, left or right.
120