Master Frontend Development: Zero to Hero | Day 3 With D1codes



————— Read Here What we Have to Learn on Day 3 —————
Adding Content to the Page: HTML allows us to add various types of content to our web pages. Let’s add some more content to our web page example —————

<body> <h1>Welcome to My First Web Page!</h1> <p>This is a paragraph of text.</p> <h2>About Me</h2> <p>Hi, my name is John. I love playing video games</p> <h3>My Favorite Games</h3> <ul> <li>Minecraft</li> <li>Roblox</li> <li>Fortnite</li> </ul> <h3>My Hobbies</h3> <ol> <li>Playing soccer</li> <li>Drawing</li> <li>Reading books</li> </ol> </body>
————— Save the changes and refresh your web page in the browser. You will now see additional headings, paragraphs, and lists on your web page. Explanation: - <h2>: The <h2> element represents a subheading. - <h3>: The <h3> element represents a subheading of a lower level. - <ul>: The <ul> element creates an unordered list. - <ol>: The <ol> element creates an ordered (numbered) list. - <li>: The <li> element represents a list item within <ul> or <ol> ———————————— Result:-

No comments

Powered by Blogger.