HTML stands for Hyper Text Markup Language. It is a markup language. HTML is used to write web pages. It only defines what is to be displayed and not how all the elements are formatted. HTML contains elements or tags that are enclosed in angle brackets (<html>). You can use HTML to display text, images and videos on a web page and even play audio files.
<p>Your first paragraph.</p>
When you will run this .html file in a browser you will get a similar output.
No. HTML is case insensitive. Which means that <html> and <HTML> mean the same thing and both are valid. But usually it is a good practice to write all your HTML code in lowercase as it looks more tidy and is easier to understand. Some things like the id and class attributes are case sensitive which we will talk about later.
What does the above code do?
In the next series of posts I will explain each and every line of the above code in details. But now lets look at a few lines and what they do.
The text between the <title>Page Title</title> is the text that goes at the top of the browser Tab.
The text between the <h1>First Heading</h1> describes the heading and is displayed as bold text with big font size.
The text between the <p>The first paragraph</p> contains the content of a paragraph and is displayed with normal size (16px).