Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE>
- <HTML>
- <HEAD>
- <TITLE>css</TITLE>
- <LINK href="a.css" rel="stylesheet"/> <!-- can link more than 2 or more css files-->
- </HEAD>
- <BODY>
- <div id="header"> <!--t1 1 ID can only be used once in a html for example id="header" also div stands for division-->
- css sample
- </div>
- <div>
- <UL class="options"> <!--t2-->
- <LI>BSIT</LI>
- <LI>BSCS</LI>
- </UL>
- </div>
- <div>
- <ol class="options"> <!--t2-->
- <LI>BSIT</LI>
- <LI>BSCS</LI>
- </ol>
- </div>
- </BODY>
- </HTML>
- <!--
- #header{ /* # stands for id in t1*/
- font-size:35px;
- color:#ccc;
- background-color:#0000FF;
- margin:auto; /* for center*/
- }
- body{
- background:#5d9ab2 url('Desert.jpg') no-repeat center;
- width:350px;
- height:350px;
- margin:auto; /* for center*/
- }
- .options{ /* . stands for class in t2 // can be used multiple times*/
- background-color:#FF0000;
- margin:auto; /* for center*/
- }
- -->
Advertisement
Add Comment
Please, Sign In to add comment