HTML element: Difference between revisions

Content deleted Content added
Tags: Reverted Mobile edit Mobile web edit
Reverted 1 edit by Sapphaline (talk): <p> does need an end tag
 
(39 intermediate revisions by 24 users not shown)
Line 1:
{{Short description|Individual component of an HTML document}}
{{for|the usage of HTML on Wikipedia|HelpH:HTML in wikitext|selfref=y}}
{{RedirectRedirect2|nobr|theFont chemical compoundcolor||NOBr|and|Font color (disambiguation)}}
{{Redirect|Font color}}
{{Use American English|date=March 2018}}
 
{{Html series}}
 
An '''HTML element''' is a type of [[HTML]] (HyperText Markup Language) document component, one of several types of HTML nodes (there are also text nodes, comment nodes and others).{{Vague|date=February 2019}} The first used version of HTML was written by [[Tim Berners-Lee]] in 1993 and there have since been many versions of HTML. The current de facto standard is governed by the industry group [[WHATWG]] and is known as the HTML Living Standard.
 
Line 80 ⟶ 78:
==Overview==
 
===Syntax===
===Syntax=== colocar os Estudos Unidos na atribuição de configuração, certificações e monitoramento de atividades exteriores.
 
{{Image frame|caption=Parts of an HTML container element
Line 329 ⟶ 327:
==== Lists ====
{{glossary}}
{{anchor|dl}}{{term|term=dl |content= {{XMLElement|dl|Definition List}} }}
{{defn|1= {{redirect|Definition list|Wikipedia's article on lists of definitions|Glossary}}
A description list (a.k.a. [[association list]] or definition list) consists of name–value groups,<ref name="W3C-5-DL">{{cite web |url=http://www.w3.org/TR/html5/grouping-content.html#the-dl-element |title=4.4 Grouping content – HTML5 |work=HTML5: A vocabulary and associated APIs for HTML and XHTML – W3C Recommendation |publisher=[[World Wide Web Consortium]] |at=§4.4.8 The dl element |date=28 October 2014 |access-date=16 August 2015}}</ref> and was known as a definition list prior to HTML5.<ref>{{cite web |url=http://www.w3.org/TR/html4/struct/lists.html#edef-DL |title=Lists in HTML documents |at=§10.3 Definition lists: the DL, DT, and DD elements |work=HTML 4.01 Specification – W3C Recommendation |date=24 December 1999 |publisher=World Wide Web Consortium |access-date=2 May 2015 }}</ref> Description lists are intended for groups of "terms and definitions, metadata topics and values, questions and answers, or any other groups of name–value data".<ref>{{cite web |website=[[W3C]]|title=HTML5: A Vocabulary and Associated APIs for HTML and XHTML, W3C Working Draft|date=5 April 2011|url=http://www.w3.org/TR/2011/WD-html5-20110405/grouping-content.html#the-dl-element}}.</ref>
Line 466 ⟶ 464:
 
====Anchor====
{{for|anchors on Wikipedia|WP:ANCHOR|WP:ANCHOR DEF|selfref=true}}
{{glossary}}
{{term|term=a |content= {{XMLElement|a|Anchor}} }}
Line 489 ⟶ 487:
 
====Phrase elements====
Phrase elements are used for marking up phrases and adding structure or semantic meaning to text fragments. For example, the <code><nowiki><{{tag|em></nowiki></code>|o}} and <code><nowiki><{{tag|strong></nowiki></code>|o}} tags can be used for adding emphasis to text.
 
=====General=====
Line 502 ⟶ 500:
{{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=defndfn |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.}}
Line 579 ⟶ 577:
{{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]].}}
Line 591 ⟶ 589:
{{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|TeletypeFont|deprecated=1}} }}
{{defn|1= {{code|lang=html|code=<font [color=<var>color</var>] [size=<var>size</var>] [face=<var>face</var>]>...</font>}}
 
Line 720 ⟶ 718:
{{term|term=applet |content= {{XMLElement|applet|Java Applet|deprecated=xhtml}} }}
{{defn|1= Embeds a [[Java applet]] in the page. Deprecated in favor of {{tag|object|o}}, as it could only be used with Java applets, and had accessibility limitations.}}
{{defn|'''Standardized''' in [[#HTML32|HTML 3.2]]; '''deprecated''' in [[#HTML401|HTML 4.0 Transitional]]; '''invalid''' in [[#HTML401|HTML 4.0 Strict]].; As'''obsolete''' ofin 2011, still widely used as the implementations of the replacing {{tag[[#HTML5|object|o}} are not consistent between different browsersHTML5]].}}
 
{{term|term=area |content= {{XMLElement|area|Area|end=no}} }}