CSE352Unit1 1
CSE352Unit1 1
CSE352Unit1 1
• A web page can contain huge information including text, graphics, audio, video and
hyper links. These hyper links are the link to other web pages.
• Client-side dynamic web page: It is processed using client side scripting such as
JavaScript. And then passed in to Document Object Model (DOM).
• The name is the property you want to set. For example, the paragraph <p>
element in the example carries an attribute whose name is align, which you can
use to indicate the alignment of paragraph on the page.
• The value is what you want the value of the property to be set and always put
within quotations. The below example shows three possible values of align
attribute: left, center and right.
Option Description
_blank Opens the linked document in a new window or tab.
Opens the linked document in the same window/tab as it was
_self
clicked( that is default)
_parent Opens the linked document in the parent frame.
_top Opens the linked document in the full body of the window.
targetframe Opens the linked document in a named targetframe.
Name Salary
Ramesh Raman 5000
Shabbir Hussein 7000
• 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.
<noframes>
<body> Your browser does not support frames. </body>
</noframes>
</frameset>
</html>
CSE 352, Faculty-Ms. Preeti Kaushik
Output
<html>
<head>
<title>HTML Frames</title>
</head>
<frameset cols="25%,50%,25%">
<noframes>
</noframes>
</frameset>
<noframes>
<body> Your browser does not support frames. </body>
</noframes>
</frameset>
</html>
With the div tag, you can group large sections of HTML elements
together and format them with CSS.
<body>
<div id="contentinfo">
<p>Welcome to our website. We provide tutorials on various subjects.</p>
</div>
</body>
</html>
• The HTML <span> tag is used for grouping and applying styles to
inline elements.
• There is a difference between the span tag and the div tag. The span
tag is used with inline elements whilst the div tag is used with block-
level content.
</body>
</html>
OUTPUT
CSE 352, Faculty-Ms. Preeti Kaushik
iframe
• The <iframe> tag specifies an inline frame.
• An iframe is used to display a web page within a web page.
• An inline frame is used to embed another document within the
current HTML document.