InterviewSolution
Saved Bookmarks
| 1. |
Demonstrate Block-level Elements - Headings, logical (or document) divisions, horizontal rules, ordered lists and unordered lists with an example using Html5 |
|
Answer» Example <!DOCTYPE HTML> <html> <head> <meta charset ="UTF-8"> <title>Block Level Elements</title> </head> <body> <h1>Level 1 Heading</h1> <h2>Level 2 Heading</h2> <div>This is a LOGICAL divison<div> <HR> I will have a horizantal rule above me <ol> <li>I am part of an ORDERED list</li> <li>li stands for list item</li> <li>You can add as many as you want</li> </ol> <UL> <li>I am still a list item</li> <li>This time I am inside an un-ordered list</li> <li>Notice how I'm rendered in the browser</li> </ul> <body> </html>Output |
|