Skip to main content

Command Palette

Search for a command to run...

Understanding HTML Tags and Elements

Updated
2 min read
Understanding HTML Tags and Elements
  1. What HTML is and why we use it?

    The full form of the HTML is HyperText MarkUp Lanaguage.HyperText means the linking of the different web page and the markup means using the tag . so html is the markup language which is used to create the webpage and it structure the webpages. html is the backbone of the website. the website is the collection of the webpages.we use html because it give structure to the webpage,every browser can interpret easily by some tag and it allows to link different page like html , css and js file together.

  2. What an HTML tag is?

    html tag are the building block of webpages . tags are enclosed in angular bracket.This tag looks like this

    <h1></h1>

    <p></p>

    <hr>

    some of the tag have closing tag like h1,p etc while some tag like hr they dont need closing tag.

  3. Opening tag, closing tag, and content?

    we need to first look how the structure of element look like

    <h1>content</h1>

    element =opening tag+content+closing tag

  4. Self-closing (void) elements?

    the tag which does require any closing tag or inner content like:

    <img>

  5. Block-level vs inline elements?

    The Block level element takes whole width of the webpage while the inline element element takes space what it require.

  6. Commonly used HTML tags?

    <html>, <head>, <body>, <h1>, <p>, <a>, <img>, <div>, <span>, <ul>, <li>, <form>, <input>, and <button>.