HTML
stands for hyper text markup language – it is used to display web pages on the browser. In order to create web pages, one should learn HTML.
As its name suggests, HTML is a markup language, not a programming language. This means that we do not write programs using HTML; instead, markup language is mainly used to apply layout and formatting conventions to a text document. In other words, markup language makes text more interactive and dynamic.
Let’s dive deeper to learn more about HTML.
One of the main parts of HTML is HTML tags – HTML tags are like keywords that define how a web browser will format and display content. There are more than 100 tags in HTML.
Let’s see an example:
<!DOCTYPE html>
is a tag used to tell the browser the version of html that you are using.
HTML tags contain three main parts:
Begins the section of a page
All opening tags are enclosed in <>
The matter written in between the opening and closing tags.
<>
content </>
.
It ends the section of a page.
All closing tags are enclosed with, </>
.
Most HTML tags are paired tags, very few tags are unpaired.
Paired tags have both opening and closing tags.
Example:
1) <html> </html>
2) <p> </p>
3) <b> </b>
4) <strong> </strong>
Unpaired tags have no ending or closing tags.
Example:
1) <br>
2) <hr>
3) <img>
Now, let’s write a code to create a webpage using some basic tags:
And that’s it – we have created our first webpage using some basic tags!