A HTML page is built using tags so first I need to explain what a tag is. A tag is a command in a web page that tells the browser to do something. Tags are inclosed in less than (<) and greater than (>) signs. An example of a tag is <html> which you will learn below.
Document structure tag:
HTML tag: It is the root of the html document which is used to specify that the document is html.
Syntax:
<html>......</html>
Head tag: Head tag is used to contain all the head element in the html file. It contains the title, style, meta, … etc tag.
Syntax:
<head>...</head>
Ex.
<head>Contains elements describing the document</head>
Body tag: It is used to define the body of html document. It contains image, tables, lists, … etc.
Syntax:
<body>...</body>
Ex.
<body>The content of your HTML page</body>
Title tag: It is used to define the title of html document.
Syntax:
<title>...</title>
Ex.
<tittle>tab name</tittle>
Content container tag:
Heading tag: It is used to define the heading of html document.
Syntax:
</h1>...</h1>
Ex.
<h1>Heading 1 </h1>
Paragraph tag: It is used to define paragraph content in html document.
Syntax:
<p>....</p>
Ex.
<p>CodersArts: Computer science portal</p>
Bold tag: It is used to specify bold content in html document.
Syntax:
<b>...</b>
Ex.
<b>Bold word</b>
Underline tag: It is used to set the content underline.
Syntax:
<u>...</u>
Ex.
<u>CodersArts</u>
Anchor tag: It is used to link one page to another page.
Syntax:
<a href="...">statement</a>
Ex.
<a href=" https://www.codersarts.com/blog "> CoderArsts</a>
For more about HTML or need any assignment related help and project related help go to the codersarts contact page.
Comments