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>
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.
<!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>
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.
<!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>
<DOCTYPE..>
, <title>
,<meta>
,<link>
,<style>
<p>
, <h1>
, <h2>
, <h3>
, <h4>
, <h5>
, <h6>
, <strong>
, <em>
, <abbr>
, <acronym>
, <address>
, <blockquote>
, <code>
, <ins>
, <del>
, <kbd>
, <pre>
, <var>
and <br>
<img>
, <area>
, <map>
, <param>
and <object>
<ul>
, <ol>
, <li>
, <dl>
, <dt>
and <dd>
<table>
, <tr>
, <td>
, <th>
, <tbody>
, <thead>
, <tfoot>
, <col>
, <colgroup>
and <caption>
<form>
, <input>
, <textarea>
, <select>
, <option>
, <optgroup>
, <button>
, <label>
, <fieldset>
and <legend>
<script>
and <noscript>