WEB Development PDF
WEB Development PDF
<Head>
<title>
Head tag Title of the page Title tag
</title>
<body>
</head>
HTML
<body>
BODY
</body
</HTML>
• HTML Tags hold certain characteristics that
when declared can improve the look of the
web page.
• Background is an attribute that supports
the visual impact of the web page contents.
It can be a color or an image. The attribute
background is for the background image
while bgcolor is for background color.
• For background image:
or
This contains <i> <strong> italic and strong </strong> </i> text
Italic Italic
loads a low resolution image before the URL, relative or absolute path of the
lowsrc
image specified by the src attribute low resolution image
• Image Formats and Sources
• JPEG (Joint
Photographic Experts
Group) - primarily
intentional for
photographic images
with its support for
16.7 million colors.
• GIF (Graphics Interchange
Format) - supports a
maximum of 256 colors,
which makes them
convenient for almost all
graphics except
photographs. It is also the
only choice for putting
animation online.
• PNG (Portable Network
Graphics) - designed to
present the main features
of the GIF format
including streaming and
progressive file formats.
It also supplies greater
depth of color, catering
to images up to 24 bit in
color.
• BMP (Bitmap Image) - In
computer graphics, a
bitmap or pixmap is a type
of memory organization or
image file format used to
stockpile digital images.
• These image formats have different file
sizes depending on their resolution
and compression type. Therefore one
must consider the connection speed of
the user because the more images, the
more it take much time downloading
the web page.
Note: Alt cannot be displayed in the
web browser; it will only become visible
when the image is broken. It only shows
the name of the image typed in the alt
attribute.
• Where to Get Images for Webpage?
• If you have seen something on someone's
page that you really like, the users have to
ask permission to use it.
• As IT students, it is a must to determine if
the available pictures are for free or with a
fee. This is a must to avoid violations
against the copyright laws
• Review the Code:
• 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.
• Src stands for "source". To display an image on
a page, the encoder needs to type in the src
attribute. The value of the src attribute is the
URL of the image desired to be displayed on
the page.
• Alt attribute is used to define an "alternate
text" for an image. The "alt" attribute tells the
reader what he or she is missing on a page if
the browser can not load images. The browser
will then display the alternate text instead of
the image.
• It is a good practice to include the "alt"
attribute for each image on a page, to improve
the display and usefulness of your document
for people who have text-only browsers.
• List Tags and Its Attributes
• Table Tags
• Table Attributes
• HTML also features tags used for itemizing
or giving details with the use of list tags.
Two types of these tags are actually
equivalent of bullets and numberings in MS
Office
• Ordered List – is equivalent to the
numbering feature of MS Office. Its list
items are marked with numbers or
letters. This is appropriate list type in
itemizing anything that has something
to do with sequences, steps,
chronology or hierarchy.
<ol> - Designates the start of an ordered list.
<li> - Designates an item in the list.
</li> - Closing tag for every list item.
</ol> - Designates the end of an ordered list.
Attributes Description Value
1 – use for the regular
numbering
A – use for uppercase
alphabet
sets the type of numbering to label
type a - use for lowercase alphabet
item
I – use for uppercase Roman
Numeral
i – use for lower case Roman
Numeral
deprecated: use styles instead
specifies the starting point in a list
Any numbers, letters or
start Ex:: <ol type=”I” start=”III”>
Roman Numerals
Will start numbering from III instead
of I.
• Sample Program
• Unordered List Tag - is equivalent to
the bullets feature of MS Office. Its list
items are marked with special symbols.
• <ul> - Designates the start of an
unordered list.
• <li> - Designates an item in the list.
• </li> - Closing tag for every list item.
• </ul> - Designates the end of an
unordered list.
Attributes Description Value
disc – solid-shaded
Deprecated. Use styles bullets
instead.
circle – circular/hole
type Specifies the style of
bullets
the bullet points of the
list items square – dark square
bullets
• Sample Program
• Output
• Definition List Tag - a definition list is
not a list of single items. It is a list of
items with a description of each item
(term).
• <dl> - designates the start of definition list.
• </dl> - designates the end of definition list.
• <dt> - This specifies the term to be defined,
and has no closing tag (definition term).
• <dd> - This specifies the definition and has
no closing tag (definition description).
• Sample program
• Output
• The TABLE element characterizes a grid for
multi-dimensional data arranged in rows
and columns.
• The TABLE may contain a number of
optional elements to provide a rich
structure to the table. Here as follows:
• The optional caption element provides a
caption for the table and is followed by
optional col and colgroup elements that
specify column widths and groupings.
• The thead, tfoot, and tbody elements then
follow with groups of rows. The optional
thead and tfoot elements include header
and footer rows, respectively; and
• tbody elements supply the table's main row
groups. A row group contains tr elements
for individual rows, and each tr contains th
or td elements for header cells or data cells,
respectively.
• The process of creating an HTML table is
similar to the process that you used to
create your web page and any elements
that you may have already included in your
page such as links or frames. Coding HTML
tables into your web page is fairly easy
since you need only understand a few basic
table codes.
• Tables are defined with the <table> tag. A
table is separated into rows (with the <tr>
tag), and each row is divided into data cells
(with the <td> tag). The letters td stands for
"table data," which is the content of a data
cell. A data cell can contain text, images,
lists, paragraphs, forms, horizontal rules,
tables, etc
• Sample Output
1. Table tag
Attributes Description Value
background specifies
the cell
the background image of URL of the image
Number of columns
colspan merge multiple columns from the cell, to the
right