Babitha3.css

347 views
270 views

Published on

Published in: Technology, Education
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
347
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
2
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Babitha3.css

  1. 1. Introduction About CCS Cascading Style Sheets (CSS) is a fantastic tool to add layout to your websites. It can save you a lot of time and it enables you to design websites in a completely new way. CSS is a must for anyone working with web design. Using CSS requires basic experience with HTML.
  2. 2. The basic CSS syntax L et's say we want a nice red color as the background of a webpage: Using HTML we could have done it like this: <body bgcolor=&quot;#FF0000&quot;> With CSS the same result can be achieved like this: body {background-color: #FF0000;}
  3. 3. Method 1: In-line (the attribute style) One way to apply CSS to HTML is by using the HTML attribute style. Building on the above example with the red background color, it can be applied like this: <html> <head> <title>Example</title> </head> <body style=&quot;background-color: #FF0000;&quot;> <p>This is a red page</p> </body> </html>
  4. 4. Method 2: Internal (the tag style) Another way is to include the CSS codes using the HTML tag <style>. For example like this: <html> <head> <title>Example</title> <style type=&quot;text/css&quot;> body {background-color: #FF0000;} </style> </head> <body> <p>This is a red page</p> </body> </html>

×