info@tutsfinder.in



HTML Tags



HTML tags are elements which defines that how web browser will format and display the content enclosed by angular brackets. With the help of tags, a web browser can distinguish between an HTML content and a simple content.

Three main components of HTML tags:

• Opening tag : <tagname>

• Content

• Closing tag : </tagname>


Each HTML tags have different properties. Tags normally comes in a pairs like <h1> and </h1>.

NOTE: Almost every open tag must be closed, but there is exception also, an example of a tag that does not have to be closed is an empty tag, such as the link break <br>.


How to use HTML tag:
<tagname> Content </tagname>

Some basic HTML tag examples
<h1> heading tag </h1>
<i> Italic tag </i>
<u> underline tag </u>
<b> bold tag </b>

Tag Reference in Alphabetical Order


TAG NAME Description Function
<!--…--> Allows explanatory comments into our code. Basic
<!DOCTYPE> Tell browser version of HTML/XHTML we're using. Basic
<a> Define an anchor for links and hyperlinks. Links
<abbr> Used to define an abbreviation in our HTML code. Formatting
<acronym> Used to define an acronym in our HTML code. Formatting
<address> Used to define an address in our HTML code. Formatting
<applet> Defines an embedded Java applet. Programming
<area/> Defines clickable areas on client side image. Image
<b> Used for making text bold. Formatting
<base/> Used to define a base URL for links on a page. Links
<basefont/> Specify font values in HTML document. Meta
<bdo> Defines a birectional override for some text. Formatting
<big> Used for defining a large text style. Formatting
<blockqoute> Used to define long quotations in our HTML code. Formatting
<body> Specifies body element of HTML document. Structure
<br/> Used to define a line break in our HTML code. Basic
<button> Defines a clickable button in our HTML code. Forms
<caption> Specifies a name for the table element in question. Tables
<center> Used for centering text in HTML code. Formatting
<cite> Used to define a citation in our HTML code. Formatting
<code> Used to define text that looks like computer code. Formatting
<col/> Used to specify criteria for a table column. Tables
<colgroup> Used to specify criteria for a group of columns. Tables
<dd> Define a definition description. Lists
<del> Used to define editorial deletions in some text. Formatting
<dfn> Used to define a definition term in our HTML code. Formatting
<dir> Used to define a directory list. Lists
<div> Group HTML blocks together for styling with CSS. Structure
<dl> Used to define a definition list in our HTML code. Lists
<dt> Define a definition term within a definition list Lists
<em> Define text to be emphasised in our HTML code. Formatting
<fieldset> Used for grouping form elements together. Forms
<font> Specify font, font size and font colour. Formatting
<form> Used to define an anchor for links and hyperlinks Forms
<frame/> Define subwindow for another document. Frames
<frameset> Frameset to hold multiple documents. Frames
<h1>-<h6> Define the six HTML headings for use in our HTML Formatting
<head> Specifies head element of HTML document. Structure
<hr/> Used to define a horizontal rule in our HTML code. Basics
<html> Specifies root element of HTML document. Structure
<i> Define italic text in our HTML code. Formatting
<iframe> Define inline window to hold another document. Inline Frame
<img/> Create area on page to hold the referenced image. Images
<input/> Used to define an area of a form for user input. Forms
<ins> Used to define editorial insertions in our text. Formatting
<isindex/> Define single line input control prompt. Forms
<kbdv> Used to define keyboard text in our HTML code. Formatting
<label> Label for input, select or textarea form element. Forms
<legend> Used for defining a title for a fieldset element. Forms
<li> Define list item in an ordered or unordered list. Lists
<link/> Link to external resource such as image/stylesheet. Import
<map> Define client-side image map with clickable areas. Images
<menu> Used for defining a menu list. Lists
<meta/> Send metadata about data within our HTML file. Meta
<noframes> Content to render if frames unavailable. Frames
<noscripts> Non script based rendering if JavaScript disabled. Programming
<object> Used to define an embedded object in our HTML. Programming
<ol> Used to define an ordered list in our HTML code. Lists
<optgroup> Define related option groups within select element. Forms
<option> Define a selectable option within a select element. Forms
<p> Create a paragraph of the enclosed content. Basic
<param/> Define parameters for an embedded object. Programming
<pre> Define preformatted text in our HTML code. Formatting
<q> Define a short inline quotation in our HTML code. Formatting
<s> Define a strike through text style. Formatting
<samp> Define text that looks like sample computer code. Formatting
<script> Define scripting language in HTML document. Programming
<select> ed to define a drop-down list for selection. Forms
<small> Define a small text style. Forms
<span> Group inline HTML together for styling with CSS. Structure
<strike> Used for making strike through text. Forms
<strong> Define strongly emphasised text in our HTML code. Formatting
<style> Style information into our HTML documents. Style
<sub> Used for defining subscript text. Formatting
<summary> It defines summary which can be used with
tag.
Formatting
<sup> Used for defining superscript text. Formatting
<table> Used to define a table for displaying tabular data. Tables
<tbody> Define group body information within a table. Tables
<td> Used to define a table cell within a table element. Tables
<textarena> Define a multiple line area for text input. Forms
<tfoot> Define group footer information within a table. Tables
<thead> Used to define a heading within a table element. Tables
<time> It uses to define data/time. Forms
<title> Defines the document title element of a HTML file. Meta
<tr> Used to define a row within a table element. Tables
<tt> Define teletype/monospaced text. Formatting
<u> Underline text in our HTML code. Formatting
<ul> Defines an unordered list in our HTML code. Lists
<var> Define text that looks like a computer variable. Formatting
<video> It is used to embed a video content with an HTML document Images
<wbr> It defines a position within text where break line is possible. Forms