HTML 5

HTML Element

Standard Elements that browser recognizes.


HTML Tags

A container for some content or other tags.
HTML Tags


Tags Nesting

Tags in Tags
Nested tags


HTML Boilerplate

This is the Standard format or skeleton of writing HTML code.
HTML Boilerplate
For CSS and JavaScript file linking :-
complete HTML Boilerplate

!DOCTYPE html :-

This shows that we are using HTML version 5.

html Tag :-

Root Tag of the html file

head tag :-

Contain Meta data of html file and this is not visible for normal user

  1. Meta tag:-

    contains meta data of html file.

  2. Link tag:-

    link html file to css file.

  3. title tag:-

    this rename the tile of name of the browser webpage name. If we did not use this then the title of the webpage will be the name of the html file (ie - index.html).

body tag :-

contains main data and information of the website it is directly visible to user. it has tags like - p, div, span etc. the most important tag is script tag


HTML attributes

attributes are used to add more information to the tag.
HTML attribute
in this type is attribute and a is value of the attribute. In attribute the value is changable and is written under inverted comma (" ").


Semantic Markup

It is the markup that relates to the "Meaning of content".
There are two types of tags:-

Note :-

  • We try to write website mostly semantic so we can guess what kind of content that section have, for that we use "Section" tag, "Header" tag, "Footer" Tag instead of "Div" tag or "span" tag.

    Some semantic markups :-

  • By using semantic tags the structure of the website become meaningful and structured.
  • Our Website become SEO friendly(Search engine optimization).
  • Website become readable and supportable for Screen Reader (Used by Blind People).
  • Improve UX (user experience).

  • HTML Entities


    html entity  
    entity
    entity 3
    entity 4

    you can check all HTML Entities here (MDN referencce).

    Note:-

    from unicode we have to convert unicode to decimal then we can write it as "&# decimal_number ;".
    from unicode we have to we can write it as "&#x unicode_number ;"


    main page :- Click Here