HTML stands for Hypertext Markup Language, and it is the most widely used language to creating web pages and documents. It was originally invented in the early 1990 by Tim Berners-Lee, and was based on an earlier markup language called SGML (Standard Generalized Markup Language), which was based on an earlier format simply called GML (Generalized Markup Language) developed at IBM in the 1960.
Hypertext- Hypertext refers to the way in which Web pages or HTML documents are linked together. Thus, the link available on a webpage is called Hypertext.
Markup Language- As its name suggests, HTML is a Markup Language which means you use HTML to simply “mark-up” a text document with tags that tell a Web browser how to structure it to display.
Originally, HTML was developed with the intent of defining the structure of documents like paragraphs,headings, lists, and so forth to facilitate the sharing of scientific information between researchers. Now, HTML is being widely used to format web pages with the help of different tags available in HTML language.
In its simplest form, following is an example of an HTML document −
<!DOCTYPE html> <html> <head> <title> Chaudharyacademy </title> </head> <body> <h1>Basic HTML Document </h1> <p>Document content start from here.....</p> </body> </html>
Result in web Browser:-
Basic HTML Document
Document content start from here…….
As told earlier, HTML is a markup language and makes use of various tags to format the content. These tags are enclosed within angle brackets <Tag Name>. Except few tags, most of the tags have their corresponding closing tags. For example, <html> has its closing tag </html> and <body> tag has its closing tag </body> tag etc.
Above example of HTML document uses the following tags −
|This tag defines the document type and HTML version.|
|This tag encloses the complete HTML document and mainly comprises of document header which is represented by <head>…</head> and document body which is represented by <body>…</body> tags.|
|This tag represents the document’s header which can keep other HTML tags like <title>, <link> etc.|
|The <title> tag is used inside the <head> tag to mention the document title.|
|This tag represents the document’s body which keeps other HTML tags like <h1>, <div>, <p> etc.|
|This tag represents the heading.|
|This tag represents a paragraph.|
To learn HTML, you will need to study various tags and understand how they behave, while formatting a textual document. Learning HTML is simple as users have to learn the usage of different tags in order to format the text or images to make a beautiful webpage.
World Wide Web Consortium (W3C) recommends to use lowercase tags starting from HTML 4.
The <!DOCTYPE> declaration tag is used by the web browser to understand the version of the HTML used in the document. Current version of HTML is 5 and it makes use of the following declaration −
There are many other declaration types which can be used in HTML document depending on what version of HTML is being used. We will see more details on this while discussing <!DOCTYPE…> tag along with other HTML tags.