What Is an HTML Tag?

 

What Is an HTML Tag?


HTML tags are the keywords on a web page that define how your web browser must format and display your web page. 


Almost all tags contain two parts, an opening, and a closing tag. For example, <html> is the opening tag and </html> is the closing tag. Note that the closing tag has the same text as the opening tag, but has an additional forward-slash ( / ) character. 


There are a total of 100 HTML tags. We will divide them into categories and discuss the important ones in this article.


Basic HTML Tags

Head Tag

The head tag <head> contains all the elements describing the document. 


Title Tag

The title tag <title> specifies the HTML page title, which is shown in the browser’s title bar. 


Body Tag

The body tag <body> is where you insert your web page’s content. 


Paragraph Tag

A paragraph tag <p> is used to define a paragraph on a web page.


Heading Tag 

The HTML heading tag is used to define the heading of the HTML document. The <h1> tag defines the most important tag, and <h6> defines the least.

No comments:

Post a Comment

Pages