Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
HTML element
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
===Inline elements=== Inline elements cannot be placed directly inside the {{code|lang=html|code=<body>}} element; they must be wholly nested within block-level elements.<ref>{{citation|url=http://www.w3.org/TR/html401/struct/global.html#h-7.5.1 |title=HTML 4.01 |publisher=W3C |access-date=2012-03-26}}</ref> ====Anchor==== {{for|anchors on Wikipedia|WP:ANCHOR DEF|selfref=true}} {{glossary}} {{term|term=a |content= {{XMLElement|a|Anchor}} }} {{defn|1= <p>An anchor element is called an anchor because web designers can use it to "anchor" a URL to some text on a web page. When users view the web page in a browser, they can click the text to activate the link and visit the page whose URL is in the link.<ref>{{cite book |last1= Tittel |first1= Ed |last2= Burmeister |first2= Mary C. |date= 2005 |title= HTML 4 for dummies |edition= 5th |publisher= Wiley |location= Hoboken, New Jersey |isbn= 978-0-7645-8917-1 |page= 96 |url= https://archive.org/details/html4fordummies00titt_2/page/96/ |url-access= registration |access-date= 7 August 2022}}</ref></p> <p>In HTML, an "anchor" can be either the {{em|origin}} (the [[anchor text]]) or the {{em|target}} (destination) end of a [[hyperlink]]. As an origin, setting the attribute <code>href</code>,<ref>{{cite web|url=http://www.w3.org/Provider/ServerWriter.html|title=ServerWriter -- /Provider|website=W3C}}</ref> creates a hyperlink; it can point to either another part of the document or another resource (e.g. a webpage) using an external [[Uniform Resource Locator|URL]]. As a target, setting the <code>name</code> or <code>id</code> [[HTML attributes]], allows the element to be linked from a [[Uniform Resource Locator]] (URL) via a [[fragment identifier]]. The two forms, origin and anchor, can be used concurrently.</p> In HTML5, any element can now be made into a target by using the <code>id</code> attribute,<ref>{{cite web|url=http://www.w3.org/tr/html5/index.html#attributes-1|title=HTML 5.2|website=W3C}}</ref> so using {{code|lang=html|code=<a name="foo">...</a>}} is not necessary, although this way of adding anchors continues to work.</p> <p>To illustrate: the header of a table of contents section on <samp>example.com</samp>'s homepage could be turned into a target by writing: {{code|lang=html|code=<h2><a name="contents">Table of contents</a></h2>}}.</p> <p>Continuing with this example, now that the section has been marked up as a target, it can be referred to from external sites with a link like: {{code|lang=html|code=<a href="http://example.com#contents">see contents</a>}};</p> <p>or with a link on the same page like: {{code|lang=html|code=<a href="#contents">contents, above</a>}}.</p> <p>The attribute <code>title</code> may be set to give brief information about the link: {{code|lang=html|code=<a href="URL" title="additional information">link text</a>}}.</p> <p>In most graphical browsers, when the cursor hovers over a link, the cursor changes into a hand with an extended index finger and the <code>title</code> value is displayed in a [[tooltip]] or in some other manner. Some browsers render [[Alt attribute|alt text]] the same way, although this is not what the specification calls for.</p> }} {{defn|<code>A</code> existed in ''[[#HTMLTAGS|HTML Tags]]'', and was '''standardized''' in [[#HTML20|HTML 2.0]];}} {{glossary end}} ====Phrase elements==== Phrase elements are used for marking up phrases and adding structure or semantic meaning to text fragments. For example, the {{tag|em|o}} and {{tag|strong|o}} tags can be used for adding emphasis to text. =====General===== {{glossary}} {{term|term=abbr |content= {{XMLElement|abbr|Abbreviation}} }} {{defn|1= Marks an [[abbreviation]], and can make the full form available: {{code|lang=html|code=<abbr title="abbreviation">abbr.</abbr>}}}} {{defn|'''Standardized''' in [[#HTML401|HTML 4.0]]; still current.}} {{term|term=acronym |content= {{XMLElement|acronym|Acronym|deprecated=1}} }} {{defn|1= Similar to the {{code|lang=html|code=<abbr>}} element, but marks an [[acronym]]: {{code|lang=html|code=<acronym title="Hyper-Text Mark-up Language">HTML</acronym>}}}} {{defn|'''Standardized''' in [[#HTML401|HTML 4.0]]; still current, '''not supported''' in [[#HTML5|HTML5]]. Recommended replacement is the <code>abbr</code> tag.<ref>[https://www.w3schools.com/tags/tag_acronym.asp Acronym tag], acronym.</ref>}} {{term|term=dfn |content= {{XMLElement|dfn|Definition}} }} {{defn|1= Inline definition of a single term.}} {{defn|<code>DFN</code> existed in ''[[#HTMLDRAFT12|HTML Internet Draft 1.2]]'', and was fully '''standardized''' in [[#HTML32|HTML 3.2]]; still current.}} {{term|term=em |content= {{XMLElement|em|Emphasis}} }} {{defn|1= <em>Emphasis</em> (conventionally displayed in italics)}} {{defn|<code>EM</code> existed in ''[[#HTMLDRAFT12|HTML Internet Draft 1.2]]'', and was '''standardized''' in [[#HTML20|HTML 2.0]]; still current.}} {{term|term=strong |content= {{XMLElement|strong|Importance}} }} {{defn|1= <strong>importance</strong>; originally strong emphasis (conventionally displayed bold). An [[voice browser|aural user agent]] may use different voices for emphasis. }} {{defn|<code>STRONG</code> existed in ''[[#HTMLDRAFT12|HTML Internet Draft 1.2]]'', and was '''standardized''' in [[#HTML20|HTML 2.0]]; still current, redefined in HTML5.}} {{glossary end}} =====Computer phrase elements===== These elements are useful primarily for documenting computer code development and user interaction through differentiation of source code ({{code|lang=html|code=<code>}}), variables ({{code|lang=html|code=<var>}}), user input ({{code|lang=html|code=<kbd>}}), and terminal or other output ({{code|lang=html|code=<samp>}}). {{glossary}} {{term|term=code |content= {{XMLElement|code|Sourcecode}} }} {{defn|1= A code snippet (<code>code example</code>). Conventionally rendered in a mono-space font.}} {{defn|<code>CODE</code> existed in ''[[#HTMLDRAFT12|HTML Internet Draft 1.2]]'', and was '''standardized''' in [[#HTML20|HTML 2.0]]; still current.}} {{term|term=kbd |content= {{XMLElement|kbd|Keyboard}} }} {{defn|1= Keyboard β text to be entered by the user (<kbd>kbd example</kbd>).}} {{defn|<code>KBD</code> existed in ''[[#HTMLDRAFT12|HTML Internet Draft 1.2]]'', and was '''standardized''' in [[#HTML20|HTML 2.0]]; still current.}} {{term|term=samp |content= {{XMLElement|samp|Sample}} }} {{defn|1= Sample output β from a program or script: (<samp>samp example</samp>).}} {{defn|<code>SAMP</code> existed in ''[[#HTMLDRAFT12|HTML Internet Draft 1.2]]'', and was '''standardized''' in [[#HTML20|HTML 2.0]]; still current.}} {{term|term=var |content= {{XMLElement|var|Variable}} }} {{defn|1= Variable (<var>var example</var>).}} {{defn|<code>VAR</code> existed in ''[[#HTMLDRAFT12|HTML Internet Draft 1.2]]'', and was '''standardized''' in [[#HTML20|HTML 2.0]]; still current.}} {{glossary end}} ====Presentation==== As visual presentational markup only applies directly to visual browsers, its use is discouraged. Style sheets should be used instead. Several of these elements are deprecated or invalid in HTML 4 / XHTML 1.0, and the remainder are invalid in the current draft of [http://www.w3.org/TR/2005/WD-xhtml2-20050527/ XHTML 2.0]. The current draft of [https://web.archive.org/web/20150801133040/http://www.w3.org/TR/html5/text-level-semantics.html HTML5], however, re-includes {{tag|s|o}}, {{tag|u|o}}, and {{tag|small|o}}, assigning new semantic meaning to each. In an [[HTML5]] document, the use of these elements is no longer discouraged, provided that it is semantically correct. {{term|term=b |content= {{XMLElement|b|Keyword}} }} {{defn|1= <!-- not deprecated in [[HTML 4.01]]; not included in [[XHTML 2.0]] which is in draft stage; now a semantic element in [[HTML5]] --> In [[HTML 4]], set font to '''boldface''' where possible. Equivalent CSS: {{code|lang=css|code={ font-weight: bold; } }}. The {{tag|strong|o}} element usually has the same effect in visual browsers, as well as having more semantic meaning, under [[HTML 4.01]]. In [[HTML5]], however, {{tag|b|o}} has its own meaning, distinct from that of {{tag|strong|o}}. It denotes "text to which attention is being drawn for utilitarian purposes without conveying any extra importance and with no implication of an alternate voice or mood."<ref name="html5-b-element">{{citation|url=http://developers.whatwg.org/text-level-semantics.html#the-b-element |title=4.6 Text-level semantics β The b element |publisher=Developers.whatwg.org |access-date=2012-03-26}}</ref> }} {{defn|<code>B</code> existed in ''[[#HTMLDRAFT12|HTML Internet Draft 1.2]]'', and was '''standardized''' in [[#HTML20|HTML 2.0]]; still current, redefined in HTML5.}} {{term|term=i |content= {{XMLElement|i|Alternate voice}} }} {{defn|1= <!-- not deprecated in HTML 4.01; not included in XHTML 2.0 which is in draft stage; now a semantic element in HTML5 --> In [[HTML 4]], set font to ''italic'' where possible. Equivalent [[CSS]]: {{code|lang=css|code={ font-style: italic; } }}. Using {{tag|em}} has the same visual effect in most browsers, as well as having a semantic meaning as ''emphasis'', under [[HTML 4.01]]. (Purely typographic italics have many non-emphasis purposes, as HTML 5 more explicitly recognized.) In [[HTML5]], however, {{tag|i|o}} has its own semantic meaning, distinct from that of {{tag|em|o}}. It denotes "a different quality of text" or "an alternate<!--sic--> voice or mood" e.g., a thought, a ship name, a [[Binomial nomenclature|binary species name]], a foreign-language phrase, etc.<!-- Not (or no longer) a precise quote, so don't put this in quotation marks --><ref name="html5-i-element">{{citation|url=http://developers.whatwg.org/text-level-semantics.html#the-i-element |title=4.6 Text-level semantics β The i element |publisher=Developers.whatwg.org |access-date=2012-03-26}}</ref> }} {{defn|<code>I</code> existed in ''[[#HTMLDRAFT12|HTML Internet Draft 1.2]]'', and was '''standardized''' in [[#HTML20|HTML 2.0]]; still current, redefined in HTML5.}} {{term|term=u |content= {{XMLElement|u|Unarticulated annotation}} }} {{defn|1= In [[HTML 4]], <u>underlined</u> text. Equivalent CSS: {{code|lang=css|code={ text-decoration: underline; } }}. Deprecated in [[HTML 4.01]]. Restored in [[#HTML5|HTML5]]. In [[HTML5]], the {{tag|u|o}} element denotes "a span of text with an unarticulated, though explicitly rendered, non-textual annotation, such as labelling the text as being a proper name in Chinese text (a Chinese proper name mark), or labelling the text as being misspelt." The [[HTML5]] specification reminds developers that other elements are almost always more appropriate than {{tag|u|o}} and admonishes designers not to use underlined text where it could be confused for a hyper-link.<ref name="html5-u-element">{{citation|url=http://developers.whatwg.org/text-level-semantics.html#the-u-element |title=4.6 Text-level semantics β The u element |publisher=Developers.whatwg.org |access-date=2012-03-26}}</ref> }} {{defn|<code>U</code> existed in ''[[#HTMLDRAFT12|HTML Internet Draft 1.2]]'', was '''standardized''' in [[#HTML32|HTML 3.2]] but was '''deprecated''' in [[#HTML401|HTML 4.0 Transitional]] and was '''invalid''' in [[#HTML401|HTML 4.0 Strict]]. '''Reintroduced''' in [[#HTML5|HTML5]].}} {{term|term=small |content= {{XMLElement|small|Side comment}} }} {{defn|1= In [[HTML 4]], decreased font size (<small>smaller</small> text). Equivalent CSS: {{code|lang=css|code={ font-size: smaller; } }} In [[HTML5]], the {{tag|small|o}} element denotes "side comments such as small print."<ref name="html5-small-element">{{citation|url=http://developers.whatwg.org/text-level-semantics.html#the-small-element |title=4.6 Text-level semantics β The small element |publisher=Developers.whatwg.org |access-date=2012-03-26}}</ref> This has caused some confusion with the {{tag|[[#aside|aside]]}} element. }} {{defn|'''Standardized''' in [[#HTML32|HTML 3.2]]; still current.}} {{term|term=s |content= {{XMLElement|s|Inacurrate text}} }} {{defn|1= In [[HTML 4]], indicated strike-through text (<s>Strikethrough</s>) and was equivalent to {{tag|strike|o}}. In [[HTML5]], the {{tag|s|o}} element denotes information that is "no longer accurate or no longer relevant", and is not to be confused with {{tag|del|o}}, which indicates removal/deletion.<ref name="html5-s-element">{{citation|url=http://developers.whatwg.org/text-level-semantics.html#the-s-element |title=4.6 Text-level semantics β The s element |publisher=Developers.whatwg.org |access-date=2012-03-26}}</ref> }} {{defn|<code>S</code> was '''deprecated''' in [[#HTML401|HTML 4.0 Transitional]] (having not appeared in any previous standard), and was '''invalid''' in [[#HTML401|HTML 4.0 Strict]]. '''Reintroduced''' in [[#HTML5|HTML5]], which instead deprecated {{tag|strike|o}}.}} {{term|term=big |content= {{XMLElement|big|Big|deprecated=1}} }} {{defn|1= Increased font size (<big>bigger</big> text). Equivalent CSS: {{code|lang=css|code={ font-size: larger; } }}}} {{defn|'''Standardized''' in [[#HTML32|HTML 3.2]]; '''not supported''' in [[#HTML5|HTML5]].}} {{term|term=strike |content= {{XMLElement|strike|Strikethrough|deprecated=1}} }} {{defn|1= Strike-through text (<s>Strikethrough</s>), (Equivalent CSS: {{code|lang=css|code={ text-decoration: line-through; } }})}} {{defn|<code>STRIKE</code> was standardized in [[#HTML32|HTML 3.2]]; '''deprecated''' in [[#HTML401|HTML 4.0 Transitional]]; '''invalid''' in [[#HTML401|HTML 4.0 Strict]].}} {{term|term=tt |content= {{XMLElement|tt|Teletype|deprecated=1}} }} {{defn|1= [[non-proportional font|Fixed-width]] font ({{mono|typewriter-like}}<!-- DO NOT use actual deprecated markup in this page; use CSS to simulate its output.-->), also known as [[Teleprinter|teletype]], thus "tt". (Equivalent CSS: {{code|lang=css|code={ font-family: monospace; } }})}} {{defn|<code>TT</code> existed in ''[[#HTMLDRAFT12|HTML Internet Draft 1.2]]'', and was '''Standardized''' in [[#HTML20|HTML 2.0]]; not supported<ref name="html5-tt-not-supported">{{citation|url=http://www.w3.org/TR/html5/obsolete.html#non-conforming-features |title=11 Obsolete features β HTML5 |publisher=W3C |access-date=2012-03-26}}</ref> in HTML5. Possible replacements: [[#kbd|{{tag|kbd|o}}]] for marking user input, [[#var|{{tag|var|o}}]] for variables (usually rendered italic, and not with a change to monospace), [[#code|{{tag|code|o}}]] for source code, [[#samp|{{tag|samp|o}}]] for output.<ref name="html5-tt-not-supported" />}} {{term|term=font |content= {{XMLElement|font|Font|deprecated=1}} }} {{defn|1= {{code|lang=html|code=<font [color=<var>color</var>] [size=<var>size</var>] [face=<var>face</var>]>...</font>}} Can specify the font color with the <code>color</code> attribute (note the American spelling), typeface with the <code>face</code> attribute, and absolute or relative size with the <code>size</code> attribute. Examples (all uses are deprecated, use CSS equivalents if possible): * {{code|lang=html|code=<font color="green">text</font>}} creates {{green|green text}}. * {{code|lang=html|code=<font color="#114499">text</font>}} creates <span style="color:#149;">text with [[Hex triplet|hexadecimal color]] #114499</span>. * {{code|lang=html|code=<font size="4">text</font>}} creates <span style="font-size:140%;">text</span> with size 4. Sizes are from 1 to 7. The standard size is 3, unless otherwise specified in the <body> or other tags. * {{code|lang=html|code=<font size="+1">text</font>}} creates <span style="font-size:125%;">text with size 1 bigger than the standard.</span> {{code|lang=html|code=<font size="-1">text</font>}} is opposite. * {{code|lang=html|code=<font face="Courier">text</font>}} makes <span style="font-family:Courier;">text</span> with Courier font. Equivalent CSS for font attributes: *<code class="mw-highlight"><span class="p"><</span><span class="nt">font</span> <span class="na">size</span><span class="o">=</span><span class="s">"<var>N</var>"</span><span class="p">></span></code> corresponds to <code class="mw-highlight"><span class="p">{</span><span class="nb">font-size</span><span class="o" style="color: #666;">:</span> <span class="nb"><var>Y</var><var>units</var></span><span class="p">}</span></code> (the HTML specification does not define the relationship between size <var>N</var> and unit-size <var>Y</var>, nor does it define a unit). *{{code|lang=html|code=<font color="red">}} corresponds to {{code|lang=css|code={ color: red; } }} *{{code|lang=html|code=<font face="Times New Roman">}} corresponds to {{code|lang=css|code={ font-family: 'Times New Roman', Times, serif; } }} β CSS supports a [[font stack]], of two or more alternative fonts. }} {{defn|'''Standardized''' in [[#HTML32|HTML 3.2]]; '''deprecated''' in [[#HTML401|HTML 4.0 Transitional]]; '''invalid''' in [[#HTML401|HTML 4.0 Strict]]. Not part of HTML5.}} ====Span==== {{glossary}} {{term|term=span |content= {{XMLElement|span|Span}} }} {{defn|1= {{Main|Span and div}} An inline logical division. A generic element with no semantic meaning used to distinguish a document section, usually for purposes such as presentation or behavior controlled by [[Cascading Style Sheets|style sheets]] or [[Document Object Model|DOM]] calls. }} {{defn|'''Standardized''' in [[#HTML401|HTML 4.0]]; still current.}} {{glossary end}} ====Other inline elements==== {{glossary}} {{term|term=br |content= {{XMLElement|br|Line Break|end=no}} }} {{defn|1= A forced line break.}} {{defn|'''Standardized''' in [[#HTML20|HTML 2.0]]; still current.}} {{term|term=bdi |content= {{XMLElement|bdi|Bidirectional Isolation}} }} {{defn|1= Isolates an inline section of text that may be formatted in a different direction from other text outside of it, such as user-generated content with unknown directionality.}} {{defn|'''Standardized''' in [[#HTML5|HTML5]].}} {{term|term=bdo |content= {{XMLElement|bdo|Bidirectional Override}} }} {{defn|1= Marks an inline section of text in which the reading direction is the opposite from that of the parent element.}} {{defn|'''Standardized''' in [[#HTML401|HTML 4.0]]; still current.}} {{term|term=cite |content= {{XMLElement|cite|Citation}} }} {{defn|1= A citation or a reference for a quote or statement in the document.}} {{defn|CITE existed in ''[[#HTMLDRAFT12|HTML Internet Draft 1.2]]'', and was '''standardized''' in [[#HTML20|HTML 2.0]]; still current.}} {{defn|''Note:'' The HTML 5 specifications have been confusingly [[Fork (software development)|forked]],<ref name=finalars>{{cite web |url= https://arstechnica.com/information-technology/2014/10/html5-specification-finalized-squabbling-over-who-writes-the-specs-continues/ |title=HTML5 specification finalized, squabbling over specs continues |publisher=Ars Technica |date=29 October 2014 |access-date=29 October 2014}}</ref> including with regard to this element. In HTML 4 and earlier, {{tag|cite|o}} was for "a citation or a reference to other sources" without any particular limitations or requirements.<ref>{{cite web |title=9.2.1 Phrase elements: EM, STRONG, DFN, CODE, SAMP, KBD, VAR, CITE, ABBR, and ACRONYM |work=HTML 4.01 Specification |date=24 December 1999 |publisher=[[W3C]] |url= https://www.w3.org/TR/html401/struct/text.html#h-9.2.1 |access-date=26 July 2018}}</ref> The [[W3C]] HTML 5 spec uses a refinement of this idea, reflecting how the element has historically been used, but now requiring that it contain (but not be limited to) at least one of "the title of the work or the name of the author (person, people or organization) or an URL reference, or a reference in abbreviated form as per the conventions used for the addition of citation metadata."<ref>[[#HTML52|''HTML 5.2 W3C Recommendation'']], at [https://www.w3.org/TR/html52/textlevel-semantics.html#the-cite-element "Β§4.5.6. The cite element"].</ref> But the WHATWG spec only permits the element to be used around the title of a work.<ref>[[#WHATWGLS|''HTML Living Standard'']], at [https://html.spec.whatwg.org/multipage/text-level-semantics.html#the-cite-element "Β§4.5.6 The cite element"].</ref> The W3C specs began with the broader definition, then switched to the very narrow one after WHATWG made this change. However, W3C reverted their own change in 2012, in response to negative developer-community feedback; the element was in broadly-deployed use with the broader scope, e.g., various blog and forum platforms wrap commenters' IDs and e-mail addresses in {{tag|cite}}, and people using the element for bibliographic citations were (and still are) routinely wrapping each entire citation in this element. Another problem with the element is that WHATWG recommends that it be italicized by default (thus almost all browsers do so), because it (in their view) is only for publication titles. By convention, however, only certain kinds of titles actually take italics, while others are expected to be put in quotation marks, and standards may actually vary by publishing context and language. Consequently, many website authors and admins use a site-wide stylesheet to undo this element's auto-italics. }} {{term|term=data |content= {{XMLElement|data|Data}} }} {{defn|1= Links inline content with a machine-readable translation.}} {{defn|'''Standardized''' in [[#HTML5|HTML5]].<ref>{{cite web|url=https://developer.mozilla.org/en-US/docs/Web/HTML/Element/data|title=<data>|website=MDN Web Docs}}</ref>}} {{term|term=del |content= {{XMLElement|del|Deleted}} }} {{defn|1= Deleted text. Typically rendered as a [[strikethrough]]: <del>Deleted text.</del>}} {{defn|'''Standardized''' in [[#HTML401|HTML 4.0]]; still current.}} {{term|term=ins |content= {{XMLElement|ins|Inserted}} }} {{defn|1= Inserted text. Often used to mark up replacement text for material struck with {{tag|del|o}} or {{tag|s|o}}. Typically rendered [[underline]]d: <ins>Inserted text.</ins>}} {{defn|'''Standardized''' in [[#HTML401|HTML 4.0]]; still current.}} {{defn|Both {{tag|ins|o}} and {{tag|del|o}} elements may also be used as block elements: containing other block and inline elements. However, these elements must still remain wholly within their parent element to maintain a well-formed HTML document. For example, deleting text from the middle of one paragraph across several other paragraphs and ending in a final paragraph would need to use three separate {{tag|del|o}} elements. Two {{tag|del|o}} elements would be required as inline elements to indicate the deletion of text in the first and last paragraphs, and a third, used as a block element, to indicate the deletion in the intervening paragraphs.}} {{term|term=mark |content= {{XMLElement|mark|Mark}} }} {{defn|1= Produces text that looks <mark>like this</mark>. Intended for highlighting relevant text in a quotation.}} {{defn|'''Standardized''' in [[#HTML5|HTML5]].}} {{term|term=q |content= {{XMLElement|q|Quote}} }} {{defn|1= An inline quotation (for block level quotation see {{tag|[[#blockquote|blockquote]]|o}}). Quote elements may be nested. {{tag|q|o}} {{em|should}} automatically generate quotation marks in conjunction with style sheets. Practical concerns due to browser non-compliance may force authors to find workarounds. The <code>cite</code> attribute gives the source, and must be a fully qualified [[Uniform Resource Identifier|URI]]. }} {{defn|'''Standardized''' in [[#HTML401|HTML 4.0]]; still current.}} {{defn|{{strong|Note:}} Lengthy inline quotations may be displayed as indented blocks (as <code>block-quote</code>) using style sheets. For example, with a suitable CSS rule associated with <code>q.lengthy</code>: {{tag|q|attribs=class="lengthy" |content=Lengthy quote here.}}}} {{term|term=rb |content= {{XMLElement|rb|Ruby Annotation Base}} }} {{defn|1= Represents the base component of a [[Ruby character|ruby annotation]].}} {{defn|'''Standardized''' in [[#HTML5|HTML5]].<ref>{{cite web|url=http://www.quackit.com/html/tags/html_rb_tag.cfm|title=HTML <rb> Tag|website=www.quackit.com}}</ref>}} {{term|term=rp |content= {{XMLElement|rp|Ruby Fallback Parenthesis}} }} {{defn|1= Provides fallback parenthesis for browsers lacking [[Ruby character|ruby annotation]] support.}} {{defn|'''Standardized''' in [[#HTML5|HTML5]].<ref>{{cite web|url=https://developer.mozilla.org/en-US/docs/Web/HTML/Element/rp|title=<rp>: The Ruby Fallback Parenthesis element|website=MDN Web Docs}}</ref>}} {{term|term=rt |content= {{XMLElement|rt|Ruby Annotation Pronunciation}} }} {{defn|1= Indicates pronunciation for a character in a [[Ruby character|ruby annotation]].}} {{defn|'''Standardized''' in [[#HTML5|HTML5]].<ref>{{cite web|url=https://developer.mozilla.org/en-US/docs/Web/HTML/Element/rt|title=<rt>: The Ruby Text element|website=MDN Web Docs}}</ref>}} {{term|term=rtc |content= {{XMLElement|rtc|Ruby Semantic Annotation}} }} {{defn|1= Semantic annotations for a [[Ruby character|ruby annotation]].}} {{defn|'''Standardized''' in [[#HTML5|HTML5]].<ref>{{cite web|url=https://developer.mozilla.org/en-US/docs/Web/HTML/Element/rtc|title=<rtc>: The Ruby Text Container element|website=MDN Web Docs}}</ref>}} {{term|term=ruby |content= {{XMLElement|ruby|Ruby Annotation}} }} {{defn|1= Represents a [[Ruby character|ruby annotation]] for showing the pronunciation of East Asian characters.}} {{defn|'''Standardized''' in [[#HTML5|HTML5]].<ref>{{cite web|url=https://developer.mozilla.org/en-US/docs/Web/HTML/Element/ruby|title=<ruby>|website=MDN Web Docs}}</ref>}} {{term|term=script |content= {{XMLElement|script|Script}} }} {{defn|1= Places a [[scripting language|script]] in the document. Also usable in the head and in block contexts. {{em|Note:}} {{tag|script|o}} is not itself either a block or inline element; by itself it should not display at all, but it can contain instructions to dynamically generate either both block or inline content. }} {{defn|'''Standardized''' in [[#HTML32|HTML 3.2]]; still current.}} {{term|term=sub |content= {{XMLElement|sub|Subscript}} }} {{term|term=sup |content= {{XMLElement|sup|Superscript}} |multi=y}} {{defn|1= Mark <sub>[[subscript]]ed</sub> or <sup>[[superscript]]ed</sup> text. (Equivalent CSS: {{code|lang=css|code={ vertical-align: sub; } }} and {{code|lang=css|code={ vertical-align: super; } }}, respectively.)}} {{defn|Both were proposed in the [[#HTML30|HTML 3.0 Drafts]]; '''Standardized''' in [[#HTML32|HTML 3.2]]; still current.}} {{term|term=template |content= {{XMLElement|template|Template}} }} {{defn|1= Code fragments to be copied by scripts.}} {{defn|'''Standardized''' in [[#HTML5|HTML5]].<ref>{{cite web|url=https://developer.mozilla.org/en-US/docs/Web/HTML/Element/template|title=<template>|website=MDN Web Docs}}</ref>}} {{term|term=time |content= {{XMLElement|time|Time}} }} {{defn|1= Represents a time on the 24-hour clock or a date on the [[Gregorian calendar]], optionally with time and time zone information. Also allows times and dates to be represented in a machine-readable format.}} {{defn|'''Standardized''' in [[#HTML5|HTML5]].<ref>{{cite web|url=https://developer.mozilla.org/en-US/docs/Web/HTML/Element/time|title=<time>|website=MDN Web Docs}}</ref>}} {{term|term=wbr |content= {{XMLElement|wbr|Word Break Opportunity|end=no}} }} {{defn|1= An optional word break.}} {{defn|Was widely used (and supported by all major browsers){{Citation needed|date=September 2023}} for years{{Clarify timeframe|date=September 2023}} despite being non-standard until finally being '''standardized''' in [[#HTML5|HTML5]].<ref>{{cite web|url=https://developer.mozilla.org/en-US/docs/Web/HTML/Element/wbr|title=<wbr>|website=MDN Web Docs}}</ref>}} {{glossary end}}
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)