90 likes | 98 Views
Chapter 2 Horizontal Rules & Lists. Dreamweaver for College & Business. Adding Horizontal Rules. <hr> This tag places a horizontal rule or line across the width of the page (browser window) Does not need to be paired It can have an “ attribute ”
E N D
Chapter 2Horizontal Rules & Lists Dreamweaver forCollege & Business
Adding Horizontal Rules • <hr> • This tag places a horizontal rule or line across the width of the page (browser window) • Does not need to be paired • It can have an “attribute” • An attribute is placed in the start tag and set to a value that modifies the element <hr width=“50%”> VALUE ATTRIBUTE ELEMENT
Practice Setting Up a Horizontal Rule • Type the following code (refer to your handout) • Add two more horizontal rules that YOU determine the attributes for! <html> <head> <title>Rules</title> </head> <body> <hr> <hr width=400> <center><hr width=250></center> <hr size="4" width="50%" color="blue" align="center"> <hr size=“2” width=77% color=“red”> ADD YOUR OWN HERE </body> </html> Mrs. Wilson
Bulleted and Numbered Lists unordered list ordered list
Bulleted and Numbered Lists • The two tags that you will use for the unordered list are: • <ul> </ul> • <li> </li> • The two tags that you will use for the ordered list are: • <ol> </ol> • <li> </li>
Definition Lists • Created using the DL element, generally consist of a series of term/definition pairs (although definition lists may have other applications). • Thus, when advertising a product, one might use a definition list: Lower cost The new version of this product costs significantly less than the previous one! Easier to use We've changed the product so that it's much easier to use! Safe for kids You can leave your kids alone in a room with this product.
Defined in HTML as: <dl> <dt><strong>Lower cost</strong></dt> <dd>The new version of this product costs significantly less than the previous one!</dd> <dt><strong>Easier to use</strong></dt> <dd>We've changed the product so that it's much easier to use!</dd> <dt><strong>Safe for kids</strong></dt> <dd>You can leave your kids alone in a room with this product and they won't get hurt (not a guarantee).</dd> </dl>
Adding Comments • Comments are used to explain or clarify the HTML to the reader of the HTML document • THEY DO NOT APPEAR IN THE BROWSER WINDOW • Comments start with an angle bracket, followed by an exclamation mark and two hyphens <!--This is my comment-->
Assignment • Open a Notepad document • Begin typing your basic HTML code using the provided handout • Submit this completed assignment—code and typed version—tomorrow.