How HTML5 doctype is different from normal html doctype ?
<!DOCTYPE html> is a DECLARATION. It tells browsers what version of HTML are you using, which helps them to properly render the elements on webpage.
HTML tag have three functions:
- It tells the browser that this is an HTML document.
- It represents the root of an HTML document.
- It is the container for all other HTML elements. (except for the <!DOCTYPE> tag)