Basic Tags of HTML 5
Basic Tags of HTML 5 & HTML Tags Definition and Uses: In this lecture, we are going to learn about some fundamental tags of HTML.
Many tags are used to create a web page or website. There are some basic tags that are important and must use to create the web page of any website. Some Fundamental tag structure of HTML that is used in every web page.
What is the HTML Page Structure?
We will first see, What is the HTML Page Structure? Whole contents that are visible on the screen (Web Pages) are nested between another tag.
All the tags are rendered by the browser and then it’s displayed on the screen. The fundamental structure of HTML is given below.
Fundamental structure | Basic tags of HTML 5
<!DOCTYPE html> <html> <head> <title>MY Page</title> </head> <body> MY name is ABDUL JABBAR. you can learn everythings from my website </body> </html>
Every tag can perform some different computation to generate output that is understandable by the browser. Every tag’s explanation is described below.
HTML Tags Definition and Uses
The DOCTYPE declaration has specified the document to be HTML. The DOCTYPE declaration is not case Sensitive all cases are acceptable. The syntax of the DOCTYPE tag is:
The text between <html> and </html> tags describes an HTML document. Syntax is
<html> ------ </html>
HTML document contains two different section
The text between head tags provides information about the document. Like we are using title tags inside the head tags that contain the title of the documents. We also use script tags inside the Head tags. The syntax of head tags is
The text between <body> and </body> describes the visible page contents.Â <body> tags define the main content of the HTML document or the section of the HTML document that will be directly visible on your web browser.
Inside the body tag, we used different tags that perform different activities like the h1 or h2 tag is used to taking the heading of any section. Syntax is
There are different heading tags that is used to take a heading of any section. Basically, six basic heading tags are
<h1>Heading One</h1> <h2>Heading Two</h2> <h3>Heading three</h3> <h6> Heading Six</h6>
Paragraph TagsThe HTML paragraph <p> Tags represents a paragraph of text. The browser automatically adds some space (margin) before and after the Paragraph<p> Element.
And <br> tag is used to break the line within the paragraph. A paragraph is also used to write any Description and Details of any object or things. Syntax is