HTML - I Notes Students
HTML - I Notes Students
HTML - I Notes Students
HTML-I
BASIC HTML ELEMENTS
A Tag is a coded HTML command that indicates how part of web page should
be displayed. All HTML tags are contained with angle brackets (< >) e.g.,
<HEAD> is a tag. Similarly <H1> is a tag.
ATTRIBUTE
<HTML>
The <HEAD> tag contains
<HEAD> information about the
document, including its
<TITLE> Title of page is written here </TITLE> title, and document
description.
</HEAD>
The <HEAD> tag is entered
between <HTML> tags.
<BODY>
This tag contains the
The HTML tags that define your page go document title. The title
here specified inside <TITLE> tag
appears on the browses’
</BODY>
title bar.
</HTML>
BODY
WHERE TO WRITE HTML CODE
CONTAINER ELEMENTS
<HTML> …………………..</HTML>
<HEAD> …………………..</HEAD>
<TITLE> …………………..</TITLE>
<B> …………………..</B>
EMPTY ELEMENTS
HTML Empty elements require just a starting tag and not an ending tag. Some
examples of Empty Container are:
<br>
<hr>
<img>
TAG ATTRIBUTE
BASIC HTML TAGS
To specify base language of web page, the LANG attribute is used. e.g.
“en” is used to specify English Language and “fr” is used to specify
French language.
HTML Tag
Type Container Element
Function Delimits a complete HTML document
Attributes DIR, LANG
Contains Head-tag, body-tag
2. The HEAD Tag
<HEAD> tag contains information about the document, including its title
and document description.
HEAD Tag
Type Container Element
Function It defines the document header.
Attributes -
Contains <Title> tag
TITLE Tag
Type Container Element
Function Define the document title.
Attributes -
Used Inside <HEAD>….</HEAD> tags
Problem: To display the web page title as ‘My First HTML Page’.
<HTML>
<HEAD>
</HEAD>
<BODY>
</BODY>
</HTML>
4. The Body Tag
The body tag defines the document’s body. It contains all the contents of an
HTML document, such as text, images, lists, table, etc.
1. Background attribute
This above statement will set pic.jpg image as background of the body of
web page.
If you want to change the color or text (by TEXT attribute), color of links (by
LINK attribute), color of active links (by ALINK attribute) and background color
(by BGCOLOR attribute ).