HTML tags are like keywords which defines that how web browser will format and display the content. With the help of tags, a web browser can distinguish between an HTML content and a simple content. HTML tags contain three main parts: opening tag, content and closing tag. But some HTML tags are not closed tags.
TIPS
- All HTML tags must enclosed within < > these brackets.
- Every tag in HTML perform different tasks.
- If you have used an open tag <tag>, then you must use a close tag </tag> (except some tags)
Syntax
<tag> content </tag>
HTML Tag Examples
Note: HTML Tags are always written in lowercase letters. The basic HTML tags are given below:
<p> Paragraph Tag </p>
<h2> Heading Tag </h2>
<b> Bold Tag </b>
<i> Italic Tag </i>
<u> Underline Tag</u>
Unclosed HTML Tags
Some HTML tags are not closed, for example br and hr.
<br> Tag: br stands for break line, it breaks the line of the code.
<hr> Tag: hr stands for Horizontal Rule. This tag is used to put a line across the webpage
HTML Meta Tags
<!DOCTYPE>, <title>, <link>, <meta> and <style>
HTML Text Tags
<p>, <h1>, <h2>, <h3>, <h4>, <h5>, <h6>, <strong>, <span> <div><em>, <abbr>, <acronym>, <address>, <bdo>, <blockquote>, <cite>, <q>, <code>, <ins>, <del>, <dfn>, <kbd>, <pre>, <samp>, <var> and <br>
HTML Link Tags
<a> and <base>
HTML Image 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>
HTML has a opening and closing tag but not all of the tags has closing tags. HTML is the standard for creating web pages. HTML tags are always written in lowercase.
Note: that practice makes perfect, the more you play around with the HTML tags the more you become familiar with them. We will use the above tags in the upcoming lession.
Well done & written my friend!
I’ve just started writing a blog myself in the last few days and notgiced that lot oof bloggers
simply rework old content but add very little of worth. It’s good to
see an educational article of spme true value to me
and your readers.
It is actually onn my list of factors I nedd to emulate as a new blogger.
Reader engagement and content quality are king.
Many superb thoughts; you have definitely got on my list of
writers to follow!
Continue the great work!
Well done,
Garnet
Thank you so much!