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 unclosed tags.
When a web browser reads an html document browser reds it from top to bottom and left to right. HTML tags are used to create html documents and render their properties. Each Html tags have different properties.
An html file must have some essential tags so that web browser can differentiate between a simple text and HTML text. You can use as many tags you want as per your code requirement.
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>
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, meta and style. are html meta tags.
HTML TEXT Tags:
Following tags are html tags, as given below:
<p>, <h1>, <h2> <h3>, <h4>, <h5>, <h6>, <strong>, <em>, <abbr>, <acronym>, <address>, <bdo>, <blockquote>, <cite>, <q>, <code>, <ins>, <del>, <dfn>, <kbd>, <pre>, <samp>, <var> and <br>
LINK Tags:
<a> and <base> are link tags.
IMAGE and OBJECT Tags:
<img>, <area>, <map>, <param> and <object> are html image and object tags.
LIST Tags:
<ul>, <ol>, <li>, <dl>, <dt> and <dd> are html list tags.
TABLE Tags:
table, tr, td, th, tbody, thead, tfoot, col, colgroup and calption are html table tags.
FORM Tag:
form, input, textarea, slect, option, optgroup, button, label, fieldset, and legend are form tags.
SCRIPTING Tags:
script and noscript are scripting tags.
HTML Tags List :
(1) <!-- --> This tag is used to apply comment in an html document.
(2) <DOCTYPE> This tag is used to specify the version of html.
(3) <a> It is termed as anchor tag and it creates a hyperlink or link.
(4) <abbr> It defines an abbreviation for a phrase or longer word.
(5) <acronym> It defines acronym for a word.
(6) <address> It defines the author's contact information of the html article.
(7) <applet> It defines an embedded Java applet.
(8) <area> It defines the area of an image map.
(9) <article> It defines the self-contained content.
(10) <aside> It defines content aside from main content. Mainly represented as sidebar.
(11) <audio> It is used to embed sound content in html document.
(12) <b> It is used to make a text bold.
(13) <base> This tag defines the base URL for all relative URL within the document.
(14) <basefont> This tag is used to set default font size and color for all elements of document. *
(15) <bdi> This tag is used to provide isolation for that part of text which may be formatted in different directions from its surrounding text.
(16) <bdo> it is used to override the current text direction.
(17) <big> This tag is used to make font size one level larger than its surrounding content.*
(18) <blockquote> It is used to define a content which is taken from another source.
(19) <body> It is used to define the body section of an html document.
(20) <br> It is used to apply single line break.
(21) <button> It is used to represent a clickable button.
(22) <canvas> It is used to provide a graphics space within a web document.
(23) <caption> It is used to define a caption for a table.
(24) <center> It is used to align the content in center. *
(25) <cite> It is used to define the title of the work book, website. etc.
(26) <code> It is used to display a part of programming code in an html document.
(27) <col> It defines a column within a table which represent common properties of columns and used with the <colgroup> element.
(28) <data> It is used to link the content with the machine-readable translation.
(29) <datalist> It is used to provide a predefined list for input option.
(30) <dd> It is used to provide definition/description of a term in description list.
(31) <del> It defines a text which has been deleted from the document.
(32) <details> It defines additional details which user can either view or hide.
(33) <dfn> It is used to indicate a term which is defined within a sentence/phrase.
(34) <dialog> It defines a dialog box or other interactive components.
(35) <dir> It is used as container for directory list of files. *
(36) <div> It defines a division or section within html document.
(37) <dl> It is used to define a description list.
(38) <em> It is used to emphasis the content applied within this element.
(39) <embed> It is used as embedded container for external file /application/media etc.
(40) <fieldset> It is used to group related elements/labels within a web form.
(41) <figcaption> It is used to add a caption or explanation for the <figure> element.
(42) <figure> It is used to define the self-contained content and mostly refer as single unit.
(43) <font> It defines the font size, color and face for the content. *
(44) <footer> It defines the footer section of a webpage.
(45) <form> It is used to define an html form.
(46) <frame> It defines a particular area of webpage which can contain another hemlfile.*
(47) <frameset> It defines group of frames*
(48) <h1> to <h6> It defines headings for an html document from level 1 to level 6.
(49) <head> It defines the head section of an html document.
(50) <header> It defines the header of a section or webpage.
(51) <hr> It is used to apply thematic break between paragraph-level elements.
(52) <html> It represents root of an html document.
(53) <i> It is used to represent a text in some different voice (Italic).
(54) <iframe> It defines an inline frame which can embed other content.
(55) <img> It is used to insert an image within an html document.
(56) <input> It defines an input field within an html form.
(57) <ins> It represent text that has been inserted within an html document.
(58) <isindex> It is used to display search string for current document. *
(59) <kbd> It is used to define keyboard input.
(60) <label> It defines a text label for the input field of from.
(61) <legend> it defines a caption for content of <fieldset>
(62) <li> It is used to represent items in list.
(63) <link> It represents a relationship between current document and an external resource.
(64) <main> It represents the main content of an html document.
(65) <map> It defines an image map with active areas.
(66) <mark> It represents a highlighted text.
(67) <marquee> It is used to insert the scrolling text or an mage either horizontally or vertically.*
(68) <menu> it is used for creating a menu list of commands.
(69) <meta> It defines metadata of an html document.
(70) <meter> It defines scalar measurement with known range or fractional value.
(71) <nav> It represents section of page to represent navigation links.
(72) <noframes> It provides alternate content to represent in browser which does not support the <frame> elements. *
(73) <noscript> It provides an alternative content if a script type is not supported in browser.
(74) <object> It is used to embed an object in html file.
(75) <ol> It defines an ordered list of items.
(76) <optgroup> It is used to group the options of a drop-down list.
(77) <option> It is used to define options or items in a drop-down list.
(78) <output> It is used as container element which can show result of a calculation.
(79) <p> It represents a paragraph in an html document.
(80) <param> It defines parameter for an <object> element.
(81) <picture> It defines more than one source element and one image element.
(82) <pre> It defines preformatted text in an html document.
(83) <progress> It define the progress of a task within html document.
(83) <q> It defines short inline quotation.
(84) <rp> It defines an alternative content if browser does not supports ruby annotations.
(85) <rt> It defines explanations and pronunciations in ruby annotations.
(86) <ruby> It is used to represent ruby annotations.
(87) <s> It render text which is no longer correct or relevant.
(88) <samp> It is used to represent sample output of a computer program.
(89) <script> It is used to declare the JavaScript within html document.
(90) <section> It defines a generic section for a document.
(91) <select> It represents a control which provides a menu of options.
(92) <small> It is used to make text font one size smaller than documents base font size.
(93) <source> It defines multiple media recourses for different media element such as <picture>, <video> and <audio> element.
(94) <span> it is used for styling and grouping inline.
(95) <strike> it is used to render strike through the text.*
(96) <strong> It is used to define important text.
(97) <style> It is used to contain style information for an html document.
(98) <sub> It defines a text which represent as superscript text.
(99) <svg> It is used as container of SVG (Scalable Vector Graphics).
(100) <summary> It defines summary which can be used with <details> tag.
(101) <table> It is used to present dat in tabular from or to crate a table within html document.
(102) <tbody> It represents the body content of an html table and used along with <head> and <tfoot>.
(103) <td> It is used to define cells of an html table which contains table data.
(104) <template> it is used to contain the client side content which will not display at time of page load and may render later using JavaScript.
(105) <textarea> It is used to define multiple line input such as comment, feedback and review etc.
(106) <tfoot> It defines the footer content of an html table.
(107) <th> it defines the head cell of an html table.
(108) <thead> It defines the header of an html table. It is used along with <tbody> and <tfoot> tags.
(109) <time> It is used to define data/time within an html document.
(110) <title> It defines the title or name of an html document.
(111) <tr> It defines the row cells in an html table.
(112) <track> it is used to define text tracks for <audio> and <video> elements.
(113) <tt> It is used to define teletype text.*
(114) <u> It is used to render enclosed text with an underline
(115) <ul> it defines unordered list of items.
(116) <var> It defines variable name used in mathematical or programming context.
(117) <video> It is used to embed a video content with an html document.
(118) <wbr> It defines a position within text where break line is possible.
www.shaahnawaz.com
0 comments:
Post a Comment