Unit Ii: Advanced Concepts in HTML
Unit Ii: Advanced Concepts in HTML
•Some smaller devices cannot cope with frames often because their screen is not big
enough to be divided up.
•Sometimes your page will be displayed differently on different computers due to different
screen resolution.
•The browser's back button might not work as the user hopes.
•There are still few browsers that do not support frame technology.
To use frames on a page we use <frameset> tag instead of <body> tag.
The <frameset> tag defines, how to divide the window into frames.
The rows attribute of <frameset> tag defines horizontal frames and cols attribute
defines vertical frames.
Each frame is indicated by <frame> tag and it defines which HTML document shall
open into the frame.
<noframes>
<body>Your browser does not support frames.</body>
</noframes>
</frameset>
Cols
Rows
Border
Frameborder
framespacing
Src
Name
Frameborder
Marginwidth
Marginheight
Norsize
Scrolling
longdesc
left Right
A. Dir
B. Style
C. Color
Syntax
<div>
…… Content here……
</div>
<!DOCTYPE>
<html>
<body>
<div style="border:1px solid pink;padding:20px;font-size:20px">
<p>Welcome to lpu.com, Here you get tutorials on latest technologies.</p>
<p>This is second paragraph</p>
</div>
</body>
</html>
HTML div element is used to wrap large HTML span element is used to wrap small
sections of elements. portion of texts, image etc.
Attributes
id
Class
style