O Level Exam : Practical Question
📝 HTML
🎨 CSS
⚡ Java Script
<!DOCTYPE html> <html> <head> <title>Lists Example</title> </head> <body> <h2>My Favorite Books</h2> <!-- (a) Ordered List --> <ol> <li>Harry Potter and the Sorcerer's Stone</li> <li>The Alchemist</li> <li>To Kill a Mockingbird</li> </ol> <h2>My Hobbies</h2> <!-- (b) Unordered List --> <ul> <li>Reading</li> <li>Cooking</li> <li>Traveling</li> <li>Photography</li> </ul> <h2>Common HTML Tags</h2> <!-- (c) Definition List --> <dl> <dt><h1></dt> <dd>Defines the largest heading in HTML.</dd> <dt><p></dt> <dd>Defines a paragraph of text.</dd> <dt><a></dt> <dd>Defines a hyperlink to another page or resource.</dd> <dt><ul> and <ol></dt> <dd>Defines unordered (bulleted) and ordered (numbered) lists, respectively.</dd> </dl> </body> </html>
▶ Run Code
🖥 Output: