Hyper Text Markup Language
Hypertext is text with links to other texts (Hyper – above or beyond)
Markup – symbols which indicate how the text is to be displayed
Language – a set of rules defining grammar and syntax of oral/written communications
HTML is thus a set of symbols, for a language, with syntax and grammar, for indicating how text is to be displayed in a Web browser accessing the World Wide Web
The most used language for web development
It needs a Web browser (IE, Netscape, Mozilla, Opera, FireFox, etc) to read the file, interpret the markup tags and render (display) the page
The contents of an HTML document are STATIC
An HTML document has an htm or html file extension. It can be written using a simple text editor (notepad, edit plus) or an authoring tool (Dreamweaver, Frontpage)
Case insensitive
Example:-
<HTML>
<HEAD>
<TITLE>This is my first page!</TITLE>
</HEAD>
<BODY>
Hello!
</BODY>
</HTML>
TAGS:-
html
Identifies the document as containing HTML elements.
head
Provides an unordered collection of information about the document.
Title
Contains the title of the document.
body
Specifies the beginning and end of the document body
hn
Renders text in heading style. (Where n=1,2,3,4,5,6)
p
Denotes a paragraph.
pre
Renders text in a fixed-width font.
hr
Draws a horizontal rule.
br
Special Characters :-
“ à Quotation Mark à "
& àAmpersand à &
< à Less-than-sign à <
> à Greater-than-signà>
à non-breaking spaceà
Tags :-
strong or b
Renders text in bold.
em or i
Emphasizes text, usually by rendering it in italic
u
Renders text that is underlined.
s or strike
Renders text in strike-through type
Example:-
Changing The Fonts:-
<FONT FACE=“fontname”>abc</FONT>
Where fontname is the name of font.
<FONT SIZE=“n”>abc</FONT>
Where n is the number from 1 to 7.
<FONT COLOR=“colorname”>abc</FONT>
Where colorname is the name of chosen color.
Example :-
<BODY BGCOLOR=“colorname”>…</BODY>
Where colorname is the name of chosen background color.
<HTML>
<BODY BGCOLOR="green">
<FONT COLOR="white">Hello</FONT> World
</BODY>
</HTML>
Background Image:-
►<BODY BACKGROUND=“bgimg”>…</BODY>
§Where bgimg is the name and extension of chosen background image.
<HTML>
<BODY BACKGROUND="c://a.jpg">
<FONT COLOR="green">Hello</FONT> World
</BODY>
</HTML>
Tags:-
ol
Draws lines of text as a numbered list.
ul
Draws lines of text as a bulleted list.
li
Denotes one item in a list.
Example :-
Example :-
<HTML>
<BODY>
<H1>Items:</H1>
<OL>
<LI>One</LI>
<LI>Two</LI>
</OL>
<UL>
<LI>Three</LI>
<LI>Four</LI>
</UL>
</BODY>
</HTML>
Tags:-
table
Specifies that the contained content is organized into a table with rows and columns.
th
Specifies a header column. Header columns are centered within the cell and are bold.
tr
Specifies a row in a table.
td
Specifies a cell in a table
Example:-








