HTML Basic 📌


In this lecture, we are going to talk about some basic HTML example.


HTML Documents

  1. All HTML documents need to declare the document type. <!DOCTYPE html>
  2. All HTML documents start with <html> tag itself
  3. All HTML documents end with </html> tag itself
  4. All HTML document contains the visual part of the <body> tag

HTML Headings

  1. Headings are used to create a title for the HTML document.
  2. There are 6 types of heading h1 is the most important heading & h6 is the less important heading. h1 heading is also important from an SEO perspective.
                            
    <h1> Heading number 1</h1>
    <h2> Heading number 2</h2>
    <h3> Heading number 3</h3>
    <h4> Heading number 4</h4>
    <h5> Heading number 5</h5>
    <h6> Heading number 6</h6>
                        

    This is our code preview

    1. Heading number 1

    2. Heading number 2

    3. Heading number 3

    4. Heading number 4

    5. Heading number 5
    6. Heading number 6

HTML Paragraphs

HTML paragraphs are defined with the <p> tag

                
<p> This is a paragraph </p>
<p> This is a another paragraph </p>
            

HTML Links

HTML links are defined with the <a> tag

                
<a href="https://www.html.org.in"> This is a link </a>
            

HTML Images

HTML images are defined with the <img> tag

                
<img src="html-org-in.png" alt="html.org.in" width="250" height="250" > 
            

Html Media tag

                
<video controls>
<source src="your file.mp4">
</video>
            
                
<audio controls>
<source src="your file.mp3">
</audio>
            

That's all for this lesson, see you next one.