What is HTML?
HTML Stands for hypertext mark-up language which is a scripting language used for the web development process.
HTML was created by Berners-Lee in late 1991 but "HTML 2.0" was the first standard HTML specification which was published in 1995. HTML 4.01 was a major version of HTML and it was published in late 1999. Though HTML 4.01 version is widely used currently we are having the HTML-5 version which is an extension to HTML 4.01, and this version was published in 2012.
HTML is a hypertext markup language that is used to create web pages. HTML is used with CSS and JavaScript to create more interactive and attractive web pages.
HTML is a lightweight markup language that is free, easy to learn, and easy to apply language used to develop webpages.
Hyper Text is derived from Hyperlink, which refers to the connections between several website pages.
Markup means we have to use tags to structure the layout and elements of the web pages.
The language combines both the hypertext and markup feature and makes it Hypertext Markup Language.
The current version of HTML is the HTML5 version which is gaining a lot of popularity because of newly added features like mobile support, modern browsers support JavaScript APIs support, database support, location access support, etc.
HTML can only define static web pages as it cannot be used to create dynamic web pages. We can use any programming or scripting language for dynamic pages like Javascript, Python, Java etc.
Note:- HTML is used to make the frontend part of a website.
- HTML deals only with the physical structure of your page, e.g., the text, an image, a button, a text input field, or a form. Essentially the building blocks or content of a webpage.
A Simple HTML Document
Example
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<h1>My First Heading</h1>
<p>My first paragraph.</p>
</body>
</html>
Explained
The
<!DOCTYPE html>
the declaration defines that this document is an HTML5 documentThe
<html>
element is the root element of an HTML pageThe
<head>
the element contains meta-information about the HTML pageThe
<title>
the element specifies a title for the HTML page (which is shown in the browser's title bar or the page's tab)The
<body>
the element defines the document's body and is a container for all the visible contents, such as headings, paragraphs, images, hyperlinks, tables, lists, etc.The
<h1>
the element defines a large headingThe
<p>
the element defines a paragraph.
Characteristics of HTML:
Easy to understand: It is the most straightforward language you can say, very easy to grasp this language and easy to develop.
Flexibility: This language is so much flexible that you can create whatever you want, a flexible way to design web pages along with the text.
Linkable: You can make linkable text like users can connect from one page to another page or website through these characteristics.
Limitless features: You can add videos, GIFs, pictures, or sound anything you want that will make the website more attractive and understandable.
Support: You can use this language to display documents on any platform like Windows, Linux, or Mac.
Not a Programming Language: HTML is not a programming language as it is only concerned with presenting information on the web. It is not used to program any logic but to give structure and semantically meaning to our website. Though we can link JavaScript code to it which is a programming language.
Language Support: HTML can support various other languages like JavaScript, Ruby, PHP, Perl, and many more. You can also able to run embed python during the runtime.