HTML stands for Hyper Text Markup Language. It is a markup language used to design web pages. HTML is responsible for the structure of a web page. It's the combination of two things, Hypertext & markup language.
Hypertext defines the link between the web pages, whereas markup language is reponsible for the text that comes within the tags and is responsible for structure of the web page.
This is how an HTML document looks like!
<!DOCTYPE html> <html> <head> <title> My First HTML Page </title> </head> <body> <h1> Hello World </h1> </body> </html>
Understanding the terms
<!DOCTYPE html>declares the document type. It declares a document being an HTML Document.
<html>element is the container for all other elements of the the document other than
<!DOCTYPE html>. This acts like a root tag for the HTML page. All the other tags go within this.
<head>element contains some specific information about the web page which is also referred to as metadata. Elements within the head aren't visible on the front-end of a webpage. HTML tags that are used inside head are:
<title>element declares the title for the HTML page
<body>element contains all the contents that you want to display in the web browser. This content includes headings, paragraphs, images, hyperlinks, tables, lists, etc.
<h1>element defines a level 1 heading
HTML Elements & Tags
<tagname>Content Goes Here
All the HTML Content goes within the tags. An HTML document elements is from the starting tag to the ending tag. Example:
<h1>This is heading
<p>This is paragraph
Why Learn HTML?
- Extremely easily, simple and interesting to learn
- Used to develop websites
- Using HTML, websites can be built really fast
- Can provide a start to a career in web development
- Can help build fundamental concepts related to development
HTML was created by Tim Berners-Lee in 1991. The first ever version of HTML was HTML 1.0, but the first standard version of HTML was 2.0.