Professional Documents
Culture Documents
HTML Tags List Lecture2
HTML Tags List Lecture2
IMAGE – used to enhance the look of a webpage and make it more interesting and
colorful.
IMAGE TYPES
GRAPHICS INTERCHANGE FORMAT(GIF) – an image saved using compression
techniques to make it smaller for download on the web. The technique used to
compress GIF files is patented, however, which means companies making products that
use the GIF format must obtain a license.
Standard GIF image – are displayed one line at a time when loading.
Interlaced GIF image – loaded all at once, starting with a blurry look and
becoming sharper as they load; good technique because a webpage visitor can see a
blurred outline of the image as it loads.
ATTRIBUTE FUNCTION
align Controls alignment; can select from bottom, middle, top, left, right
alt Alternative text to display when an image is being loaded
border Defines the border width
height Defines the height of the image; improves loading time
hspace Defines the horizontal space that separates the image from the text
src Defines the URL of the image to be loaded
vspace Defines the vertical space that separates the image from the text
width Defines the width of the image; improves loading time
THUMBNAIL IMAGE – is a smaller version of the image itself. The thumbnail is used
as link that, when clicked, will load the full-sized image.
16 PRE-DEFINED COLORS
Silver White
Gray Black
Maroon Red
Green Lime
Navy Blue
Purple Magenta
Olive Yellow
Teal Cyan
TYPES OF LINKS:
ATTRIBUTE FUNCTION
href Specifies the URL of the linked page or file
name Defines a name for the current anchor so it may be the target or
destination of another link; each anchor in a web page must use a
unique name
rel Indicates a forward relationship from the current document to the
linked document. The value of the rel attribute is a link type, such as
prev, next, index, or copyright. For example, the chapter5.html
webpage might include the tag, <a rel = “next” href = “chapter6.html”>
to indicate a link to the webpage for the next chapter, chapter6.html
rev Indicates a reverse(backward) relationship from the current document
to the linked document. The value of the rev attribute is a link type,
such as prev, next, index or copyright. For example, the
chapter5.html webpage might include the tag, <a rel = “prev” href =
“chapter4.html”> to indicate a link to the webpage for the previous
chapter, chapter4.html
type Specifies the content type(also known as media types or MIME types)
of the linked page or file to help a browser determine if it can handle
the resource type. Examples of content types include text/html,
image/jpeg, video/quicktime, application/java, text/css, and
text/javascript
E-MAIL LINK
PLANNING
ANALYSIS
TESTING
BROAD WEBSITE – is one in which the home page is the main index page, and all
other webpages are linked individually to the home page.
DEEP WEBSITE – is one that has many levels of pages, requiring the user to click
many times to reach a particular webpage. Disadvantage: time-consuming
TABLES – allow you to organize information on a webpage. It is useful when you want
to arrange text and images into rows and columns in order to make the information
straightforward and clear to the webpage visitor.
TABLE ELEMENTS
TABLE BORDER – is the line that encloses the perimeter of the table
TABLE HEADER – is the same as a heading cell – only it is any cell with bold text that
indicates the purpose of the row or column
TABLE CAPTION – is descriptive text located above or below the table that further
describes the purpose of the table.
TAG FUNCTION
<table></table> Indicates the start and end of a table
All other table tags are inserted within these tags
<tr></tr> Indicates the start and end of a table row
Rows consists of heading or data cells
<th></th> Indicates the start and end of a table heading(also called a heading
cell)
Table headings default to bold text and center-alignment
<td></td> Indicates the start and end of a data cell in a table
Data cells default to normal text and left-alignment