HTML elements form the building blocks of HTML pages. HTML allows images and other objects to be embedded and it can be used to create interactive forms. It provides a means to create
structured documents by denoting structural semantics for text such as headings, paragraphs, lists, links, quotes and other items. HTML elements are delineated by tags, written
using angle brackets. Tags such as
<img /> and
<input /> introduce content into the page directly. Others such as
<p>...</p> surround and provide information about document text and may include other tags as sub-elements. Browsers do not display the HTML
tags, but use them to interpret the content of the page.
HTML is a markup language used to describing the simplest form of web pages. It is the main markup language for web pages. HTML is an abbreviation and stand for HyperText Markup Language. When a web browser such as Internet Explorer, FireFox or Chrome displays a web page, what it is actually doing is reading and interpreting a HTML document. This document could be as short as 10 lines or as long as several hundred, the browser does not care – all it does is read your document.
And this is the main purpose of the HTML – to make the content of the HTML-document accessible to the web browsers. Aside from making your content accessible to the web browser, HTML also add semantics to you content – this means that the web browsers and search engines knows what type of content you’ve put up on your web page and hereby they know how to handle the content.
Basically, the purpose of HTML is to add meaning to you web pages (some believe that HTML is supposed to affect the look of you web page, but that is mostly a question of religion and we will look into it later on) so that the browser can show it.
What is the difference between regular HTML and HTML5? We will look into this question throughout the tutorial, but one thing that is important to note is, that anything you might have learned about HTML is still valid when it comes to HTML5 – you don’t have to throw anything away.
HTML5 consists of a whole lot of new features and we will look into the individual features along the way. But actually, HTML5 is not the just the fifth version of HTML – HTML5 was originally created by a group of people who was not in charge of the official HTML standard. To understand the coverage of HTML5 is no easy job – the real problem is, that a lot of people use the term HTML5 when what they actually are referring to is ”HTML5 and all its related standards, such as CSS3”.
When using HTML5 you need to know that not all the new features are supported by all browsers –Different browsers support different features and therefore you will have to do some tricks to make some of the elements of HTML5 work correctly.