html cheat sheet cheat sheet berners-lee invented it back in 1991. today html5 is the standard...
TRANSCRIPT
-
HTML CHEAT SHEET
Berners-Lee invented it back in 1991. Today HTML5 is the standardversion and it's supported by all modern web browsers. Our HTMLcheat sheet gives you a full list of all the HTML elements, includingdescriptions, code examples and live previews. Simply scroll down tobrowse all HTML tags alphabetically or browse tags by theircategory.
a elementabbr elementaddresselementarea elementarticle elementaside elementaudio elementb elementbase elementbdi elementbdo elementblockquoteelementbody elementbr elementbuttonelementcanvaselementcaptionelementcite elementcode elementcol elementcolgroupelementdata elementdatalistelementdd elementdel elementdetails element
del elementdetails elementdfn elementdialog elementdiv elementdl elementdt elementem elementembedelementeldsetelementgcaptionelementgure elementfooter elementform elementh1 to h6elementhead elementheaderelementhgroupelementhr elementhtml elementi elementiframe elementimg elementinput elementins elementkbd elementlabel elementlegend
label elementlegendelementli elementlink elementmain elementmap elementmark elementmenu elementmeta elementmeter elementnav elementnoscriptelementobject elementol elementoptgroupelementoption elementoutputelementp elementparam elementpre elementprogresselementq elementrp elementrt elementruby elements elementsamp elementscript elementsection
script elementsectionelementselect elementsmall elementsourceelementspan elementstrong elementstyle elementsub elementsummaryelementsup elementtable elementtbody elementtd elementtextareaelementtfoot elementth elementthead elementtime elementtitle elementtr elementtrack elementul elementvar elementvideo elementwbr element
HTML (Hypertext Markup Language) has come a long way since Tim
http://html.comhttp://html.com
-
LIST OF HTML ELEMENTS B CATEGORAn HTML element (or tag) is an individual component of an HTMLdocument. Here below is a full list of HTML elements listed bycategory.
HTML TAGSpecies an html document. The HTML element (or HTMLroot element) represents the root of an HTML document. All otherelements must be descendants of this element. Since the element is the rst in a document other than comments, it is calledthe root element. Although this tag can be implied, or not required,with HTML, it is required to be opened and closed in XHTML.
Attributes (modiers)xmlns + global attributes
Code example
Back to categories
Basic HTMLElementsMetadataHTMLElementsContentSectioningHTMLElementsContent
ElementsContentGroupingHTMLElementsText LevelSemanticHTMLElements
Table HTML
Table HTMLElementsForm HTMLElementsContentEmbeddingHTMLElements
Images &
Images &MultimediaHTMLElementsGlobal HTMLAttributesNew Tags inHTML5
......
-
BASE TAGSpecies URL which non-absolute URLs are relative to. The HTML element species the base URL to use for all relative URLscontained within a document. There can be only one elementin a document.
Attributes (modiers)href | target (_self | _blank | _parent | _top) + global attributes
Code example
HEAD TAGFirst element of the HTML document. Collection of metadata for theDocument. The HTML element provides general information(metadata) about the document, including its title and links to itsscripts and style sheets.
Attributes (modiers)Global attributes
Code example
LINK TAGOther resources related to the document. The HTML elementspecies relationships between the current document and anexternal resource. Possible uses for this element include dening arelational framework for navigation. This Element is most used tolink to style sheets.
Attributes (modiers)
Documenttitle
href="http://www.DIGITAL.COM/page.html"
-
Attributes (modiers)href | rel | media | hreang | type | sizes | crossorigin | integrity +global attributes
Code example
META TAGDocument metadata that can't be expressed with other elements.The HTML element represents any metadata informationthat cannot be represented by one of the other HTML meta-relatedelements (, , , or ). Depending onthe attributes set, the kind of metadata can be one of the following:If name is set, it is document-level metadata, applying to the wholepage. If http-equiv is set, it is a pragma directive, i.e. informationnormally given by the web server about how the web page should beserved. If charset is set, it is a charset declaration, i.e. the charsetused for the serialized form of the webpage. If itemprop is set, it isuser-dened metadata, transparent for the user-agent as thesemantics of the metadata is user-specic.
Attributes (modiers)charset | content | http-equiv | name + global attributes
Code example
STLE TAGEmbed style information in the documents. The HTML element contains style information for a document, or part of adocument. By default, the style instructions written inside thatelement are expected to be CSS.
Attributes (modiers)media | type | title + global attributes
Code example
-
TITLE TAGDocument title or name. The HTML element denes the titleof the document, shown in a browser's title bar or on the page's tab.It can only contain text, and any contained tags are ignored.
Attributes (modiers)Global attributes
Code example
Back to categories
ADDRESS TAGThe HTML element supplies contact information for itsnearest or ancestor; in the latter case, it applies tothe whole document.
Attributes (modiers)Global attributes
Code example
ARTICLE TAG
Section of the page content, such as a blog or forum post. The HTML
body{color:red;}
Thisisthepagetitle
ReviewSquirrel ElizabethStreetSydneyAustralia
-
Section of the page content, such as a blog or forum post. The HTML element represents a self-contained composition in adocument, page, application, or site, which is intended to beindependently distributable or reusable (e.g., in syndication). Thiscould be a forum post, a magazine or newspaper article, a blog entry,an object, or any other independent item of content. Each should be identied, typically by including a heading (-element) as a child of the element.
Attributes (modiers)Global attributes
Code example
ASIDE TAGContent related to surrounding elements that doesn't belong inline,such as a advertising or quotes. The HTML elementrepresents a section of the page with content connected tangentiallyto the rest, which could be considered separate from that content.These sections are often represented as sidebars or inserts. Theyoften contain the denitions on the sidebars, such as denitionsfrom the glossary; there may also be other types of information,such as related advertisements; the biography of the author; webapplications; prole information or related links on the blog.
Attributes (modiers)Global attributes
Code example
Ilovethistool.
PostedonMay byMatt.
TheDisneymovieTheLittleMermaidwas
-
BOD TAGMain content of the document. The HTML Elementrepresents the content of an HTML document. There can be only one element in a document.
Attributes (modiers)onafterprint | onbeforeprint | onbeforeunload | onblur | onerror |onfocus | onhashchange | onlanguagechange | onload | onmessage |onoine | ononline | onpopstate | onredo | onresize | onstorage |onundo | onunload + global attributes
Code example
FOOTER TAGFooter of the current section. The HTML elementrepresents a footer for its nearest sectioning content or sectioningroot element. A footer typically contains information about theauthor of the section, copyright data or links to related documents.
Attributes (modiers)
firstreleasedtotheatresin .
Themovieearned$ millionduringitsinitialrelease.Moreinfoaboutthemovie...
Heregoesthetitleofthedocument
Heregoesthehecontentofthedocument......
-
Attributes (modiers)Global attributes
Code example
H1 TO H6 TAGHeading for the current section. Heading elements implement sixlevels of document headings, is the most important and isthe least. A heading element briey describes the topic of thesection it introduces. Heading information may be used by useragents, for example, to construct a table of contents for a documentautomatically.
Attributes (modiers)Global attributes
Code example
HEADER TAGNavigation or introductory elements for the current section. TheHTML element represents a group of introductory ornavigational aids. It may contain some heading elements but alsoother elements like a logo, wrapped section's header, a search form,and so on.
Attributes (modiers)Global attributes
Code example
Somecopyrightinfogoeshere
Headinglevel Headinglevel Headinglevel Headinglevel Headinglevel Headinglevel
Logo
-
HGROUP TAGThe HTML Element (HTML Headings Group Element)represents the heading of a section. It denes a single title thatparticipates in the outline of the document as the heading of theimplicit or explicit section that it belongs to. Its text for the outlinealgorithm is the text of the rst HTML Heading Element of highestrank (i.e., the rst , , , , or with thesmallest number among its descendants) and the rank is the rank ofthis very same HTML Heading Element. Therefore this elementgroups several headings, contributing only the main one to theoutline of the document. It allows associating secondary titles, likesubheadings, alternative titles, or even taglines, with the mainheading, without polluting the outline of the document.
Attributes (modiers)Global attributes
Code example
NAV TAGA section of a page that links to other pages. The HTML element (HTML Navigation Element) represents a section of a pagethat links to other pages or to parts within the page: a section withnavigation links.
Attributes (modiers)Global attributes
Code example
MaintitleSecondarytitle
HomeAboutusContactus
-
SECTION TAGContains of elements grouped by theme, for example a chapter ortab box. The HTML element represents a generic section ofa document, i.e., a thematic grouping of content, typically with aheading. Each should be identied, typically by including aheading (- element) as a child of the element.
Attributes (modiers)Global attributes
Code example
BLOCKQUOTE TAGQuote from another source. The HTML Element (orHTML Block Quotation Element) indicates that the enclosed text is anextended quotation. Usually, this is rendered visually by indentation(see Notes for how to change it). A URL for the source of thequotation may be given using the cite attribute, while a textrepresentation of the source can be given using the element.
Attributes (modiers)cite + global attributes
Code example
Back to categories
BR TAG
Line break. The HTML element line break produces a line break
Heading
Bunchofawesomecontent
ThisisaquotetakenfromReviewSquirrel.
-
Line break. The HTML element line break produces a line breakin text (carriage-return). It is useful for writing a poem or an address,where the division of lines is signicant. Do not use to increasethe gap between lines of text; use the CSS margin property or the
element.
Attributes (modiers)Global attributes
Code example
DD TAGDescription, denition, or value, part of a term- description group ina description list. The HTML element (HTML DescriptionElement) indicates the description of a term in a description list() element. This element can occur only as a child element of adescription list and it must follow a element.
Attributes (modiers)Global attributes
Code example
DIV TAGContainer or section with no semantic meaning. The HTML element (or HTML Document Division Element) is the genericcontainer for ow content, which does not inherently representanything. It can be used to group elements for styling purposes(using the class or id attributes), or because they share attributevalues, such as lang. It should be used only when no other semanticelement (such as or ) is appropriate.
Attributes (modiers)
ReviewSquirrel ElizabethStreetAustralia
ReviewSquirrelHelpsyoufindthebesttoolsforrunningasmallbusinesswebsite
-
Attributes (modiers)Global attributes
Code example
DL TAGAn association list consisting of zero or more name-value groups (adescription list). The HTML element (or HTML Description ListElement) encloses a list of pairs of terms and descriptions. Commonuses for this element are to implement a glossary or to displaymetadata (a list of key-value pairs). Prior to HTML5, was knownas a Denition List.
Attributes (modiers)Global attributes
Code example
DT TAGTerm, or name, part of a term-description group in a description list.The HTML element (or HTML Denition Term Element) identiesa term in a denition list. This element can occur only as a childelement of a . It is usually followed by a element; however,multiple elements in a row indicate several terms that are alldened by the immediate next element.
Attributes (modiers)Global attributes
Code example
Anykindofcontenthere.Suchas
,.Younameit!
ReviewSquirrelHelpsyoufindthebesttoolsforrunningasmallbusinesswebsite
-
FIGCAPTION TAGCaption or legend for the gure element. The HTML element represents a caption or a legend associated with a gure oran illustration described by the rest of the data of the element which is its immediate ancestor which means can be the rst or last element inside a block. Also, theHTML Figcaption Element is optional; if not provided, then the parentgure element will have no caption.
Attributes (modiers)Global attributes
Code example
FIGURE TAGContains elements related to single concept, such as an illustrationor code example. The HTML element represents self-contained content, frequently with a caption (), and istypically referenced as a single unit. While it is related to the mainow, its position is independent of the main ow. Usually this is animage, an illustration, a diagram, a code snippet, or a schema that isreferenced in the main text, but that can be moved to another pageor to an appendix without aecting the main ow.
Attributes (modiers)Global attributes
Code example
ReviewSquirrelHelpsyoufindthebesttoolsforrunningasmallbusinesswebsite
Apicture
-
HR TAGParagraph-level thematic break. The HTML element representsa thematic break between paragraph-level elements (for example, achange of scene in a story, or a shift of topic with a section). Inprevious versions of HTML, it represented a horizontal rule. It maystill be displayed as a horizontal rule in visual browsers, but is nowdened in semantic terms, rather than presentational terms.
Attributes (modiers)Global attributes
Code example
LI TAGList item. The HTML element (or HTML List Item Element) is usedto represent an item in a list. It must be contained in a parentelement: an ordered list (), an unordered list (), or a menu(). In menus and unordered lists, list items are usuallydisplayed using bullet points. In ordered lists, they are usuallydisplayed with an ascending counter on the left, such as a number orletter.
Attributes (modiers)value + global attributes
Code example
Apicture
Thisisthefirstparagraphoftext.
Thisissecondparagraphoftext.
firstitemseconditem
-
MAIN TAGSpecies the main content area of an HTML document. The HTML element represents the main content of the of adocument or application. The main content area consists of contentthat is directly related to, or expands upon the central topic of adocument or the central functionality of an application. This contentshould be unique to the document, excluding any content that isrepeated across a set of documents such as sidebars, navigationlinks, copyright information, site logos, and search forms (unless thedocument's main function is as a search form).
Attributes (modiers)Global attributes
Code example
OL TAGOrdered list. The HTML Element (or HTML Ordered List Element)represents an ordered list of items. Typically, ordered-list items aredisplayed with a preceding numbering, which can be of any form, likenumerals, letters or Romans numerals or even simple bullets. Thisnumbered style is not dened in the HTML description of the page,but in its associated CSS, using the list-style-type property. There isno limitation to the depth and overlap of lists dened with the and elements.
Attributes (modiers)start | reversed | type + global attributes
Code example
thirditem
Apples
Theappleisthepomaceousfruitoftheappletree.
Theappleisthepomaceousfruitoftheappletree.
-
Code example
P TAGParagraph content. The HTML
element (or HTML ParagraphElement) represents a paragraph of text. Paragraphs are usuallyrepresented in visual media as blocks of text that are separated fromadjacent blocks by vertical blank space and/or rst-line indentation.Paragraphs are block-level elements.
Attributes (modiers)Global attributes
Code example
PRE TAGA block of preformatted text. The HTML element (or HTMLPreformatted Text) represents preformatted text. Text within thiselement is typically displayed in a non-proportional ("monospace")font exactly as it is laid out in the le. Whitespace inside this elementis displayed as typed.
Attributes (modiers)Global attributes
Code example
firstitemseconditemthirditem
Thisisthefirstparagraphoftext.
Thisissecondparagraphoftext.
body{backgroundcolor:red;}
-
UL TAGUnordered list. The HTML element (or HTML Unordered ListElement) represents an unordered list of items, namely a collectionof items that do not have a numerical ordering, and their order inthe list is meaningless. Typically, unordered-list items are displayedwith a bullet, which can be of several forms, like a dot, a circle or asquared. The bullet style is not dened in the HTML description ofthe page, but in its associated CSS, using the list-style-type property.
Attributes (modiers)Global attributes
Code example
Back to categories
A TAGHyperlink (a hypertext anchor). The HTML Anchor Element ( tag)denes a hyperlink to a location on the same page or any other pageon the Web. It can also be used (in an obsolete way) to create ananchor point - a destination for hyperlinks within the content of apage, so that links aren't limited to connecting simply to the top of apage.
Attributes (modiers)href | hreang | media | rel | target (_self | _blank | _parent | _top) |type | download | ping | referrerpolicy + global attributes
Code example
firstitemseconditemthirditem
Squirrel
Review
-
ABBR TAGAbbreviation or acronym. The element (or HTMLAbbreviation Element) represents an abbreviation and optionallyprovides a full description for it. If present, the title attribute mustcontain this full description and nothing else.
Attributes (modiers)Global attributes
Code example
B TAGStylistically separated text of equal importance, such as a productname. The HTML Element represents a span of text stylisticallydierent from normal text, without conveying any specialimportance or relevance. It is typically used for keywords in asummary, product names in a review, or other spans of text whosetypical presentation would be boldfaced. Another example of its useis to mark the lead sentence of each paragraph of an article.
Attributes (modiers)Global attributes
Code example
BDI TAGDenes directional formatting for content. The HTML Element(or Bi-Directional Isolation Element) isolates a span of text that mightbe formatted in a dierent direction from other text outside it.
Attributes (modiers)dir + global attributes
Code example
ThisisHTML
Thisarticledescribesseveraltextlevelelements.ItexplainstheirusageinanHTMLdocument.
-
Code example
BDO TAGDenes directional formatting for content. The HTML Element(or HTML bidirectional override element) is used to override thecurrent directionality of text. It causes the directionality of thecharacters to be ignored in favor of the specied directionality.
Attributes (modiers)dir + global attributes
Code example
CITE TAGTitle of a referenced piece of work. The HTML Citation Element() represents a reference to a creative work. It must include thetitle of a work or a URL reference, which may be in an abbreviatedform according to the conventions used for the addition of citationmetadata.
Attributes (modiers)Global attributes
Code example
CODE TAG
Fragment of computer code. The HTML Code Element ()
ThisarabicwordARABIC_PLACEHOLDERisautomaticallydisplayedrighttoleft.
Thistextwillgorighttoleft.
ThisisaquotetakenfromReviewSquirrel
-
Fragment of computer code. The HTML Code Element ()represents a fragment of computer code. By default, it is displayed inthe browser's default monospace font.
Attributes (modiers)Global attributes
Code example
DEL TAGText that has been removed during document editing. The HTMLDeleted Text Element () represents a range of text that hasbeen deleted from a document. This element is often (but need notbe) rendered with strike-through text.
Attributes (modiers)cite | datetime + global attributes
Code example
DFN TAGDening instance of a term. The HTML Denition Element ()represents the dening instance of a term.
Attributes (modiers)Global attributes
Code example
Regulartext.Thisiscode.Regulartext.
Thistexthasbeendeleted,hereistherestoftheparagraph.
Thisparagraphhasbeendeleted.
TheInternetisaglobalsystemofinterconnectednetworksthatusetheInternetProtocolSuite TCP/IP toservebillionsofusersworldwide.
-
EM TAGText that should be emphasized. The HTML element emphasis marks text that has stress emphasis. The element can benested, with each level of nesting indicating a greater degree ofemphasis.
Attributes (modiers)Global attributes
Code example
I TAGText in a alternate voice or mood, such as a technical term. The HTML Element represents a range of text that is set o from the normaltext for some reason, for example, technical terms, foreign languagephrases, or ctional character thoughts. It is typically displayed initalic type.
Attributes (modiers)Global attributes
Code example
INS TAGText that has been inserted during document editing. The HTML Element (or HTML Inserted Text) HTML represents a range oftext that has been added to a document.
Attributes (modiers)cite | datetime + global attributes
Code example
InHTML ,whatwaspreviouslycalledblocklevelcontentisnowcalledflowcontent.
TheLatinphraseVeni,vidi,viciisoftenmentionedinmusic,art,andliterature
-
Code example
KBD TAGExample input (usually keyboard) for a program. The HTML KeyboardInput Element () represents user input and produces an inlineelement displayed in the browser's default monospace font.
Attributes (modiers)Global attributes
Code example
MARK TAGText highlighted for referencing elsewhere. The HTML Mark Element() represents highlighted text, i.e., a run of text marked forreference purpose, due to its relevance in a particular context. Forexample it can be used in a page showing search results to highlightevery instance of the searched-for word.
Attributes (modiers)Global attributes
Code example
Q TAGPhrasing content quoted from another source. The HTML QuoteElement () indicates that the enclosed text is a short inlinequotation. This element is intended for short quotations that don'trequire paragraph breaks; for long quotations use element.
Attributes (modiers)
Thistexthasbeeninserted
SavethedocumentbypressingCtrl+S
Theelementisusedtohighlighttext
-
Attributes (modiers)cite + global attributes
Code example
RP TAGContains semantically meaningless markup for browsers that don'tunderstand ruby annotations. The HTML element is used toprovide fall-back parenthesis for browsers non-supporting rubyannotations. Ruby annotations are for showing pronunciation of EastAsian characters, like using Japanese furigana or Taiwainesebopomofo characters. The element is used in the case of lack of element support its content has what should be displayed inorder to indicate the presence of a ruby annotation, usuallyparentheses.
Attributes (modiers)Global attributes
Code example
RT TAGAnnotation of preceding text. The HTML Element embracespronunciation of characters presented in a ruby annotations, whichare used to describe the pronunciation of East Asian characters. Thiselement is always used inside a element.
Attributes (modiers)
EverytimeKennyiskilled,StanwillannounceOhmyGod,you/theykilledKenny!.
Kan ji
http://en.wikipedia.org/wiki/Kenny_McCor
-
Attributes (modiers)Global attributes
Code example
RUB TAGContains text with annotations, such as pronunciation hints.Commonly used in East Asian text. The HTML Elementrepresents a ruby annotation. Ruby annotations are for showingpronunciation of East Asian characters.
Attributes (modiers)Global attributes
Code example
S TAGStrikethrough text that is outdated or no longer accurate. The HTMLStrikethrough Element () renders text with a strikethrough, or aline through it. Use the element to represent things that are nolonger relevant or no longer accurate. However, is notappropriate when indicating document edits; for that, use the and elements, as appropriate.
Attributes (modiers)Global attributes
Code example
Kan ji
Kan ji
Planetearthisflatround
-
SAMP TAGSample output of a program. The HTML element is anelement intended to identify sample output from a computerprogram. It is usually displayed in the browser's default monotypefont (such as Lucida Console).
Attributes (modiers)Global attributes
Code example
SMALL TAGSmall text, such as ne print. The HTML Small Element ()makes the text font size one size smaller (for example, from large tomedium, or from small to x-small) down to the browser's minimumfont size. In HTML5, this element is repurposed to represent side-comments and small print, including copyright and legal text,independent of its styled presentation.
Attributes (modiers)Global attributes
Code example
SPAN TAGContainer with no semantic meaning. The HTML element is ageneric inline container for phrasing content, which does notinherently represent anything. It can be used to group elements forstyling purposes (using the class or id attributes), or because theyshare attribute values, such as lang. It should be used only when noother semantic element is appropriate. is very much like a
element, but is a block-level element whereas a is
Regulartext.Thisissampletext.Regulartext.
Thisisthefirstsentence.Thiswholesentenceisinsmallletters.
-
element, but is a block-level element whereas a isan inline element.
Attributes (modiers)Global attributes
Code example
STRONG TAGText that is important. The HTML Strong Element () givestext strong importance, and is typically displayed in bold.
Attributes (modiers)Global attributes
Code example
SUB TAGSubscript text. The HTML Subscript Element () denes a span oftext that should be displayed, for typographic reasons, lower, andoften smaller, than the main span of text.
Attributes (modiers)Global attributes
Code example
SUP TAG
Superscript text. The HTML Superscript Element () denes a
Sometext
Whendoingxitisimperativetodoybeforeproceeding.
ThechemicalformulaofwaterisH O
-
Superscript text. The HTML Superscript Element () denes aspan of text that should be displayed, for typographic reasons,higher, and often smaller, than the main span of text.
Attributes (modiers)Global attributes
Code example
TIME TAGTime dened in a machine readable format. The HTML element represents either a time on a 24-hour clock or a precise datein the Gregorian calendar (with optional time and timezoneinformation). This element is intended to be used presenting datesand times in a machine readable format. This can be helpful for useragents to oer any event scheduling for user's calendar.
Attributes (modiers)datetime + global attributes
Code example
VAR TAGMathematical or programming variable. The HTML Variable Element() represents a variable in a mathematical expression or aprogramming context.
Attributes (modiers)Global attributes
Code example
WBR TAG
Thistextissuperscripted
Theconcertstartsat 0:00.
Asimpleequation:x=y+
-
WBR TAGOpportunity for a line break. The HTML element word breakopportunity represents a position within text where thebrowser may optionally break a line, though its line-breaking ruleswould not otherwise create a break at that location.
Attributes (modiers)Global attributes
Code example
Back to categories
CAPTION TAGTitle of a table. The HTML Element (or HTML Table CaptionElement) represents the title of a table. Though it is always the rstdescendant of a , its styling, using CSS, may place itelsewhere, relative to the table.
Attributes (modiers)Global attributes
Code example
http://this.is.a.really.long.example.com/With/deeper/level/pages/deeper/level/pages/deeper/level/pages/deeper/level/pages/deeper/level/pages
MonthlysavingsMonthSavingsJanuary$ 00
http://this%3Cwbr%3E.is%3Cwbr%3E.a%3Cwbr%3E.really%3Cwbr%3E
-
COL TAGColumns in a table. The HTML Table Column Element () denes acolumn within a table and is used for dening common semantics onall common cells. It is generally found within a element.
Attributes (modiers)span + global attributes
Code example
COLGROUP TAGDenes a group of columns in a table. The HTML Table Column GroupElement () denes a group of columns within a table.
Attributes (modiers)span + global attributes
Code example
February$ 0
MonthlysavingsMonthSavingsJanuary$ 00February$ 0
-
TABLE TAGTable of multi-dimensional data. The HTML Table Element ()represents tabular data: information expressed via two dimensionsor more.
Attributes (modiers)summary + global attributes
Code example
TBOD TAG
MonthlysavingsMonthSavingsJanuary$ 00February$ 0
MonthlysavingsMonthSavingsJanuary$ 00February$ 0
-
TBOD TAGContains rows that hold the table's data. The HTML Table BodyElement () denes one or more element data-rows to bethe body of its parent element (as long as no elementsare immediate children of that table element.) In conjunction with apreceding and/or element, providesadditional semantic information for devices such as printers anddisplays. Of the parent table's child elements, represents thecontent which, when longer than a page, will most likely dier foreach page printed; while the content of and will bethe same or similar for each page printed. For displays, willenable separate scrolling of the , , and elements of the same parent element. Note that unlike the, , and elements however, multiple elements are permitted (if consecutive), allowing the data-rows inlong tables to be divided into dierent sections, each separatelyformatted as needed.
Attributes (modiers)Global attributes
Code example
...headerinformation...
...footerinformation...
...firstrowofblockonedata...
...secondrowofblockonedata...
...firstrowofblocktwodata...
...secondrowofblocktwodata...
...thirdrowofblocktwodata...
-
TD TAGTable cell. The Table cell HTML element () denes a cell of a tablethat contains data. It participates in the table model.
Attributes (modiers)colspan | rowspan | headers + global attributes
Code example
TFOOT TAGContains rows with summary of data. The HTML Table Foot Element() denes a set of rows summarizing the columns of the table.
Attributes (modiers)Global attributes
Code example
MonthlysavingsMonthSavingsJanuary$ 00February$ 0
...headerinformation...
...footerinformation...
-
TH TAGTable heading. The HTML element table header cell denes acell as a header for a group of cells of a table. The group of cells thatthe header refers to is dened by the scope and headers attribute.
Attributes (modiers)colspan | rowspan | scope | headers + global attributes
Code example
THEAD TAG
Contains rows with table headings. The HTML Table Head Element
...firstrowofblockonedata...
...secondrowofblockonedata...
...firstrowofblocktwodata...
...secondrowofblocktwodata...
...thirdrowofblocktwodata...
MonthlysavingsMonthSavingsJanuary$ 00February$ 0
-
Contains rows with table headings. The HTML Table Head Element() denes a set of rows dening the head of the columns ofthe table.
Attributes (modiers)Global attributes
Code example
TR TAGA row of cells in a table. The HTML element table row denes arow of cells in a table. Those can be a mix of and elements.
Attributes (modiers)Global attributes
Code example
...headerinformation...
...footerinformation...
...firstrowofblockonedata...
...secondrowofblockonedata...
...firstrowofblocktwodata...
...secondrowofblocktwodata...
...thirdrowofblocktwodata...
Monthlysavings
-
Back to categories
BUTTON TAGA button. The HTML Element represents a clickable button.
Attributes (modiers)autofocus | disabled | form | formaction | formenctype | formmethod| formnovalidate | formtarget (_self | _blank | _parent | _top) | name |type | value + global attributes
Code example
DATA TAGAllows for machine-readable data to be provided. The HTML Element links a given content with a machine-readable translation. Ifthe content is time- or date-related, the must be used.
Attributes (modiers)value + global attributes
Code example
MonthSavingsJanuary$ 00February$ 0
Iamabutton.Clickme!
-
DATALIST TAGDene sets of options. The HTML Datalist Element ()contains a set of elements that represent the valuesavailable for other controls.
Attributes (modiers)Global attributes
Code example
FIELDSET TAGSet of form controls grouped by theme. The HTML elementis used to group several controls as well as labels () within aweb form.
Attributes (modiers)disabled | form | name + global attributes
Code example
MiniKetchupJumboKetchupMegaJumboKetchup
Chooseabrowserfromthislist:
-
FORM TAGUsed to create an HTML form for user input. The HTML element represents a document section that contains interactivecontrols to submit information to a web server. It is possible to usethe :valid and :invalid CSS pseudo-classes to style a element.
Attributes (modiers)action | autocomplete | name | novalidate | accept-charset | enctype |method | target (_self | _blank | _parent | _top) + global attributes
Code example
INPUT TAGGeneric form input. The HTML element is used to createinteractive controls for web-based forms in order to accept datafrom the user. How an works varies considerably dependingon the value of its type attribute.
Attributes (modiers)accept | alt | auto-complete | autofocus | checked | disabled | form |formaction | formenctype | formmethod | formnovalidate |formtarget | height | list | max | maxlength | min | multiple | name |pattern | placeholder | readonly | required | size | src | step | type |value | width | webkitdirectory | global | spellcheck |selectionDirection + global attributes
Code example
TitleClickme
TitleClickme
-
Code example
LABEL TAGCaption for a form control. The HTML Label Element ()represents a caption for an item in a user interface. It can beassociated with a control either by placing the control element insidethe element, or by using the for attribute. Such a control iscalled the labeled control of the label element. One input can beassociated with multiple labels.
Attributes (modiers)for + global attributes
Code example
LEGEND TAGDene a name for a eldset. The HTML Element (or HTMLLegend Field Element) represents a caption for the content of itsparent .
Attributes (modiers)Global attributes
Code example
METER TAG
Control for entering a numeric value in a known range. The HTML
Clickme
TitleClickme
-
Control for entering a numeric value in a known range. The HTML Element represents either a scalar value within a knownrange or a fractional value.
Attributes (modiers)high | low | max | min | optimum | value | form + global attributes
Code example
OPTGROUP TAGGroup of option. In a Web form, the HTML elementcreates a grouping of options within a element.
Attributes (modiers)disabled | label + global attributes
Code example
OPTION TAGSingle option within a select control. In a Web form, the HTML element is used to create a control representing an itemwithin a , an or a HTML5 element.
Attributes (modiers)
Heattheovento 0degrees.
Option . Option . Option . Option . Option . Option .
-
Attributes (modiers)disabled | label | selected | value + global attributes
Code example
OUTPUT TAGContains the results of a calculation. The HTML elementrepresents the result of a calculation or user action.
Attributes (modiers)form | for | name + global attributes
Code example
PROGRESS TAGControl for displaying progress of a task. The HTML Element is used to view the completion progress of a task. While thespecics of how it's displayed is left up to the browser developer, it'stypically displayed as a progress bar. Javascript can be used tomanipulate the value of progress bar.
Attributes (modiers)max | value + global attributes
Code example
Value Value
Value
+= 0
-
SELECT TAGControl for selecting from multiple options. The HTML select() element represents a control that presents a menu ofoptions. The options within the menu are represented by elements, which can be grouped by elements. Optionscan be pre-selected for the user.
Attributes (modiers)autofocus | size | disabled | form | multiple | name | required + globalattributes
Code example
TEXTAREA TAGMultiline free-form text input. The HTML elementrepresents a multi-line plain-text editing control.
Attributes (modiers)autocomplete | autofocus | cols | disabled | dirname | form | name |readonly | required | rows | maxlength | minlength | placeholder |wrap | selectionDirection | selectionEnd | selectionStart | spellcheck +global attributes
Code example
Back to categories
0%
Value Value
Value
Writesomethinghere
-
EMBED TAGIntegration point for an external (typically non-HTML) application orinteractive content. The HTML Element represents anintegration point for an external application or interactive content(in other words, a plug-in).
Attributes (modiers)height | src | type | width + global attributes
Code example
IFRAME TAGNested browser frame. The HTML Inline Frame Element ()represents a nested browsing context, eectively embeddinganother HTML page into the current page. In HTML 4.01, a documentmay contain a head and a body or a head and a frameset, but notboth a body and a frameset. However, an can be usedwithin a normal document body. Each browsing context has its ownsession history and active document. The browsing context thatcontains the embedded content is called the parent browsingcontext. The top-level browsing context (which has no parent) istypically the browser window.
Attributes (modiers)allowfullscreen | src | name | sandbox | seamlesss | width | height |srcdoc | referrerpolicy + global attributes
Code example
IMG TAGAn image. The HTML element represents an image in the
Yourbrowserdoesnotsupportiframes.
http://www.example.com/iframe%E2%80%90
-
An image. The HTML element represents an image in thedocument.
Attributes (modiers)alt | src | height | ismap | usemap | width | crossorigin | longdesc |referrerpolicy | sizes | srcset + global attributes
Code example
OBJECT TAGExternal resource such as an image, iframe or plugin. The HTMLEmbedded Object Element () represents an externalresource, which can be treated as an image, a nested browsingcontext, or a resource to be handled by a plugin.
Attributes (modiers)data | height | type | usemap | width | form | name | typemustmatch |usemap + global attributes
Code example
PARAM TAGParameters for the parent object. The HTML Element (orHTML Parameter Element) denes parameters for .
Attributes (modiers)name | value + global attributes
Code example
-
SOURCE TAGAlternative sources for parent video or audio elements. The HTML element species multiple media resources for either the, the or the element. It is an emptyelement. It is commonly used to serve the same media content inmultiple formats supported by dierent browsers.
Attributes (modiers)media | src | type | sizes | srcset + global attributes
Code example
AREA TAGHyperlink with some text and a corresponding area on an imagemap, or a dead area on an image map. The HTML elementdenes a hot-spot region on an image, and optionally associates it
with a hypertext link. This element is used only within a
-
with a hypertext link. This element is used only within a element.
Attributes (modiers)alt | coords | download | href | hreang | media | rel | referrerpolicy |shape | target | type + global attributes
Code example
Back to categories
AUDIO TAGSound or audio stream. The HTML element is used to embedsound content in documents. It may contain one or more audiosources, represented using the src attribute or the element; the browser will choose the most suitable one.
Attributes (modiers)autoplay | buered | preload | loop | controls | src | muted | played |volume + global attributes
Code example
MAP TAGImage map for adding hyperlinks to parts of an image. The HTML element is used with elements to dene an image map
(a clickable link area).
Yourbrowserdoesnotsupporttheaudioelement.
http://developer.mozilla.org/@api/deki/fi
-
(a clickable link area).
Attributes (modiers)name + global attributes
Code example
TRACK TAGSpecies external timing track for media element. The HTML element is used as a child of the media elements and. It lets you specify timed text tracks (or time-based data), forexample to automatically handle subtitles. The tracks are formattedin WebVTT format (.vtt les) Web Video Text Tracks.
Attributes (modiers)default | kind | label | src | srclang + global attributes
Code example
-
VIDEO TAGUsed for playing videos or movies. Use the HTML element toembed video content in a document. The video element contains oneor more video sources. To specify a video source, use either the srcattribute or the element; the browser will choose the mostsuitable one.
Attributes (modiers)autoplay | controls | height | loop | poster | preload | src | width |buered | crossorigin | muted | played + global attributes
Code example
DETAILS TAGContains additional information, such as the contents of anaccordian view. The HTML Details Element () is used as adisclosure widget from which the user can retrieve additionalinformation.
Attributes (modiers)open + global attributes
Code example
Sorry,yourbrowserdoesn'tsupportembeddedvideos,butdon'tworry,youcandownloaditandwatchitwithyourfavoritevideoplayer!
Somedetails
Moreinfoaboutthedetails.
-
DIALOG TAGThe HTML element represents a dialog box or otherinteractive component, such as an inspector or window. elements can be integrated within a dialog by specifying them withthe attribute method="dialog". When such a form is submitted, thedialog is closed with a returnValue attribute set to the value of thesubmit button used.
Attributes (modiers)open + global attributes
Code example
MENU TAGSet of commands. The HTML element represents a group ofcommands that a user can perform or activate. This includes both listmenus, which might appear across the top of a screen, as well ascontext menus, such as those that might appear underneath abutton after it has been clicked.
Attributes (modiers)label | type + global attributes
Code example
SUMMAR TAG
Caption of a details element. The HTML summary element
Greetings,oneandall!
ActionAnotheractionSeparatedaction
-
Caption of a details element. The HTML summary element() is used as a summary, caption, or legend for thecontent of a element.
Attributes (modiers)Global attributes
Code example
CANVAS TAGBitmap which is editable by client side scripts. The HTML Element can be used to draw graphics via scripting (usuallyJavaScript). For example, it can be used to draw graphs, make photocompositions or even perform animations. You may (and should)provide alternate content inside the block. That contentwill be rendered both on older browsers that don't support canvasand in browsers with JavaScript disabled.
Attributes (modiers)height | width + global attributes
Code example
NOSCRIPT TAGContains elements that are part of the document only if scripting isdisabled. The HTML Element denes a section of html tobe inserted if a script type on the page is unsupported or if scriptingis currently turned o in the browser.
Attributes (modiers)Global attributes
Code example
Somedetails
Moreinfoaboutthedetails.
Analternativetextdescribingwhatyourcanvasdisplays.
-
SCRIPT TAGInline or linked client side scripts. The HTML Script Element ()is used to embed or reference an executable script within an HTMLor XHTML document. Scripts without async or defer attributes, aswell as inline scripts, are fetched and executed immediately, beforethe browser continues to parse the page.
Attributes (modiers)async | type | defer | src | charset | integrity | text | language | defer |crossorigin + global attributes
Code example
Back to categories
GLOBAL ATTRIBUTESHere below is a list of attributes supported by all HTML5 tags
Attribute Description Values
accesskeySpecies a keyboard shortcut toaccess an element
character
classSpecies a classname for anelement (used to specify a classin a style sheet)
classname
contenteditableSpecies if the user is allowedto edit the content or not
true | false
External
-
contextmenu Species the context menu foran element
menu_id
dirSpecies the text direction forthe content in an element
ltr | rtl
draggableSpecies whether or not a useris allowed to drag an element
true | false |auto
dropzoneSpecies what happens whendragged items/data is droppedin the element
copy | move |link
hiddenSpecies that the element isnot relevant. Hidden elementsare not displayed
hidden
idSpecies a unique id for anelement
id
langSpecies a language code forthe content in an element.
language_code
spellcheckSpecies if the element musthave its spelling and grammarchecked
true | false
styleSpecies an inline style for anelement
style_denition
tabindexSpecies the tab order of anelement
number
titleSpecies extra informationabout an element
text
Back to categories
NEW TAGS IN HTML5Here below is a list of the new elements introduced in HTML5.
Tag Description
-
Species an article
Species content aside from the page content
For bi-directional text formatting
Species details of an element
Species that part of an application is interactive.
Species caption for the gure element.
Species a group of media content, and theircaption
Species a footer for a section or page
Species a group of introductory or navigationalaids, including hgroup elements
Species the main content area of an HTMLdocument.
Species marked text
Species a command that a user can invoke from apopup menu.
Species measurement within a predened range
Species navigation links
Species progress of a task of any kind
Used for the benet of browsers that don't supportruby annotations
Species the ruby text component of a rubyannotation.
Species a ruby annotation (used in East Asiantypography)
Species a section
Species a summary / caption for the element
Species a date/time
-
Species a line break opportunity for very longwords and strings of text with no spaces.
Back to categories
Thanks to https://developer.mozilla.org/en-US/docs/Web/HTML forproviding us with some of the denitions and code examples.
https://developer.mozilla.org/en-US/docs/Web/HTMLhttps://reviewsquirrel.com/https://developer.mozilla.org/en-US/docs/Web/HTML
Page 53