Professional Documents
Culture Documents
5th Module HTML
5th Module HTML
5th Module HTML
HTML
➢ WEB BROWSER
A web browser is a software application for retrieving, presenting, and
traversing information resources on the world wide web.
An information resource is identified by a uniform resource identified by a
uniform resource identifier (URI) and may be web page,image, video or other
piece of content.Hyperlinks present in resources enable users to easily
navigate their browsers to related resources.
The primary purpose of a web browser is to bring information resources to the
user.
Browsers are primarily intended to acess the world wide web, they can also be
used to acess information provided by webservers in private network or files
in file systems.
Example of web browsers include Microsoft,Internet explorer,Mozilla firefox,
Google Chrome.
➢ STRUCTURES OF AN HTML DOCUMENT
The body is the container for the visual part of a document. All
things written here will be shown when the document is finally
rendered. Most of the tags in HTML can be inserted in the body
section and will shape the visual aspects of the document. The
body section can include headers ,paragraph, lists, tables and
more.
➢ HTML ELEMENTS
• ELEMENTS
Elements are the structures that describe parts of an HTML document.
An elements has three parts : a start tag, content and an end tag. A tag is
markup that is denoted by < and >. An end tag includes a “/” after the <.
Elements can also have content , including other elements and text.
HTML tags tell your browser which element to present and how to
present them.Where the element appears is determined by the order in
which the tag appear.
Elements names are always case insensitive.
Elements cannot overlap each other.
Some elements allow the start or end tag to be omitted. For example
the LI tag since the elements end is implied by the next LI element or by
the end of list.
Some elements have no end tag because they have no content. For
example the BR tag for line breaks are represented only by a start tag
and are said to be empty or void elements.
• ATTRIBUTES
Each element can have attributes specified .An elements attributes
define various properties for the element.For example , the IMG element
takes SRC attribute to provide the location of the image and an ALT attribute to
give alternate text for those not loading images.
An attribute is included in the start tag only – never the end tag – and takes
the form:
Attribute-name= Attribute -value
Attribute value is delimited by single or double quote.Attribute names are
case insensitive ,but attribute values may be case sensitive.
➢ STRUCTURAL ELEMENTS
The Structural elements are used to provide structure in a web page,for
instance , indicating sections on a page with a heading , cresting a paragraph
and so on.
The commonly used structural elements are discussed below:
• Body
The body element wraps around all the content that will be
displayed on screen, such as heading ,paragraphs, images, table and so on.
It has some unique attributes, including alink, link, vlink ,text, background,
bgcolour etc.
Syntax: <body alink =” colour”
background= “uri”
bgcolor = “colour”
link =” colour”
vlink= “ colour” >
.
.
</body>
The following are the attributes of the body element:
1. alink(alink= “ colour”) : alink is short for active link.This attributes sets
the active links to a specified colour.This attributes takes as its value a
recognized colour name.
2. background (background = “ uri” ) : The background attribute is used to
display a background image on the webpage
3. bgcolor ( bgcolor = “color” ) : The bgcolor attribute of the body element
provides a mechanism for changing the default background color.
Example: <body bgcolor = “ yellow “ >
.
.
</body>
4. vlink (vlink =” color”) : The vlink attribute stands for visited link .Vlink
attribute specifies the color of the visited link.
Example; This code sets visited links to “ gray”
< body vlink = “ gray “>
.
.
</body>
• br <br>
The <br> tag inserts a single line break.The <br> tag is useful for
writing addresses or poems and it is an empty tag which means
that it has no end tag.
• hr < hr >
The <head> element is a container for metadata (data about data) and
is placed between the <html> tag and the <body> tag.HTML
metadata is data about the HTML document. Metadata is not
displayed.Metadata typically define the document title, character set,
styles, scripts, and other meta information.
• html ( <html>….. </html>
The html is the outer container for everything that appears in an html
document. The <html> tag represents the root of an HTML document.Although
the html element is the outermost element it does not contain the DOCTYPE –
the DOCTYPE must come before the html element.