What is HTML?
- HTML is the quality terminology for creating sites.
- HTML stands for Hyper Text terminology
- HTML describes the structure of web sites using markup
- HTML elements are the building blocks of HTML pages
- HTML elements are represented by tags
- HTML tags label pieces of content like "heading", "paragraph", "table", and so on
- Browsers don't display the HTML tags but use them to render the content of the page
- A Simple HTML Document
Example Explained
- The <!DOCTYPE html> declaration defines this document to be HTML5
- The <html> element is that the basis element of an HTML page
- The <head> element contains meta information about the document
- The <title> element specifies a title for the document
- The <body> element contains the visible page content
- The element defines an outsized heading
- The element defines a paragraph
HTML TagsHTML tags are element names surrounded by angle brackets:
content goes here...
- HTML tags normally are available pairs like and
- The first tag during a pair is that the beginning tag, the second tag is that the top tag
- The end tag is written a bit like the beginning tag, but with a forward slash inserted before the tag name
- Tip: the start tag is additionally called the opening tag, and thus the top tag the closing tag.
- Web Browser:
- The purpose of an online browser (Chrome, IE, Firefox, Safari) is to read HTML documents and display them.
The browser doesn't display the HTML tags, but uses them to figure out the thanks to displaying the document:
- HTML Page Structure
- The <!DOCTYPE> Declaration
- The <!DOCTYPE> declaration represents the document type and helps browsers to display sites correctly.
- It must only appear once, at the very best of the page (before any HTML tags).
- The <!DOCTYPE> declaration isn't case sensitive.
- The <!DOCTYPE> declaration for HTML is:
- <!DOCTYPE html>