Before we read about ‘What is HTML?’, let us see how it came into being.
Development Of HTML
It has been 30 years since the first website was created. In 1990, in a small office at CERN, Tim-Berner’s Lee envisaged the idea of linking documents and getting them onto public networks. Since that day, HTML has evolved continuously.
HTML is an acronym of ‘Hypertext Markup Language”. It is not a programming language. Rather, it is used to format text documents. Similarly, ‘ Hypertext’ is any text that links web pages. Thus, HTML is a language that links formatted and interactive web pages.
Now that we have a little idea about ‘What Is HTML?’, let us know more about how it has evolved:
Evolution Of HTML
The first version of HTML, HTML 1.0, was released in 1991. Subsequently, multiple versions of HTML have been created and used. Currently, HTML5, the 5th version of HTML, is used extensively to build modern web pages and web apps. “
What Is HTML Used For
Along with building dynamic web pages, HTML is also used to link these web pages. This is where Hypertext comes into play. Using Hypertext, one can navigate from one web page to another. Thus, HTML can be used to create user flows.
Let us now look at an example of a simple webpage using HTML. In this example, we will create a paragraph with the heading ‘What is HTML?’.
First Example Of HTML
<html> <head> <title> HyperText Markup Language </title> </head> <body> <h1> What is HTML </h1> <p> What is HTML? HTML is an acronym of ‘Hypertext Markup Language”. </p> </body> </html>
As you can see, HTML uses angular brackets ‘<’ & ‘>’ to differentiate the annotations from regular text. This is an extension of a previous language, SGML (Standard Generalised Markup Language). It tells the browser that the next string is a markup.
Components Of HTML
Anything between the angular brackets is known as a tag. For example, <head>, <body>, <p> are all tags.
Similarly, starting tag(eg. <head>), ending tag (eg. </head>), and everything in between is together known as an element. Here, header, body, paragraph are all elements which are pieces in itself.
Another important component of HTML is attributes. Attributes are additional characteristics and are always mentioned in starting tag. For example,
<p id= “para-1” class= “learning-HTML”>
Ceres is an ocean planet </p>
The ‘id’ and ‘class’ are the attributes used to uniquely identify with “para-1” and is a part of a class “learning-HTML”.
The statement used in between tags is not going to affect the attributes. Elements, Tags & Attributes are the important constituents of HTML which makes the modern web pages shine.
Understanding The Example
<html> tag tells the browser that this an HTML document. It contains web content in between.
<head> tag is used before the <body>. This tag mentions information about the document.
<body> tag contains the main body of the web page.
<p> tag is used to write paragraphs in a web document and <h1> tag is used to write a heading.
Similarly, you can also add an image to your webpage using the below code.
<img src="C/inserthtml.jpeg" alt="What
This tag contains two attributes: src which specifies the source of the image and alt which provides an alternate text to describe the image.
Last but not the least, let us take a look at the main functionality of HTML i.e. linking webpages. A hyperlink is used to navigate between websites. I’m sure you would have seen sentences like ‘Find more blogs here‘. Try clicking the link above. It will take you to one of the articles on this website. A hyperlink can work on both texts as well as images.
In this blog, we learned ‘What is Html?’. HTML is the most popular markup language to build websites today. You can learn more about it in our posts here!