icabit

Untitled

Nov 23rd, 2012
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 0.85 KB | None | 0 0
  1. <!DOCTYPE>
  2. <HTML>
  3. <HEAD>
  4. <TITLE>css</TITLE>
  5. <LINK href="a.css" rel="stylesheet"/> <!-- can link more than 2 or more css files-->
  6. </HEAD>
  7. <BODY>
  8. <div id="header"> <!--t1  1 ID can only be used once in a html for example id="header" also div stands for division-->
  9. css sample
  10. </div>
  11. <div>
  12. <UL class="options"> <!--t2-->
  13. <LI>BSIT</LI>
  14. <LI>BSCS</LI>
  15. </UL>
  16. </div>
  17. <div>
  18. <ol class="options"> <!--t2-->
  19. <LI>BSIT</LI>
  20. <LI>BSCS</LI>
  21. </ol>
  22. </div>
  23. </BODY>
  24. </HTML>
  25. <!--
  26. #header{ /* # stands for id in t1*/
  27. font-size:35px;
  28. color:#ccc;
  29. background-color:#0000FF;
  30. margin:auto; /* for center*/
  31. }
  32. body{
  33. background:#5d9ab2 url('Desert.jpg') no-repeat center;
  34. width:350px;
  35. height:350px;
  36. margin:auto; /* for center*/
  37. }
  38. .options{ /* . stands for class in t2 // can be used multiple times*/
  39. background-color:#FF0000;
  40. margin:auto; /* for center*/
  41.  
  42. }
  43. -->
Advertisement
Add Comment
Please, Sign In to add comment