HTML Tags

An HTML tag surrounds with some content and applies meaning to it and it is written between < and > brackets. Some bits of text which can be found inside the angle brackets along with the brackets are known as 'Tags'. This is used to split code from normal text. These two;  <html> and </html> and <head> and </head> are all tags come in pairs, as one <tag> is used to open the tag and </tagname> the other used to close the tag, the difference shown in the HTML tags above. we must always recollect to open and close the tags and must remember to use the angle brackets for them to work.

<tag name>content</tag>

 

Heading Tags

Any HTML document starts with a heading. You can use the different type of sizes for your headings. HTML has six levels of headings, which use the elements <h1>, <h2>, <h3>, <h4>, <h5>, and <h6>. While displaying any heading, browser adds one line before and one line after that heading because all heading tags are block level elements.

Example

<!DOCTYPE html>
<html>
   <head>
      <title>All Heading Example in HTML</title>
   </head>
   <body>
      <h1>This is heading 1</h1>
      <h2>This is heading 2</h2>
      <h3>This is heading 3</h3>
      <h4>This is heading 4</h4>
      <h5>This is heading 5</h5>
      <h6>This is heading 6</h6>
   </body>
</html>
  Try it Yourself

Paragraph Tag

The Paragraph is denoted by the <p> and it is block level elements it's mean it's width 100% by default and that's why browsers automatically add some white space (a margin) before and after a paragraph. Each paragraph of text in HTML document should go in between an opening <p> and a closing </p> tag.

Example

<!DOCTYPE html>
<html>

   <head>
      <title>Paragraph Example in HTML</title>
   </head>
	
   <body>
      <p>Here is a first paragraph.</p>
      <p>Here is a another paragraph.</p>
      <p>Here is the third paragraph</p>
   </body>
	
</html>
  Try it Yourself

HTML Meta Tags

<DOCTYPE..>, <title>,<meta>,<link> ,<style>

HTML Text Tags

<p>, <h1>, <h2>, <h3>, <h4>, <h5>, <h6>, <strong>, <em>, <abbr>, <acronym>, <address>, <blockquote>, <code>, <ins>, <del>, <kbd>, <pre>, <var> and <br>

HTML Image and Object Tags

<img>, <area>, <map>, <param> and <object>

HTML List Tags

<ul>, <ol>, <li>, <dl>, <dt> and <dd>

HTML Table Tags

<table>, <tr>, <td>, <th>, <tbody>, <thead>, <tfoot>, <col>, <colgroup> and <caption>

HTML Form Tags

<form>, <input>, <textarea>, <select>, <option>, <optgroup>, <button>, <label>, <fieldset> and <legend>

HTML Scripting Tags

<script> and <noscript>