Advertisement
Ammolife

HALLOWEEN NERDS Lab 7-1

Oct 31st, 2019
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.30 KB | None | 0 0
  1. <style>
  2. body{background-color:#008500;}p{text-align:justify;color:#ffffff;}section{background-color:#a60000;width:500px;height:200px;border:solid:#000000:4px;padding:8px;}span{background-color:#67e667;padding:5px;border:solid:#000000:1px;font-weight:bold;}
  3. </style>
  4.  
  5.  
  6. <body>
  7. <header> <h1 style="text-align:center;background-color:#67e667;color:#ffffff;line-height:70px">Cascading Style Sheets</h1>
  8. </header>
  9. <section>
  10. <span>External Style Sheets</span>
  11. <p> External Style sheets should be used to set the overall styles for multiple pages of a web site. The style rules are defined on a separate file and attached to the pages of the site that use those styles. </p>
  12. </section>
  13. <section style="margin-top:-50px;margin-left:50px">
  14. <span> Embedded Style Sheets </span>
  15. <p> Embedded Style sheets should be used to set the style rules for a single page. The style rules are defined within the heading of the document between style tags.</p>
  16. </section>
  17. <section style="margin-top:-50px;margin-left:100px"> Inline Style sheets
  18. <span> Inline Style Sheets </span>
  19. <p>Inline Style sheets are defined on the individual tag as an attribute. They are used to add style to a single tag, or override a higher level style rule. The range of the inline style ends with the tag is applied to.</p>
  20. </section>
  21. </body>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement