• More Courses
  • MCQs
  • Blog Download
  • Tools
  • Contact

    HTML Introduction, Tags and Attributes

    • HTML Stands for HyperText Markup Language
    • HTML is a scripting language.
    • It is used to make web pages.
    • It was developed by Tim-Berners Lee, in 1990
    • URL Stands for Uniform Resource Locator
    • Tags are like keywords define that how a web browser will format and display the content
    • Tag control the structure of the webpage
    • A tag always begins with an open-angle bracket (<) and ends with a close-angle bracket (>).
    • There are two types of tags.
      1. Paired Tags (Container Tag) 2. Single Tags (Empty Tag, Stand Alone Tag)
    • In HTML, the container tag is the area enclosed by the beginning and ending tags. For example <h1> ... </h1>. It has an opening and closing tag.
    • The tag which does not have a closing tag is called a single tag. For example <img>
    • There are three document-level tag on HTML which are <html>, <head> and <body>
    • The first tag in pair is the start tag and the second tag is the end tag
    • Attributes are other properties of tags, which are used to provide additional information to the browser.
    • The HTML document is also called web pages
    • Empty elements are closed in the start tag. For example <br />
    • Most HTML elements can have attributes
    • With HTML, we cannot change the output by adding extra spaces or extra lines in our HTML code.
    • The browser will remove extra spaces and extra lines when the page is displayed
    • The purpose of a web browser is to read HTML documents and display them as the web page
    • The web browser does not display the HTML tags but uses the tags to interpret the content of the page
    • The text between <html> and </html> describes the web page
    • The text between <body> and </body> is displayed as a heading
    • The text between <h1> and </h1> is displayed as a heading
    • The text between <p> and </p> is displayed as a paragraph
    • There are 6 different headings in html from <h1> to <h6>
    • In HTML, default align is always left
    • Use <br /> tag if you want a line break without starting a new paragraph
    • Use <hr /> tag if you want to draw a horizontal line on the webpage
    • User <font> tag with attributes for styling text in you HTML document