Page 129 - DCAP408_WEB_PROGRAMMING
P. 129
Unit 4: Cascading Style Sheets
CSS requires less code Notes
Tables require spacer images
Entire table has to render before content
CSS can control the order that elements download (content before images).
Increased Reach
CSS website is compatible with many different devices
In 2008 an est. 58 Million PDA’s will be sold (Source: eTForecast.com) 1/3 of the
world’s population will own a wireless device by 2010.
Cascading Style allows obtaining the full control under HTML tagging. CSS allows easily
redefining the all default properties of any HTML tag. Using CSS, you will open new unique
opportunities missing in common HTML.
Task Analyze the non programmable issues in CSS
Self Assessment
Fill in the blanks:
13. ………………….. allows unrestricted transformations of the document to precede
a CSS-like formatting.
14. …………………..can control the order that elements download (content before images).
4.8 Style Tag
The <style> tag is used to define style information for an HTML document.
Inside the style element you specify how HTML elements should render in a browser.
The required type attribute defines the content of the style element. The only possible value is
“text/css”.
The style element always goes inside the head section.
<html>
<head>
<style type=”text/css”>
h1 {color:red;}
p {color:blue;}
</style>
</head>
<body>
<h1>Header 1</h1>
<p>A paragraph.</p>
</body>
</html>
LOVELY PROFESSIONAL UNIVERSITY 123