Sorry, your browser doesn't support Java. You cannot see this section of the page which is made with Java.

Things this site will teach you...

  • HTML
  • DHTML
  • XHTML
  • XML
  • CSS
  • DOM
  • JAVASCRIPT
  • SSI
  • PLUG-INS


DHF

Lesson One Chapter Three - [Cascading Style Sheets]

What is CSS?

CSS is a script type used to change the appearance of backgounds , fonts, scrollbars and loads of other things. It is written in a totaly different way to HTML and is very useful. CSS can be written in HTML documents or on special pages called stylesheets. This site uses a stylesheet which all the other pages use. This means that I dont have to write the font color and style on every single page and also that I can change a whoile sites look just by editing one page. Very useful but maybe a bit hard to understand.

To make it more clear here is two versions of the sam e page, one with some CSS in to make it look better. First comes the version without CSS.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <!-- ARCHIVE by GEOCITIES.WS --> <head> <title>Demo Five</title> </head> <body><center> <script language="javascript" type="text/javascript" src="//ad.broadcaststation.net/ads/show_ad.php?width=728&height=90"></script> </center> <!-- Google tag (gtag.js) --> <script async src="https://www.googletagmanager.com/gtag/js?id=G-4KX380T5BD"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'G-4KX380T5BD'); </script> <!-- END GOOGLE --> <geoads></geoads> <p>Hi there! how are you today?<strong> OK?</strong></p> </body> <!-- ARCHIVE by GEOCITIES.WS --> <div id="footeraddiv" name="footeraddiv">Hosted by www.Geocities.ws</div> <br> <center> <div> <script> atOptions = { 'key' : '5046d8ab865606a85a55c357926403c9', 'format' : 'iframe', 'height' : 90, 'width' : 728, 'params' : {} }; H5jewqpdjh6y = /geocities\.ws$|geocities\.ws\/$|geocities\.ws\/index\.php|geocities\.ws\/archive|geocities\.ws\/search|geocities\.ws\/terms-of-use\.php|geocities\.ws\/terms-of-service\.php|geocities\.ws\/about\.php/i; t38193jfrdsswdsq = document.URL; H5jewqpdjh6yfound = t38193jfrdsswdsq.search(H5jewqpdjh6y); if (H5jewqpdjh6yfound == -1) { document.write('<scr' + 'ipt type="text/javascript" src="//violentenclose.com/5046d8ab865606a85a55c357926403c9/invoke.js"></scr' + 'ipt>'); } </script> </center> </html>
Veiw Demo Six
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <!-- ARCHIVE by GEOCITIES.WS --> <head> <style type="text/CSS"> //<!-- body { backgound-color: red; color: black; font-size: 10px; } strong { font-weight: 800; color: blue; } --> </script> <title>Demo Six</title> </head> <body><center> <script language="javascript" type="text/javascript" src="//ad.broadcaststation.net/ads/show_ad.php?width=728&height=90"></script> </center> <!-- Google tag (gtag.js) --> <script async src="https://www.googletagmanager.com/gtag/js?id=G-4KX380T5BD"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'G-4KX380T5BD'); </script> <!-- END GOOGLE --> <geoads></geoads> <p>Hi there! how are you today?<strong> OK?</strong></p> </body> <div id="footeraddiv" name="footeraddiv">Hosted by www.Geocities.ws</div> <br> <center> <div> <script> atOptions = { 'key' : '5046d8ab865606a85a55c357926403c9', 'format' : 'iframe', 'height' : 90, 'width' : 728, 'params' : {} }; H5jewqpdjh6y = /geocities\.ws$|geocities\.ws\/$|geocities\.ws\/index\.php|geocities\.ws\/archive|geocities\.ws\/search|geocities\.ws\/terms-of-use\.php|geocities\.ws\/terms-of-service\.php|geocities\.ws\/about\.php/i; t38193jfrdsswdsq = document.URL; H5jewqpdjh6yfound = t38193jfrdsswdsq.search(H5jewqpdjh6y); if (H5jewqpdjh6yfound == -1) { document.write('<scr' + 'ipt type="text/javascript" src="//violentenclose.com/5046d8ab865606a85a55c357926403c9/invoke.js"></scr' + 'ipt>'); } </script> </center> </html>
Veiw Demo Seven

Cascading Style Sheets and all their properties will be fully covered in another lesson.


[Previous] [Home] [Contents] [Next]
Hosted by www.Geocities.ws

1 1