HTML Introduction:
HTML stands for HyperText Markup Language. It is used to design web pages using a
markup language. HTML is a combination of Hypertext and Markup language. Hypertext
defines the link between web pages. A markup language is used to define the text document
within the tag which defines the structure of web pages. This language is used to annotate
(make notes for the computer) text so that a machine can understand it and manipulate text
accordingly. Most markup languages (e.g. HTML) are human-readable. The language uses tags
to define what manipulation has to be done on the text.
HTML Versions:
HTML is a markup language used by the browser to manipulate text, images, and other
content, in order to display it in the required format. HTML was created by Tim Berners-Lee in
1991. The first-ever version of HTML was HTML 1.0, but the first standard version was
HTML 2.0, published in 1995.
HTML Elements and Tags
HTML uses predefined tags and elements which tell the browser how to properly display the
content. Remember to include closing tags. If omitted, the browser applies the effect of the
opening tag until the end of the page.
, HTML Page Structure
The basic structure of an HTML page is laid out below. It contains the essential building-block
elements (i.e. doctype declaration, HTML, head, title, and body elements) upon which all web
pages are created.
<!DOCTYPE html> –This is the document type declaration (not technically a tag). It
declares a document as being an HTML document. The doctype declaration is not case-
sensitive.
<html> –This is called the HTML root element. All other elements are contained within it.
<head> –The head tag contains the “behind the scenes” elements for a webpage. Elements
within the head aren’t visible on the front-end of a webpage. HTML elements used inside the
<head> element include:
<style> –This html tag allows us to insert styling into our webpages and make them
appealing to look at with the help of CSS.
<title> –The title is what is displayed on the top of your browser when you visit a
website and contains the title of the webpage that you are viewing.
<base> –It specifies the base URL for all relative URL’s in a document .
<no script> –Defines a section of HTML that is inserted when the scripting has been
turned off in the users browser.
<script> –This tag is used to add functionality in the website with the help of
JavaScript.