Welcome to Day 1 of learning HTML

Today, we will be learning about HTML structure and elements. Let's get started!


Content of Day 1 session

  1. Installtion and setup of vs code editor
  2. What is HTML ?
  3. Basic structure of HTML document
  4. Commonly used HTML tags and their purpose
  5. Creating a simple webpage using HTML

1. What is HTML ?

HTML (Hypertext Markup Language) is the standard markup language used to create web pages. It provides the structure and content of a webpage by using various tags and elements.


2. Basic structure of HTML document

An HTML document typically consists of the following structure:


3. Commonly used HTML tags and their purpose

types of Heading tags

  1. <h1>: Represents the main heading of a webpage. It is typically used for the most important title or heading on the page.
  2. <h2>: Represents a subheading of the main heading. It is used to divide content into sections and subsections.
  3. <h3>: Represents a sub-subheading of the main heading. It is used to further divide content within sections.
  4. <h4>: Represents a sub-sub-subheading of the main heading. It is used for further subdivision of content.
  5. <h5>: Represents a sub-sub-sub-subheading of the main heading. It is used for even finer subdivision of content.
  6. <h6>: Represents the least important heading level. It is rarely used but can be employed for very specific purposes.

Types of lists

creating a unordered list

Code of unordered list

                <ul>
                    <li>Item 1</li>
                    <li>Item 2</li>
                    <li>Item 3</li>
                </ul>
            

creating a ordered list

  1. First item
  2. Second item
  3. Third item

Code of ordered list

                <ol>
                    <li>First item</li>
                    <li>Second item</li>
                    <li>Third item</li>
                </ol>
            

how to change orde of ordered List

By default, an ordered list starts with the number 1. However, you can change the starting number of an ordered list by using the "start" attribute in the <ol> tag.

                <ol start="5">
                    <li>Fifth item</li>
                    <li>Sixth item</li>
                    <li>Seventh item</li>
                </ol>
            

In this example, the ordered list will start with the number 5 instead of 1. The items will be numbered as 5, 6, and 7.


Creating a sample web page

Here is a simple example of a webpage using HTML:

                <!DOCTYPE html>
                <html>
                <head>
                    <title>My First Webpage</title>
                </head>
                <body>
                    <h1>Welcome to My Webpage</h1>
                    <p>This is a simple webpage created using HTML.</p>
                    <a href="https://www.youtube.com/embed/GkZN_-HMCJ8">Click here to video content</a>
                    
                </body>
                </html>
            

This code creates a basic webpage with a heading, a paragraph, a hyperlink, and an image.



resouces of this topic

Click here to watch the video


Article on Notion

Click here to read the article