HTML 1-03
We have 3 types of lists in HTML, ordered, unordered and description lists.
Unordered List
Section titled “Unordered List”When defining a list, the first tag you use specifies the type of list you want to declare and within it you type the list items. Unordered list tag is represented by <ul> and list items by <li>
<body> <h1>About Me</h1> <h2>Introduction</h2> <p> Hi, I'm Erron Black, a passionate web developer. I love creating websites that are both functional and aesthetically pleasing. </p> <p> I've been coding for over 5 years, and I've worked with a variety of languages, but my favorite by far is HTML because it is the foundation of the web. </p> <h2>My Philosophy</h2> <blockquote> "The best way to predict the future is to invent it." - Alan Kay </blockquote> <h2>My Articles</h2> <ul> <li>How to Create a Signup Form</li> <li>Simple Recipe Page</li> <li>State and capital in Nigeria</li> <li>Travel Destinations</li> </ul></body>Comments
Section titled “Comments”Comments are used to write some information that are ignored by the browser.
<body> <!-- This is an example of a comment --> <h1>About Me</h1> <h2>Introduction</h2> <p> Hi, I'm Erron Black, a passionate web developer. I love creating websites that are both functional and aesthetically pleasing. </p> <p> I've been coding for over 5 years, and I've worked with a variety of languages, but my favorite by far is HTML because it is the foundation of the web. </p> <h2>My Philosophy</h2> <!-- My favourite quote --> <blockquote> "The best way to predict the future is to invent it." - Alan Kay </blockquote> <!-- My blog articles --> <h2>My Articles</h2> <ul> <li>How to Create a Signup Form</li> <li>Simple Recipe Page</li> <li>State and capital in Nigeria</li> <li>Travel Destinations</li> </ul></body>Use case:
Section titled “Use case:”- You encounter a bug and unsure of which part of your code might be causing it, so you might comment out some part of it and check if everything works fine, repeat this process as needed.
- Comments are used to provide documentation about what a piece of code does for yourself and others who might read or inherit your codebase.
You will find the concept of comments in every programming language you write later on
Here comes the hypertext part of the HTML. Links are used to connect pages to each other, like when you go to a corporate website and they have multiple pages such as contact, about us, terms of use etc. All these pages would be connected to each other through links.
We use an anchor tag <a> for links. The anchor tag makes use of an attribute href which is necessary to dictate the location you want to take the user.
<!-- Relative URL --><!-- This takes the user to http://yourwbesite.com/about.html --><a href="about.html">About us</a>
<!-- Absolute URL --><a href="https://instagram.com">About us</a>target attribute
Section titled “target attribute”The default behaviour of the anchor tag is to open the link in the current window. To change this behaviour, you can use the target attribute
<!-- Use target="_blank" to open the linked document in a new browser window or tab: --><a href="https://instagram.com" target="_blank">Meta - instagram</a>
<!-- The default: opens the link in the same window --><a href="/contact.html" target="_self">Contact us</a>Project Continuation
Section titled “Project Continuation”<body> <!-- This is an example of a comment --> <h1>About Me</h1> <h2>Introduction</h2> <p> Hi, I'm Erron Black, a passionate web developer. I love creating websites that are both functional and aesthetically pleasing. </p> <p> I've been coding for over 5 years, and I've worked with a variety of languages, but my favorite by far is HTML because it is the foundation of the web. </p> <h2>My Philosophy</h2> <!-- My favourite quote --> <blockquote> "The best way to predict the future is to invent it." - Alan Kay </blockquote> <!-- My blog articles --> <h2>My Articles</h2> <ul> <li>How to Create a Signup Form</li> <li>Simple Recipe Page</li> <li>State and capital in Nigeria</li> <li>Travel Destinations</li> </ul> <h2>HTML Links</h2> <p> <a href="https://google.com">This entire text will take you to the Google homepage</a> </p> <p> This <a href="https://wikipedia.com">link</a> takes you to wikipedia. </p></bodyCode so far
Section titled “Code so far”Toggle me!
About Me
Introduction
Hi, I’m Erron Black, a passionate web developer. I love creating websites that are both functional and aesthetically pleasing.
I’ve been coding for over 5 years, and I’ve worked with a variety of languages, but my favorite by far is HTML because it is the foundation of the web.
My Philosophy
“The best way to predict the future is to invent it.” - Alan Kay
My Articles
- How to Create a Signup Form
- Simple Recipe Page
- State and capital in Nigeria
- Travel Destinations
HTML Links
This entire text will take you to the Google homepage
This link takes you to wikipedia.
Images
Section titled “Images”The img tag is used to display images/grahical content on the webpage. It requires the src (source) attribute to determine the location of the intended image. An optional but recommended attribute called alt is also available in case the image cannot be rendered and also for screen readers.
First create a new folder img to keep the images
Directoryhtml_basics
- index.html
Directoryimg
- cute_dog.jpg
- doggo.jpg
<h2>Random pictures of dogs</h2><img src="./img/cute_dog.jpg" /><img src="./img/doggo.jpg" />Toggle me!
Random pictures of dogs

