#7 Cascading Style Sheets

#7 Cascading Style Sheets - School of Information...

Info iconThis preview shows pages 1–9. Sign up to view the full content.

View Full Document Right Arrow Icon
School of Information Technology
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
CSS Basics ADVANCE HTML
Background image of page 2
CSS CSS stands for CASCADING STYLE SHEETS Styles define how to display HTML elements and are normally stored in Style Sheets All major browsers support Cascading Style Sheets
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Advantages Styles Solve a Common Problem Style Sheets Can Save a Lot of Work Multiple Styles Will Cascade Into One Browser default External style sheet Internal style sheet (inside the <head> tag) Inline style (inside an HTML element)
Background image of page 4
Internal Style Sheet <head> <style type="text/css"> body {background-color: red} p {margin-left: 20px} </style> </head>
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
External Style Sheet <head> <link rel="stylesheet" type="text/css" href="mystyle.css"> </head>
Background image of page 6
CSS Rule Defines what the Html should look like, and how it should behave in the Web Browser window. Rules can be set up to tell a specific HTML tag how to display its content,
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
selector property value selector {property: value} Syntax normally the HTML element/tag Attribute assigned to a property to
Background image of page 8
Image of page 9
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 06/14/2011 for the course COMPUTER 091 taught by Professor Rajivsir during the Summer '11 term at MIT.

Page1 / 22

#7 Cascading Style Sheets - School of Information...

This preview shows document pages 1 - 9. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online