HTML Tags
Tags are the reserve keywords used in the HTML file. With the help of tags we can set the format of the text and elements used in the file.Example: Setting the font, size, color, bold, italic, Underline to the text.
In HTML language all of the files are written using tags. Even starting of the html file is done by the <html> tag and ended with the </html> end tag. Tags are the reserved keywords used in the HTML. They are the predefined words called tags.
· HTML tags are used to mark-up HTML elements.
· HTML tags are surrounded by the two characters <and>
· The surrounding characters are called angle brackets.
· HTML tags normally come in pairs like <b> and </b>
· The first tag in a pair is the start tag, the second tag is the end tag.
· The text between the start and end tags is the element content.
· HTML tags are not case sensitive, <b> means the same as <B>
Some tags are discussed later next on post :
Basic Tags
Character Format Tag
Output Tags
Block Tags
Other Tags
There are Various types of Tags:
Tags Ordered Alphabetically
Tags Description
<!--...--> Defines a comment
<a> Defines an anchor
<abbr> Defines an abbreviation
<acronym> Defines an acronym
<address> Defines an address element
<area> Defines an area inside an image map
<b> Defines bold text
<bdo> Defines the direction of text display
<big> Defines big text
<blink> Defines the blinking text in a document
<blockquote> Defines a long quotation
<body> Defines the body element
<br> Inserts a single line break
<button> Defines a push button
<caption> Defines a table caption
<center> Deprecated. Defines centered text
<cite> Defines a citation
<code> Defines computer code text
<col> Defines attributes for table columns
<colgroup> Defines groups of table columns
<dd> Defines a definition description
<del> Defines deleted text
<dir> Deprecated. Defines a directory list
<dfn> Defines a definition term
<div> Defines a section in a document
<dl> Defines a definition list
<dt> Defines a definition term
<em> Defines emphasized text
<frameset> Defines a fieldset
<font> Deprecated. Defines the font face, size, and color of text
<form> Defines a form
<frame> Defines a sub window undefineda frame)
<fieldset> Defines a set of frames
<h1> to <h6> Defines header 1 to header 6
<head> Defines information about the document
<hr> Defines a horizontal rule
<html> Defines an html document
<i> Defines italic text
<iframe> Defines an inline sub window undefinedframe)
<img> Defines an image
<input> Defines an input field
<ins> Defines inserted text
<kbd> Defines keyboard text
<label> Defines a label for a form control
<li> Defines a list item
<map> Defines an image map
<marquee> Defines the moving text in a document
<menu> Deprecated. Defines a menu list
<noframes> Defines a noframe section
<ol> Defines an ordered list
<optgroup> Defines an option group
<option> Defines an option in a drop-down list
<p> Defines a paragraph
<pre> Defines preformatted text
<q> Defines a short quotation
<s> Deprecated. Defines strikethrough text
<samp> Defines sample computer code
<select> Defines a selectable list
<small> Defines small text
<span> Defines a section in a document
<strike> Deprecated. Defines strikethrough text
<strong> Defines strong text
<style> Defines a style definition
<sub> Defines subscripted text
<sup> Defines superscripted text
<table> Defines a table
<tbody> Defines a table body
<td> Defines a table cell
<textarea> Defines a text area
<tfoot> Defines a table footer
<th> Defines a table header
<thead> Defines a table header
<title> Defines the document title
<tr> Defines a table row
<tt> Defines teletype text
<u> Deprecated. Defines underlined text
<ul> Defines an unordered list
<var> Defines a variable
Tags Ordered by Function
Basic Tags
Tags Description
<html> Defines a html document
<head> Defines information about the document
<title> Defines the document title
<body> Defines the body element
<h1> to <h6> Defines header 1 to header 6
<p> Defines a paragraph
<br> Inserts a single line break
<hr> Defines a horizontal rule
<!--...--> Defines a comment
Char Format
Tags Description
<b> Defines bold text
<font> Deprecated. Defines the font face, size, and color of text
<i> Defines italic text
<em> Defines emphasized text
<big> Defines big text
<strong> Defines strong text
<small> Defines small text
<sup> Defines superscripted text
<sub> Defines subscripted text
<bdo> Defines the direction of text display
<u> Deprecated. Defines underlined text
Output
Tags Description
<b> <pre> Defines preformatted text
<font> <code> Defines computer code text
<i> <tt> Defines teletype text
<em> <kbd> Defines keyboard text
<big> <var> Defines a variable
<strong> <dfn> Defines a definition term
<small> <samp> Defines sample computer code
Blocks
Tags Description
<acronym> Defines an acronym
<abbr> Defines an abbreviation
<address> Defines an address element
<blockquote> Defines an long quotation
<center> Deprecated. Defines centered text
<q> Defines a short quotation
<cite> Defines a citation
<ins> Defines inserted text
<del> Defines deleted text
<s> Deprecated. Defines strikethrough text
<strike> Deprecated. Defines strikethrough text
Links
Tags Description
<a> Defines an anchor
Frames
Tags Description
<frame> Defines a sub window undefineda frame)
<frameset> Defines a set of frames
<noframes> Defines a noframe section
<iframe> Defines an inline sub window undefinedframe)
Input
Tags Description
<form> Defines a form
<input> Defines an input field
<textarea> Defines a text area
<button> Defines a push button
<select> Defines a selectable list
<optgroup> Defines an option group
<option> Defines an item in a list box
<label> Defines a label for a form control
<fieldset> Defines a fieldset
Lists
Tags Description
<form> <ul> Defines an unordered list
<input> <ol> Defines an ordered list
<textarea> <li> Defines a list item
<button> <dir> Deprecated. Defines a directory list
<select> <dl> Defines a definition list
<optgroup> <dt> Defines a definition term
<option> <dd> Defines a definition description
<label> <menu> Deprecated. Defines a menu list
Images
Tags Description
<img> Defines an image
<map> Defines an image map
<area> Defines an area inside an image map
Tables
Tags Description
<table> Defines a table
<caption> Defines a table caption
<th> Defines a table header
<tr> Defines a table row
<td> Defines a table cell
<thead> Defines a table header
<tbody> Defines a table body
<tfoot> Defines a table footer
Styles
Tags Description
<style> Defines a style definition
<div> Defines a section in a document
<marquee> Defines the moving text in a document
<blink> Defines the blinking text in a document
Programming
Tags Description
<script> Defines a script
<noscript> Defines a noscript section
<applet> Deprecated. Defines an applet
<object> Defines an embedded object
<param> Defines a parameter for an object
No comments:
Post a Comment