HTML Class 12
HTML Class 12
INTODUCTION
• HTML- Hyper Text Markup Language
• Used for creating web pages
• Web page- contain images, movies, sound,
information, hyperlinks
• Html documents describe a static web pages
• Tells the browsers how to display the web
pages
• Latest version of Html is HTML 5
INTODUCTION
• Specifies the document layout and specifies
the hyperlinks
• Supports multimedia
• It is not a word processing tool
• It is not a programming language
• Page-layout and hyperlink specification
language
IMPLEMENTATION
• Where to right the HTML code?
➢Text Editors
▪ Notepad or Wordpad
➢Dreamweaver
• Where to Execute?
➢ Double click the html file (or)
➢ Right Click and open with the browser
Sample Code
Sample Output
Step to create a web page using HTML
Body Section
Header appers at the top the
window
Type Description
<img align=“left/right/middle/top/bottom”>
Hyperlinking-Anchor tag
• The <a> tag defines a hyperlink, which is used
to link from one page to another.
• It is a container tag
• By default, links will appear as follows in all
browsers:
– An unvisited link is underlined and blue
– A visited link is underlined and purple
– An active link is underlined and red
Attributes
cellpadding length Specifies the space between the edge of a cell and its
content.
cellspacing length Specifies the amount of space between individual cells.
frame Above,below, Specifies which sides of the border frame surrounding a
border, table will be visible.
box,hsides,lhs,
rhs,void,vsides
rules All,cols,groups, Specifies which parts of the inside borders will appear
none,rows between cells within a table.
Example
Output
<marquee> Tag
• The HTML <marquee> tag is used for scrolling
piece of text or image displayed either
horizontally across or vertically down your web
site page depending on the settings
• Container tag
• <marquee>………</marquee>
Attributes of marquee tag
Attribute Description
width provides the width or breadth of a marquee. For example width="10" or
width="20%"
height provides the height or length of a marquee. For example height="20" or
height="30%"
direction provides the direction or way in which your marquee will allow you to scroll. The
value of this attribute can be: left, right, up or down
scrolldelay provides a feature whose value will be used for delaying among each jump.
scrollamount provides value for speeding the marquee feature
behavior provides the scrolling type in a marquee. That scrolling can be like sliding, scrolling
or alternate
loop provides how many times the marquee will loop
bgcolor provides a background color where the value will be either the name of the color
or the hexadecimal color-code.
vspace provides a vertical space and its value can be like: vspace="20" or vspace="30%"
hspace provides a horizontal space and its value can be like: vspace="20" or
vspace="30%"
Example
<sub> Tag
• The <sub> tag defines the subscript text.
Subscript text appears half a character below
the normal line and in smaller font.
• Eg. H2O
• Container tag
• <sub>………</sub>
<sup> Tag
• The <sup> tag defines the superscript text.
Superscript text appears half a character above
the normal line and in smaller font.
• Eg. X2
• Container tag
• <sup>………</sup>
<frameset> Tag
•It is used to divide the browser window into different frames and to
use different HTML document in those frames.
•Since several frames are visible in the browser window as a result
this is called frames
•cols: The cols attribute is used to create vertical frames in web browser. This attribute is
basically used to de ne the no of columns and its size inside the frameset tag.
•rows: The rows attribute is used to create horizontal frames in web browser. This attribute is
used to de ne no of rows and its size inside the frameset tag.
•border: This attribute of frameset tag de nes the width of border of each frames in pixels.
Zero value is used for no border
•frameborder: This attribute of frameset tag is used to specify whether three dimensional
border should be displayed between the frames or not for this use two values 0 and 1, where 0
de nes for no border and value 1 signi es for yes there will be border
•framespacing: This attribute of frameset tag is used to specify the amount of spacing between
the frames in a frameset. This can take any integer value as a parameter which basically
denotes the value in pixel.
fi
fi
fi
.
fi
fi
Example
<html>
<head>
<title>HTML Frames</title>
</head>
<noframes>
<body>Your browser does not support frames.</body>
</noframes>
</frameset>
</html>
Example
<html>
<head>
<title>HTML Frames</title>
</head>
<noframes>
<body>Your browser does not support frames.</body>
</noframes>
</frameset>
</html>