Content deleted Content added
No edit summary Tags: Reverted Mobile edit Mobile web edit |
Reverted 1 edit by Sapphaline (talk): <p> does need an end tag |
||
(32 intermediate revisions by 18 users not shown) | |||
Line 1:
{{Short description|
{{for|the usage of HTML on Wikipedia|H:HTML|selfref=y}}
{{Redirect2|nobr|Font color||NOBr|and|Font color (disambiguation)}}
{{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.
An HTML document is composed of a [[tree structure|tree]] of simple HTML [[Node (computer science)|nodes]], such as text nodes, and HTML elements, which add [[semantics]] and formatting to parts of a document (e.g., make text bold, organize it into paragraphs, lists and tables, or embed [[hyperlink]]s and images). Each element can have [[HTML attribute]]s specified. Elements can also have content, including other elements and text.
==Concepts==
Line 458 ⟶ 464:
====Anchor====
{{for|anchors on Wikipedia|WP:ANCHOR|WP:ANCHOR DEF|selfref=true}}
{{glossary}}
{{term|term=a |content= {{XMLElement|a|Anchor}} }}
Line 481 ⟶ 487:
====Phrase elements====
Phrase elements are used for marking up phrases and adding structure or semantic meaning to text fragments. For example, the
=====General=====
Line 494 ⟶ 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=
{{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 571 ⟶ 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 583 ⟶ 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|
{{defn|1= {{code|lang=html|code=<font [color=<var>color</var>] [size=<var>size</var>] [face=<var>face</var>]>...</font>}}
Line 712 ⟶ 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]]
{{term|term=area |content= {{XMLElement|area|Area|end=no}} }}
|