You are on page 1of 16

HTML

What is HTML?

 HTML(HyperText Markup Language) is the


standard markup language for Web pages.

 HTML is the code that is used to structure a web


page and its content.

 With HTML you can create your own Website.


Tags and attributes
 HTML tags help the web browser how to format and
display the contents on the webage.

 All HTML tags can have attributes.


 Attributes provide additional information about tags.
For Example :
 In the given code bgcolor is the attribute of Body tag
<body bgcolor=“red”>
Basic HTML Tags
<html>
<head>
<title> title </title>
</head>
<body>

</body>
</html>
Formatting Tags
<body bgcolor=“red”>
<h1>----- <h6> Heading tags <h1>-------</h1>
<b> Bold <b>-------</b>
<i> italics
<u> underline
<strike> strike
<font > font size,face and color
Eg:<font size=“4” color=“green” face=“Monotype
corsiva”>text </font>
Formatting Tags
 <sup> superscript eg: x <sup>2</sup>
 <sub> subscript eg:h<sub>2</sub>o
 <br> line break
 <center> to centre align the text
 <p> paragraph break

 <hr> Horizontal rule


Example:<hr size=“5” width=“75%” color=“” align=“right”>

 <Marquee> Scrolling Text


ATTRIBUTES OF MARQUEE TAG
Attribute Value Description
scroll
Defines the Defines how
behavior slide
scrolling type. many times the
alternate
content will
Is used to give a loop number scroll. If we don't
bgcolor background define this, the
colorname
color. content will
up Sets the scroll forever.
down direction for the Defines the
direction
left scrolling scrolling amount
right content. scrollamount number at each interval
Defines the in pixels. Default
pixels value is 6.
height marquee's
% Defines vertical
height.
vspace pixels space around the
Defines
marquee.
horizontal space
hspace pixels pixels Defines the
around the width
marquee. % marquee's width.
Unordered List
An unordered list is a list of items. The list items are
marked with bullets.

An unordered list starts with the <ul> tag. Each list item
starts with the <li> tag.

Inside a list item you can put paragraphs, line breaks,


images, links, other lists, etc.
Attribute of <UL> - Type
eg: <UL TYPE=“disc/circle/square”>
Ordered Lists
 Anordered list is also a list of items. The list
items are marked with numbers.
 An ordered list starts with the <ol> tag. Each
list item starts with the <li> tag.

 Attributes of <UL> - Type and start


 eg: <OL TYPE=“1/A/a/I/i”>
Definition Lists

A definition list is not a list of items. This is a list


of terms and explanation of the terms.
A definition list starts with the <dl> tag. Each
definition-list term starts with the <dt> tag. Each
definition-list definition starts with the <dd> tag.
Create a webpage as shown below:
Books I Like to Read Again
1. Book1
2. Book2
3. Book3

Book 1
Main characters :
 Character 1
 Character 2
 Character 3

You might also like