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!
===Images and objects=== {{Update section|reason=How do current browsers handle <applet>? What does HTML 5 say about it?|date=July 2023}} {{glossary}} {{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 of 2011, still widely used as the implementations of the replacing {{tag|object|o}} are not consistent between different browsers.}} {{term|term=area |content= {{XMLElement|area|Area|end=no}} }} {{defn|1= Specifies a [[Focus (computing)|focusable]] area in a {{tag|map|o}}.}} {{defn|'''Standardized''' in [[#HTML32|HTML 3.2]]; still current.}} {{term|term=audio |content= {{XMLElement|audio|Audio}} }} {{defn|1= Adds playable [[HTML audio]] to the page. The audio URL is determined using the <code>src</code> attribute. Supported audio formats vary from browser to browser.}} {{defn|'''Standardized''' in [[#HTML5|HTML5]].}} {{term|term=canvas |content= {{XMLElement|canvas|Canvas}} }} {{defn|1= {{Main|Canvas element}} Adds a canvas whose contents can be edited with [[JavaScript]]. Frequently used for online games.}} {{defn|'''Standardized''' in [[#HTML5|HTML5]].}} {{term|term=embed |content= {{XMLElement|embed|Embed}} }} {{defn|1= Inserts a non-standard object (like applet) or external content (typically non-HTML) into the document.}} {{defn|Deprecated in HTML 4 in favor of {{tag|object|o}}, but then was added back into the HTML5 specification<ref>[http://webdesign.about.com/od/htmltags/p/bltags_embed.htm Jennifer Kyrnin ] {{Webarchive|url=https://web.archive.org/web/20121102014318/http://webdesign.about.com/od/htmltags/p/bltags_embed.htm |date=2012-11-02 }} {{tag|embed|o}}</ref><ref>[https://www.w3schools.com/tags/tag_embed.asp W3Schools] about {{tag|embed|o}}</ref>}} {{term|term=img |content= {{XMLElement|img|Image|end=no}} }} {{defn|1= Used by visual user agents to insert an [[image]] in the document. The <code>src</code> attribute specifies the image URL. The required [[Alt attribute|<code>alt</code> attribute]] provides alternative text in case the image cannot be displayed.<ref>The alt attribute's text cannot be styled with markup; as a result, other methods of alternative text presentation, such as [[Fahrner Image Replacement]], have been devised to accommodate situations in which the coder wishes styled text to be displayed if images are disabled in a user's browser.</ref> (Though <code>alt</code> is intended as alternative text, Microsoft [[Internet Explorer]] 7 and below render it as a [[tooltip]] if no <code>title</code> attribute is given.<ref>{{cite web | url=http://msdn.microsoft.com/en-us/library/cc288472.aspx#access | title=What's New in Internet Explorer 8 β Accessibility and ARIA | publisher=Microsoft | website=[[Microsoft Developer Network|MSDN]] | access-date=2009-07-22}}</ref> [[Safari (web browser)|Safari]] and [[Google Chrome]], on the other hand, do not display the alt attribute at all.)<ref>{{citation|url=https://bugs.webkit.org/show_bug.cgi?id=5566 |title=Bug 5566 β ALT attribute value sometimes not displayed when image is missing |publisher=Bugs.webkit.org |access-date=2012-03-26}}</ref> The {{tag|img|s}} element was first proposed by [[Marc Andreessen]] and implemented in the [[Mosaic (web browser)|NCSA Mosaic]] web browser.<ref>{{citation|url=http://1997.webhistory.org/www.lists/www-talk.1993q1/0182.html |title=WWW-Talk Jan-Mar 1993: proposed new tag: IMG |publisher=1997.webhistory.org |access-date=2012-03-26}}</ref>}} {{defn|<code>IMG</code> existed in ''[[#HTMLDRAFT12|HTML Internet Draft 1.2]]'', and was '''standardized''' in [[#HTML20|HTML 2.0]]; still current.}} {{term|term=map |content= {{XMLElement|map|Image Map}} }} {{defn|1= Specifies a client-side [[image map]].}} {{defn|'''Standardized''' in [[#HTML32|HTML 3.2]]; still current.}} {{term|term=object |content= {{XMLElement|object|Object}} }} {{defn|1= Includes an object in the page of the type specified by the <code>type</code> attribute. This may be in any [[MIME]]-type the user agent understands, such as an embedded HTML page, a file to be handled by a plug-in such as [[Adobe Flash Player|Flash]], a [[Java (programming language)|Java]] [[applet]], a sound file, etc.}} {{defn|'''Standardized''' in [[#HTML401|HTML 4.0]]; still current.}} {{term|term=param |content= {{XMLElement|param|Object Parameter|end=no}} }} {{defn|1= Originally introduced with {{tag|applet|o}}, this element is now used with {{tag|object|o}}, and should only occur as a child of {{tag|object|o}}. It uses [[HTML attributes]] to set a parameter for the object, e.g. width, height, font, background color, etc., depending on the type of object. An object can have multiple {{tag|param|s}} elements.}} {{defn|'''Standardized''' in [[#HTML32|HTML 3.2]]; still current.}} {{term|term=source |content= {{XMLElement|source|Source}} }} {{defn|1= Specifies different sources for audio or video. Makes use of the <code>src</code> attribute in a way similar to the {{tag|video|o}} and {{tag|audio|o}} elements.}} {{defn|'''Standardized''' in [[#HTML5|HTML5]].}} {{term|term=track |content= {{XMLElement|track|Track}} }} {{defn|1= Provides text tracks, like subtitles and captions, for audio and video.}} {{defn|'''Standardized''' in [[#HTML5|HTML5]].}} {{term|term=video |content= {{XMLElement|video|Video}} }} {{defn|1= Adds a playable [[HTML video]] to the page. The video URL is determined using the <code>src</code> attribute. Supported video formats vary from browser to browser.}} {{defn|'''Standardized''' in [[#HTML5|HTML5]].}} {{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)