Advertisement
Ammolife

Untitled

Sep 23rd, 2019
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.84 KB | None | 0 0
  1. <DOCTYPE html>
  2. <html>
  3. <head></head>
  4. <title>Edmundo</title>
  5. <meta charset="utf-8">
  6. <style>
  7. article {text-align:justify;}
  8. </style>
  9.  
  10.  
  11. <body style="background-color:#000000;color:#ffffff">
  12. <header> <h1 style="text-align:center"> Benefits of Cascading Style Sheets </h1>
  13. </header>
  14.  
  15.  
  16. <div style="width:100px;height:650px;float:left;background-color:#cc6600"> </div>
  17. <section style="width:650px;float:left">
  18. <article style="width:650px;padding:5px;background-color:#cc6600"> <h2> Using style sheets </h2>
  19. <p style="text-align:justify"> Style Sheets, or Cascading Style Sheets, are a very powerful tool for the web site developer. They allow you to take control over the look and feel of the web pages and to create a consistent design, layout, and color scheme throughout your entire site. The capabilities of style sheets have expanded greatly over the years giving the designer much more control over the appearance of their sites. Originally when HTML was first invented, style was not a consideration therefore tags were added into later releases of HTML that could add style and color to a web site, but the purpose of HTML was to define the structure of the page, not to incorporate style. Eventually Style Sheets were released as a tool to incorporate style into a web site and to take away the styling duties of HTML. As Style Sheets became more and more powerful, many of the non-structural HTML tags became obsolete and some current browser releases have even stopped recognizing them altogether. Cascading Style Sheets can be applied to a web site at three different levels: </p>
  20. </article>
  21.  
  22. <div style="width:650px"> <dl style="list-style-type:define"> <dt style="background-color:#ffff99"> <dt style="color:#000000">
  23. <article style="width:650px">
  24. <dd> <strong> External Style Sheet </strong> <dd style="background-color:#ffff99"> <dt style="text-color:#000000">
  25. <dd>External Style Sheets allow you to create a master style file where you can define all the styles for your extire web site. Any styles that are used on multiple pages of a website should be defined on the external style sheet. The external style sheet is attached to a web page using the link tab. </dd>
  26.  
  27. <dd> <strong> Embedded Style Sheet </strong> <dd style="background-color:#99bb88"> <dd style="text-color:#000000">
  28. <dd>An embedded style sheet should include styles that only apply to a single page. Any styles that are only used on one page should not be included on the external style sheet because it increases the size of the style sheet and is unnecessarily loaded by all the other pages of your site. </dd>
  29.  
  30. <dd> <strong> Inline Style Sheet </strong>
  31. <dd>An inline style sheet is used to add a style to a specific tag as an attribute. The inline style will only work on the tag it is applied to and will not affect any other tags.</dd>
  32. </article>
  33. </section>
  34. </body>
  35. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement