Elements In HTML
In HTML we write everything inside tages and after then we have to close the tage as well.We should not forget to close the tage.
<tag-name>HTML content</tag-name>
<html>
<head>
<title></title>
</head>
<body>
<h1>My First heading</h1> My First pragraph<br />
</body>
</html>
Tag Name | Descriptions | End Tag |
---|---|---|
<h1>
|
Heading | <h1>
|
<p>
|
paragraph | </p>
|
<body>
|
Body Content | </body>
|
<Head>
|
Head Content | </Head>
|
<title>
|
Title Content | </title>
|
<div>
|
Division Content | </div>
|
<title>
<title> tag defines the title section in the HTML document. </title> We can open <title> tag and close. <title> tag
Example:
<title>My First HTML program.</title>
<body>
<body> tag defines the entire body section in the HTML document. we can open <body> and close the </body> tag.Example:
<body>
<h1>
My First heading</h1>
<h2>
My second heading</h2>
</body>
<p>
<p> tag Defines the paragraph section in the HTML document.<p> We can open tag and close </p>
Example:
<p> Code Family.</p>
heading
<h1> tage defines the heading section in the HTML document.We can open <h1> tag and close </h1> tag.
Example:
<h1>My First heading.</h1>
<h2>HTML is not Case Senstive</h2>
<h3>Code Family</h3>
<h4>Code Family</h4>
<h5>Code Family</h5>