Tags: It contains non/one or more than one attribute-value pairs as a property.
Attributes: It defines the specification of a tag, by defining value to the attribute.
Declarations:Must add the <!DOCTYPE> declaration to the HTML documents,that too before starting the <head> tag
Attributes:
Attributes:
<body> Define the HTML document's body contents. Also supports global and event attributes.
Attributes: All are Not supported in HTML5.
Attributes: Not supported in HTML5.
Attributes: Not supported in HTML5.
<hr> Defines Supports global and event attributes.
Attributes: All are Not supported in HTML5.
<abbr> Defines an abbreviation or an acronym. Supports global and event attributes.
<address> Defines contact information for the owner of a document/article. Supports global and event attributes.
<b> Defines bold text. Supports global and event attributes.
<bdi> It Isolates a part of text that might be formatted in a different direction from other text outside it. Supports global and event attributes.
<bdo> Overrides the current text direction. Supports global and event attributes
Attributes:
<blockquote> Defines a section that is quoted from another source. Supports global and event attributes
Attributes:
<cite>Defines the title of a work. Supports global and event attributes
<code> Defines a piece of computer code. Supports global and event attributes.
<del>Defines text that has been deleted from a document. Supports global and event attributes
Attributes:
Attributes:
<font> Not supported in HTML5. Use in CSS. Defines font, color, and size for text.
<i>Defines a part of text in an alternate voice or mood. Supports global and event attributes
<ins> It defines a text that has been inserted into a document. Supports global and event attributes
Attributes:
<kbd> Defines keyboard input. Supports global and event attributes
<mark> Defines marked/highlighted text. Supports global and event attributes
<meter> Defines a scalar measurement within a known range (a gauge). Supports global and event attributes
Attributes:
Attributes:
Attributes:
Attributes:
<rt>Defines an explanation/pronunciation of characters (for East Asian typography). Supports global and event attributes
<ruby>Defines a ruby annotation (for East Asian typography). Supports global and event attributes
<s> Defines text that is no longer correct. Supports global and event attributes
<samp>Defines sample output from a computer program. Supports global and event attributes
<small> Defines smaller text. Supports global and event attributes
<strike> Not supported in HTML5. Use <del> or <s> instead.
Defines strikethrough text
<strong> Defines important text. Supports global and event attributes
<sub> Defines subscripted text. Supports global and event attributes
<sup> Defines superscripted text. Supports global and event attributes
<template> Defines a template. Supports global and event attributes
<time> Defines a date/time. Supports global and event attributes
Attributes:
datetime datetime Represent a machine-readable date/time of the <time> element
<tt> Not supported in HTML5. Use CSS instead.Defines teletype text
<u> Specifies text that should be stylistically different from normal text. Supports global and event attributes
<var> Defines a variable. Supports global and event attributes
<wbr> Defines a possible line-break. Supports global and event attributes
Meta Tags and its attributes:
<head> Defines information about the document. Supports global attributes.
Attributes:
Attributes:
Attributes:
Attributes: All are Not supported in HTML5.
Attributes:
<applet> Tag Not supported in HTML5. Use <embed> or <object> instead. Defines an embedded applet
Attributes:
Attributes:
Attributes: All are Not supported in HTML5
Attributes:
Attributes:
Attributes:
<header>Defines a header for a document or section. Supports global and event attributes.
<footer>Defines a footer for a document or section. Supports global and event attributes.
<main>Specifies the main content of a document. Supports global and event attributes.
<section> Defines a section in a document. Supports global and event attributes.
<article> Defines an article. Supports global and event attributes.
<aside> Defines content aside from the page content. Supports global and event attributes.
<details> Defines additional details that the user can view or hide. Supports global and event attributes.
Attributes:
Attributes:
<data> Links the given content with a machine-readable translation. Supports global attributes.
Attributes:
Attributes: It defines the specification of a tag, by defining value to the attribute.
Basic Tags and its attributes:
<!DOCTYPE> It gives instruction to web browser about what version of HTML the document is written in.Declarations:Must add the <!DOCTYPE> declaration to the HTML documents,that too before starting the <head> tag
- Commom one: <!DOCTYPE html>
- HTML 4.01 Strict <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
- HTML 4.01 Transitional <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
- HTML 4.01 Frameset <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
- XHTML 1.0 Strict <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
- XHTML 1.0 Transitional <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- XHTML 1.0 Frameset <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
- XHTML 1.1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
Attributes:
- xmlns http://www.w3.org/1999/xhtml Specifies the XML namespace attribute (Use when you want your content to conform to XHTML)
Attributes:
- profile URL Not supported in HTML5. Specifies a URL to a document that contains a set of rules. These rules can be read by browsers to clearly understand the information in the <meta> tag's content attribute.
<body> Define the HTML document's body contents. Also supports global and event attributes.
Attributes: All are Not supported in HTML5.
- alink color It specifies the color of an active link in a document
- background URL Specifies a background image for a document
- bgcolor color It specifies the background color of a document
- link color Specifies the color of unvisited links in a document
- text color Specifies the color of the text in a document
- vlink color Specifies the color of visited links in a document
Attributes: Not supported in HTML5.
- align left center right justify Specifies the alignment of a heading
Attributes: Not supported in HTML5.
- align left center right justify Specifies the alignment of the text within a paragraph
<hr> Defines Supports global and event attributes.
Attributes: All are Not supported in HTML5.
- align leftcenterright It specifies the alignment of a <hr> element.
- noshade noshade Specifies that a <hr> element should render in one solid color (noshaded), instead of a shaded color
- size pixels Specifies the height of a <hr> element
- width pixels% Specifies the width of a <hr> element
Formatting Tags and its attributes:
<acronym> Not supported in HTML5. Use <abbr> instead. Defines an acronym.<abbr> Defines an abbreviation or an acronym. Supports global and event attributes.
<address> Defines contact information for the owner of a document/article. Supports global and event attributes.
<b> Defines bold text. Supports global and event attributes.
<bdi> It Isolates a part of text that might be formatted in a different direction from other text outside it. Supports global and event attributes.
<bdo> Overrides the current text direction. Supports global and event attributes
Attributes:
- dir ltr rtl Required. Specifies the text direction of the text inside the <bdo> element
<blockquote> Defines a section that is quoted from another source. Supports global and event attributes
Attributes:
- cite URL Specifies the source of the quotation.
<cite>Defines the title of a work. Supports global and event attributes
<code> Defines a piece of computer code. Supports global and event attributes.
<del>Defines text that has been deleted from a document. Supports global and event attributes
Attributes:
- cite URL It specifies a URL to a document that explains the reason why the text was deleted
- datetime YYYY-MM-DDThh:mm:ssTZD Specifies the date and time of when the text was deleted
Attributes:
- dfn Id
- dfn title
- dfn abbr title
<font> Not supported in HTML5. Use in CSS. Defines font, color, and size for text.
<i>Defines a part of text in an alternate voice or mood. Supports global and event attributes
<ins> It defines a text that has been inserted into a document. Supports global and event attributes
Attributes:
- cite URL Specifies a URL to a document that explains the reason why the text was inserted/changed
- datetime YYYY-MM-DDThh:mm:ssTZD Specifies the date and time when the text was inserted/change
<kbd> Defines keyboard input. Supports global and event attributes
<mark> Defines marked/highlighted text. Supports global and event attributes
<meter> Defines a scalar measurement within a known range (a gauge). Supports global and event attributes
Attributes:
- form form_id It specifies one or more forms the <meter> element belongs to
- high number Specifies the range that is considered to be a high value
- low number Defines the range that is considered to be a low value
- max number Specifies the maximum value of the range
- min number Specifies the minimum value of the range
- optimum number Specifies what value is the optimal value for the gauge
- value number Required. Specifies the current value of the gauge
Attributes:
- width number Not supported in HTML5.Specifies the maximum number of characters per line
Attributes:
- max number Specifies how much work the task requires in total
- value number Specifies how much of the task has been completed
Attributes:
- cite URL Specifies the source URL of the quote
<rt>Defines an explanation/pronunciation of characters (for East Asian typography). Supports global and event attributes
<ruby>Defines a ruby annotation (for East Asian typography). Supports global and event attributes
<s> Defines text that is no longer correct. Supports global and event attributes
<samp>Defines sample output from a computer program. Supports global and event attributes
<small> Defines smaller text. Supports global and event attributes
<strike> Not supported in HTML5. Use <del> or <s> instead.
Defines strikethrough text
<strong> Defines important text. Supports global and event attributes
<sub> Defines subscripted text. Supports global and event attributes
<sup> Defines superscripted text. Supports global and event attributes
<template> Defines a template. Supports global and event attributes
<time> Defines a date/time. Supports global and event attributes
Attributes:
datetime datetime Represent a machine-readable date/time of the <time> element
<tt> Not supported in HTML5. Use CSS instead.Defines teletype text
<u> Specifies text that should be stylistically different from normal text. Supports global and event attributes
<var> Defines a variable. Supports global and event attributes
<wbr> Defines a possible line-break. Supports global and event attributes
Meta Tags and its attributes:
<head> Defines information about the document. Supports global attributes.
Attributes:
- profile URL Not supported in HTML5. Defines a URL to a document that contains a set of rules. These rules can be read by browsers to clearly understand the information in the <meta> tag's content attribute
Attributes:
- charset character_set It specifies the character encoding for the HTML document content text Gives the value associated with the http-equiv or name attribute
- http-equiv content-type default-style refresh It provides an HTTP header for the information/value of the content attribute.
- name application-name author description generator keywords viewport Specifies a name for the metadata
- scheme format/URI Not supported in HTML5. Specifies a scheme to be used to interpret the value of the content attribute
Attributes:
- href URL Specifies the base URL for all relative URLs in the page
- target _blank_parent_self_topframename Specifies the default target for all hyperlinks and forms in the page
Attributes: All are Not supported in HTML5.
- color color Specifies the default color for text in a document
- face font_family Specifies the default font for text in a document
- size number Specifies the default size of text in a document
Programming script Tag and its attributes:
<script> Defines a client-side script.Attributes:
- async async It specifies that the script is executed asynchronously (only for external scripts)
- charset charset It specifies the character encoding used in an external script file
- defer defer It specifies that the script is executed when the page has finished parsing (only for external scripts)
- src URL It specifies the URL of an external script filetype media_type Specifies the media type of the script
- xml:space preserve Not supported in HTML5.Specifies whether whitespace in code should be preserved
<applet> Tag Not supported in HTML5. Use <embed> or <object> instead. Defines an embedded applet
Attributes:
- code URL It specifies the file name of a Java applet
- object name It specifies a reference to a serialized representation of an applet
- align leftrighttopbottommiddlebaseline It specifies the alignment of an applet according to surrounding elements
- alt text It specifies an alternate text for an applet
- archive URL It specifies the location of an archive file
- codebase URL It specifies a relative base URL for applets specified in the code attribute
- height pixels It specifies the height of an applet
- hspace pixels Defines the horizontal spacing around an applet
- name name Defines the name for an applet (to use in scripts)
- vspace pixels Defines the vertical spacing around an applet
- width pixels It specifies the width of an applet
Attributes:
- height pixels It specifies the height of the embedded content
- src URL It specifies the address of the external file to embed
- type media_type It specifies the media type of the embedded content
- width pixels It specifies the width of the embedded content
Attributes: All are Not supported in HTML5
- align top bottom middle left right It specifies the alignment of the <object> element according to surrounding elements
- archive URL A space separated list of URL's to archives. The archives contains resources relevant to the object
- border pixels It specifies the width of the border around an <object>
- classid class_ID Defines a class ID value as set in the Windows Registry or a URL
- codebase URL Defines where to find the code for the object
- codetype media_type The media type of the code referred to by the classid attribute
Attributes:
- name name It specifies the name of a parameter
- type media_type Not supported in HTML5. It specifies the media type of the parameter
- value value It specifies the value of the parameter
- valuetype datarefobject Not supported in HTML5. It specifies the type of the value
- data URL Specifies the URL of the resource to be used by the object
- declare declare Not supported in HTML5. Defines that the object should only be declared, not created or instantiated until needed
- form form_id It specifies one or more forms the object belongs to
- height pixels It specifies the height of the object
- hspace pixels Not supported in HTML5. It specifies the whitespace on left and right side of an object
- name name It specifies a name for the object
- standby text Not supported in HTML5. Defines a text to display while the object is loading
- type media_type It specifies the media type of data specified in the data attribute
- usemap #mapname It specifies the name of a client-side image map to be used with the object
- vspace pixels Not supported in HTML5. It specifies the whitespace on top and bottom of an object
- width pixels It specifies the width of the object
Style & Semantic Tags and its attributes:
<style> It Defines style information for a document. Supports global and event attributes.Attributes:
- media media_query It specifies what media/device the media resource is optimized for
- type text/css It specifies the media type of the <style> tag
Attributes:
- align left right center justify Not supported in HTML5. It specifies the alignment of the content inside a <div> element
<header>Defines a header for a document or section. Supports global and event attributes.
<footer>Defines a footer for a document or section. Supports global and event attributes.
<main>Specifies the main content of a document. Supports global and event attributes.
<section> Defines a section in a document. Supports global and event attributes.
<article> Defines an article. Supports global and event attributes.
<aside> Defines content aside from the page content. Supports global and event attributes.
<details> Defines additional details that the user can view or hide. Supports global and event attributes.
Attributes:
- open open It specifies that the details should be visible (open) to the user
Attributes:
- open open It specifies that the dialog element is active and that the user can interact with it.
<data> Links the given content with a machine-readable translation. Supports global attributes.
Attributes:
- value machine-readable format It specifies the machine-readable translation of the content of the element
No comments:
Post a Comment