Website design for a purpose ict exam
Website design for a purpose ict exam
<html>
<head>
<title> My page </title>
</head>
<body>
Welcome to my first page
</body>
</html>
Web content formatting
<b>: - is a tag which is used to bold the text.
<i>: - is a tag which is used to make the text italic.
<u>:- is a tag which is used to make underline on the text.
<sup>: - is a tag which is used to make a superscript.
<sub>: - is a tag which is used to make a subscript.
<br>: - is a tag which is used to break a line.
<center>: - is a tag which is used to put the web content on
the center.
<mark>: - is a tag which is used highlight the text.
 : - is a special attribute which is used to make a space
between contents in our page.
Working on Fonts
<Font>: - is a tag which is used to change
the font of our texts.
Face: - is an attribute of <Font> tag which is
used to change the font family of the text.
Color: - is an attribute of <Font> tag which is
used to change the font color of the text.
Size: - is an attribute of <Font> tag which is
used to change the font size of the text.
Moving web contents
<Marquee>: - is a tag which is used to move
web contents (text or image) on our page.
Direction: - is an attribute of <Marquee> tag
which is used move the web contents to the left,
right, up or down.
Behavior: - is an attribute of <Marquee> tag
which is used to alternate the web contents
with in the page.
Paragraph and heading
<p>: - is a tag which is used to write a
paragraph.
Align: - is an attribute of <p> tag which is used
align a text to the left, right or center.
<hx> (x={1-6}): - is a tag which is used to
insert headings. <h1> is the larger size
whereas <h6> is the smaller.
Align: - is an attribute of <hx> tag which is used
to align a text to the left, right or center.
Creating lists
Types of lists
Unordered list
It is a bulleted list
It is used to create lists using bullets
Ordered list
It is a numbering list
It is used to create lists using numbers or letters
Nested list
It is a multi-level list (A list on another list)
It also can be a combination of ordered and unordered list
Definition list
It is used to create glossaries.
Tags (elements) used
<ul> : - is a tag which is used to create unordered
(bulleted) lists.
<ol> : - is a tag which is used to create ordered
(numbering) lists.
<li> : - is a tag which is written under <ul> and <ol> tags
and used to list out the lists.
Tags used in definition lists
<dl> : - is a tag which is the main tag in creating glossaries.
<dt> : - is a tag which is used to mention the term (word)
that is going to be defined.
<dd> : - is a tag which is used to write the definition of the
term or word used.
Creating Links
<a> (Anchor): - is a tag which is used to
create a link between different web pages.
href: - is an attribute of <a> tag which is used to
specify the linked page that is going to be
opened.
Working on Multi-media files
<img>: - is a tag which is used to insert an image in our page.
src: - is an attribute of <img> tag which is used to
mention the source of the image inserted.
height: - is an attribute of <img> tag which is used to
specify the height of the image inserted.
width: - is an attribute of <img> tag which is used to
specify the width of the image inserted.
<embed>: - is a tag which is used to insert an audio or video
file to our page.
src: - is an attribute of <embed> tag which is used to
specify the source of the file inserted.
Working on Tables
Tags (elements) used
<Table>: - Shows the beginning of inserting
a table into our page.
<Tr>: - Used to insert rows
<Td> or <Th>: - used to insert columns and
data’s.
<Td>: - Regular and left (default alignment)
<Th>: - Bold and center (default alignment)
Attributes used
Border: - Is an attribute of <Table> tag which is used to
create a border line.
Height: - Is an attribute of <Table> tag which is used to
set the height of the table
Width: - Is an attribute of <Table> tag which is used to
set the width of the table
Align: - is an attribute of
<Table>: which is used to align the table
<Tr> or <Th>: which is used align data’s
Bgcolor: - is an attribute of <Table>,<Tr>,<Th> or <Td>
tags which is used to make a background color.
Cont….
Colspan: - Is an attribute of <Td> and <Th>
tags which is used to merge cells that are
found in the same row
Rowspan: - Is an attribute of <Td> and
<Th> tags which is used to merge cells that
are found in the same column.
Caption
Caption is a tag which is used to give a
caption (title) for your table.
It is written under the <Table> tag.
<Table>
<caption>title of the table</caption>
</Table>
Working on Forms
Definition
A form is an html element which is used to
create an interaction between the user and
the web.
A form has different elements that are used
to create the interaction with the web page.
Some form elements include: Textbox,
Password box, Submit button, Reset button,
Checkbox, Radio button, Comment box, Drop
down menu (Combo box), List box
Textbox
It is a form element which is used to insert
different texts into the form on the web
page.
It can be used to insert like Names, E-mail
address, phone numbers,…
Password box
It is a form element which is used insert a
password (with hidden character) into the
form.
Submit button
It is a form element which is used send or
submit the data’s inserted into the database.
Reset button
It is a form element which is used to clear or
delete the data’s inserted on the form
elements.
Checkbox
It is a form element which is used to insert
alternative choices in our page. In a
checkbox, two or more choices can b
selected at a time.
checked: - is a special attribute which is used
one or more choices to be selected by default.
Radio (Option) button
It is a form element which is used to insert
alternative choices in our page. In a radio
button, only a single choices can be selected
at a time. Name attribute is important in
satisfying this condition.
checked: - is a special attribute which is used a
choice to be selected by default.
Tags (elements used)
<Form>: - is a tag which describes the opening
of a form.
<Input>: - is a tag which is used to insert
different form elements. Such as:
Textbox
Password box
Submit button
Reset button
Check box
Radio button
Attributes used
Type: - is an attribute of <Input> tag which is used to
specify the form element inserted.
Value: - is an attribute of <Input> tag which is used to
put label the form element.
Size: - is an attribute of <Input> tag which is used to set
the size of a text or password box.
Maxlength: - is an attribute of <Input> tag which is
used to limit the number of characters inserted in the
text or password box.
Name: - is an attribute of <Input> tag which is used to
refer the form element.
Comment box
<textarea>: - is a tag which is used to insert a
comment box on our page.
rows: - is an attribute of <textarea> tag which is
used specify the height of the comment box.
cols: - is an attribute of <textarea> tag which is
used specify the width of the comment box.
Drop down Menu (Combo box)
<select>: - is a tag which is used to insert a
drop down menu.
<option>: - is a tag which is written under
<select> tag. It is used to specify the list of
menus inserted in the drop down menu.
selected: - is a special attribute of <option> tag
which is used to display the list by default.
List box
size: - is an attribute of <select> tag which is
used to change the combo box into list box.
Multiple: - is a special attribute of <select>
tag which is used to select more than one
list at a time.
Frame
HTML frames are used to divide your
browser window into multiple sections
where each section can load a separate
HTML document.
A collection of frames in the browser
window is known as a frameset.
The window is divided into frames in a
similar way the tables are organized: into
rows and columns.
Disadvantages of Frames