fbpx
Wikipedia

Atributo HTML

Los atributos de HTML son palabras especiales utilizadas dentro de la etiqueta de apertura, para controlar el comportamiento del elemento. Los atributos de HTML son un modificador de un tipo de elemento de HTML. Un atributo tampoco modifica la funcionalidad por defecto de un tipo de elemento o proporciona funcionalidad a ciertos tipos de elementos incapaces de funcionar correctamente sin ellos. En sintaxis HTML, un atributo se añade a una etiqueta de inicio de HTML.

Se han reconocido varios tipos de atributos básicos, incluyendo: (1) atributos requeridos, necesitados por un tipo de elemento particular, para que aquel tipo de elemento funcione correctamente; (2) atributos opcionales, utilizados para modificar la funcionalidad por defecto de un tipo de elemento; (3) atributos estándares, soportados por muchos tipos de elementos; y (4) atributos de evento, utilizados para causar que los tipos de elemento especifiquen guiones o script para ser ejecutados bajo circunstancias concretas.

Algunos tipos de atributo funcionan de manera diferente, cuándo son utilizados para modificar diferentes tipos de elemento. Por ejemplo, el atributo name (nombre) se utiliza por varios tipos de elementos, pero tiene funciones ligeramente diferentes en cada uno.[1]

Descripción

Los atributos de HTML generalmente se muestran como una pareja nombre-valor, separados por =, y están escritos dentro de la etiqueta de inicio de un elemento, después del nombre del elemento:

<element attribute="value">element content</element> 

Dónde element nombra el tipo element del HTML, y atributte es el nombre del atributo puesto al value (valor) proporcionado. El valor puede estar encerrado en comillas simples o dobles, aunque hay valores compuestos de ciertos caracteres y que pueden quedar descomillados en HTML (pero no en XHTML).[2][3]​ Dejar valores de atributo descomillados se considera inseguro.[4]

A pesar de que la mayoría de los atributos se proporcionan como nombres y valores parejados, algunos afectan a la simplicidad del elemento con su presencia en la etiqueta de inicio del elemento (como el atributo ismap para el elementoimg).[5][6]

El elemento de abreviatura, abbr, se puede usar para mostar estos distintos atributos:

<abbr id="anId" class="aClass" style="color:blue;" title="Hypertext Markup Language">HTML</abbr> 

Este ejemplo visualiza como HTML, y en la mayoría de los navegadores, al apuntar con el cursor en la abreviatura, debería mostrar el texto de título: "Hypertext Markup Language."

La mayoría de elementos también toman la los atributos relativos a lenguas lang y dir.

Atributos comunes

La mayoría de elementos pueden tomar cualquiera de varios de los atributos comunes:

  • El atributo id (identidad) proporciona un identificador único en el ámbito de todo el documento para un elemento.[7][8][9]​ Este puede ser utilizado como selector CSS para proporcionar propiedades presentationales, por los navegadores para centrar la atención en el elemento concreto, o por scripts (guiones) para alterar los contenidos o la presentación de un elemento. Anexado a la URL de la página, la URL directamente apunta el elemento concreto dentro del documento, típicamente una sub-sección de la página. Por ejemplo, los #ID "Atributtes" en http://en.wikipedia.org/wiki/html#Atributtes
  • El atributo class proporciona una manera de clasificar elementos similares.[10][11]​ Esto puede ser utilizado para propósitos semánticos, o para propósitos de presentación. Semantically, por ejemplo, las clases se utilizan en microformatos. Presentacionalmente, por ejemplo, un documento HTML podría utilizar la designaciónclass="notation" , para indicar que todos los elementos con esta clase de valor están subordinados al texto principal del documento. Tales elementos podrían ser reunidos juntos y presentados como notas al pie en una página, en vez de aparecer en el sitio donde se encuentran en la fuente de HTML. Otro uso sería como selector CSS.
  • Un autor puede utilizar propiedades no presentacionales de código atribucional de style para un elemento particular.El atributo de estilo se puede utilizar en cualquier elemento de HTML ( se validará en cualquier elemento HTML; aun así, no es necesariamente útil). Se consiera mejor práctica usar los atributos iddo classde un elemento para seleccionar el elemento con una stylesheet (hoja de estilo), aunque a veces esto puede ser demasiado pesado para una aplicación de propiedades de estilo simple y específico o ad hoc.
  • El atributo de title (título) se suele usar para unir explicación subtextual a un elemento. En la mayoría de los navegadores, este atributo se muestra como lo que a menudo se llama un tooltip o globo.

Variedades

Los atributos HTML se clasifican generalmente en requeridos, opcionales, estándares (también denominados globales) y de evento. Normalmente los atributos requeridos y opcionales modifican elementos de HTML concretos, mientras que los atributos estándares pueden aplicarse a la mayoría de elementos de HTML.[12]​ Los atributos de evento, añadidos en versión HTML 4, permiten que un elemento especifiquen guiones o script que se ejecutaran en ciertas circunstancias .[13]

Requerido y opcional

Utilizado por un elemento

  • <applet>: code, object
  • <area>: nohref
  • <body>: alink, background, link, text, vlink
  • <form>: accept-charset, action, enctype, method
  • <frame>: noresize
  • <head>: profile
  • <hr>: noshade
  • <html>: xmlns
  • <img>: ismap
  • <input>: checked, maxlength
  • <label>: for
  • <meta>: content, http-equiv, scheme
  • <object>: classid, codetag, data, declare, standby
  • <ol>: start
  • <option>: selected
  • <param>: valuetype
  • <script>: defer, xml:space
  • <select>: multiple
  • <table>: cellpadding, cellspacing, frame, rules, summary
  • <td>: headers

Utilizado por dos elementos

  • <a> and <area>:
    • coords — coordinates of an <area> or a <link> within it.
    • shape — shape of an <area> or a <link> within it. Values: default, rect, circle, poly.
  • <a> and <link>:
    • hreflang — Language code of the linked document. (<a>, <link>)
    • rel — Nature of the linked document (relative to the page currently displayed). Free text for <a>, but <link> uses a set of terms (alternate, appendix, bookmark, chapter, contents, copyright, glossary, help, home, index, next, prev, section, start, stylesheet, subsection).
    • rev — Nature of the currently displayed page (relative to the linked document). Varies for <a> and <link> as for rel.
  • <applet> and <object>:
    • archive — archive URL(s) (<applet>, <object>)
    • codebase — base URL (<applet>, <object>)
  • <basefont> and <font>:
    • color — text color (deprecated) (<basefont>, <font>)
    • face — font family (deprecated) (<basefont>, <font>)
  • <col> and <colgroup>:
    • span — number of columns spanned (<col>, <colgroup>)
  • <del> and <ins>:
    • datetime — date and time of text deletion or insertion.
  • <form> and <input>:
    • accept — types of files accepted when uploading <form> or <input>
  • <frame> and <iframe>:
    • frameborder — value (0 or 1) specifies whether to display a border around the <frame> or <iframe>.
    • marginheight — top and bottom margins in pixels around the <frame> or <iframe>.
    • scrolling — value (yes, no, auto) specifies whether to display scroll bars around the <frame> or <iframe>.
    • marginwidth — left and right margins in pixels around the <frame> or <iframe>.
  • <frameset> and <textarea>:
    • cols — number of visible columns in <frameset> or <textarea> (some variation)
    • rows — number of visible rows in <frameset> or <textarea> (some variation)
  • <img> and <object>:
    • usemap — specifies name of a map element to use with <img> -or- URL of an image-map to use with <object>.
  • <input> and <textarea>:
    • readonly — specifies read-only text for <input> and <textarea>.
  • <link> and <style>:
    • media — specifies display device for <link> and <style>. Values: all, aural, braille, handheld, print, projection, screen, tty, TV.
  • <optgroup> and <option>:
    • label — description text for an <optgroup> or <option>.
  • <td> and <th>:
    • abbr — abbreviated version of a table cell or header.
    • axis — category name for a table cell or header.
    • colspan — number of columns spanned by a table cell or header.
    • nowrap — (deprecated) prevents wrapping of a table cell or header.
    • rowspan — number of rows spanned by a table cell or header.
    • scope — no effect on normal browser display, but marks a table cell or header as a logical header for other cells. Values: col, colgroup, row, rowgroup.

Utilizado por múltiples elementos

  • align<applet>, <col>, <colgroup>, <object>, <tbody>, <td>, <tfoot>, <th>, <thead>
  • align also deprecated in <caption>, <div>, <h1> to <h6>, <hr>, <iframe>, <img>, <input>, <legend>, <p>, <table>
  • alt<applet>, <area>, <img>, <input>
  • bgcolor<body>, <table>, <td>, <th>, <bgcolor>
  • border<img>, <object>, <table>
  • char<char>, <colgroup>, <tbody>, <td>, <tfoot>, <th>, <thead>, <tr>
  • charoff<col>, <colgroup>, <tbody>, <td>, <tfoot>, <th>, <thead>, <tr>
  • charset<a>, <link>, <script>
  • cite<blockquote>, <del>, <ins>, <q>
  • compact<dir>, <menu>, <ol>, <ul>
  • disabled<button>, <input>, <optgroup>, <option>, <select>, <textarea>
  • height<applet>, <iframe>, <img>, <object> . Also deprecated in <td>, <th>
  • href<a>, <area>, <base>, <link>
  • hspace<applet>, <object>. Also deprecated in <img>
  • longdesc<frame>, <iframe>, <img>
  • name<a>, <applet>, <button>, <form>, <frame>, <iframe>, <input>, <map>, <meta>, <object>, <param>, <select>, <textarea>
  • size<basefont>, <font>, <hr>, <input>, <select>
  • src<frame>, <iframe>, <img>, <input>, <script>
  • target<a>, <area>, <base>, <form>, <link>
  • type<button>, <input>, <li>, <link>, <object>, <ol>, <param>, <script>, <style>, <ul>
  • valign<col>, <colgroup>, <tbody>, <td>, <tfoot>, <th>, <thead>, <tr>
  • value<button>, <input>, <li>, <option>, <param>
  • vspace<applet>, <img>, <object>
  • width<applet>, <col>, <colgroup>, <hr>, <iframe>, <img>, <object>, <pre>, <table>, <td>, <th>

Atributos globales

Los atributos globales, también conocidos como atributos estándares, funcionan con un gran número de elementos.[14]​ Incluyen los atributos estándares básicos: entre los que se encuentran accesskey, class, contenteditable, contextmenu, data, dir, hidden (escondido), id, lang, style (estilo), tabindex, títle. Hay también algunos experimentales. Tanto xml:lang , como xml:base ha sido depreciados. Los atributos aria-* múltiples mejoran la accesibilidad. Los atributos de manejador de eventos, se listan más adelante en este página.

Técnicamente todos los atributos globales tienen que ser aceptados por todos los elementos, aunque no funcionen con algunos de ellos.[15]​ La tabla inferior lista algunos atributos globales comunes, y algunos de los elementos con los que pueden funcionar.

Elemento id class style title dir lang xml:lang accesskey tabindex
<param> id
<head> dir lang xml:lang
<html> dir lang xml:lang
<meta> dir lang xml:lang
<title> dir lang xml:lang
<style> title dir lang xml:lang
<applet> id class style title
<br> id class style title
<frame> id class style title
<frameset> id class style title
<iframe> id class style title
<basefont> id class style title dir lang
<center> id class style title dir lang
<dir> id class style title dir lang
<font> id class style title dir lang
<menu> id class style title dir lang
<s> id class style title dir lang
<strike> id class style title dir lang
<u> id class style title dir lang
<abbr> id class style title dir lang xml:lang
<acronym> id class style title dir lang xml:lang
<address> id class style title dir lang xml:lang
<b> id class style title dir lang xml:lang
<big> id class style title dir lang xml:lang
<blockquote> id class style title dir lang xml:lang
<body> id class style title dir lang xml:lang
<caption> id class style title dir lang xml:lang
<cite> id class style title dir lang xml:lang
<code> id class style title dir lang xml:lang
<col> id class style title dir lang xml:lang
<colgroup> id class style title dir lang xml:lang
<dd> id class style title dir lang xml:lang
<del> id class style title dir lang xml:lang
<dfn> id class style title dir lang xml:lang
<div> id class style title dir lang xml:lang
<dl> id class style title dir lang xml:lang
<dt> id class style title dir lang xml:lang
<em> id class style title dir lang xml:lang
<fieldset> id class style title dir lang xml:lang
<form> id class style title dir lang xml:lang
<hn> id class style title dir lang xml:lang
<h1>, <h2>, <h3>, <h4>, <h5>, <h6> id class style title dir lang xml:lang
<i> id class style title dir lang xml:lang
<img> id class style title dir lang xml:lang
<ins> id class style title dir lang xml:lang
<kbd> id class style title dir lang xml:lang
<li> id class style title dir lang xml:lang
<link> id class style title dir lang xml:lang
<map> id class style title dir lang xml:lang
<noframes> id class style title dir lang xml:lang
<noscript> id class style title dir lang xml:lang
<ol> id class style title dir lang xml:lang
<optgroup> id class style title dir lang xml:lang
<option> id class style title dir lang xml:lang
<p> id class style title dir lang xml:lang
<pre> id class style title dir lang xml:lang
<q> id class style title dir lang xml:lang
<samp> id class style title dir lang xml:lang
<small> id class style title dir lang xml:lang
<span> id class style title dir lang xml:lang
<strong> id class style title dir lang xml:lang
<sub> id class style title dir lang xml:lang
<sup> id class style title dir lang xml:lang
<table> id class style title dir lang xml:lang
<tbody> id class style title dir lang xml:lang
<td> id class style title dir lang xml:lang
<tfoot> id class style title dir lang xml:lang
<th> id class style title dir lang xml:lang
<thead> id class style title dir lang xml:lang
<tr> id class style title dir lang xml:lang
<tt> id class style title dir lang xml:lang
<ul> id class style title dir lang xml:lang
<var> id class style title dir lang xml:lang
<label> id class style title dir lang xml:lang accesskey
<legend> id class style title dir lang xml:lang accesskey
<object> id class style title dir lang xml:lang tabindex
<select> id class style title dir lang xml:lang tabindex
<a> id class style title dir lang xml:lang accesskey tabindex
<area> id class style title dir lang xml:lang accesskey tabindex
<button> id class style title dir lang xml:lang accesskey tabindex
<input> id class style title dir lang xml:lang accesskey tabindex
<textarea> id class style title dir lang xml:lang accesskey tabindex

Atributos de evento

Los atributos estándar o globales incluyen los atributos de manejo de evento. Todos tienen el prefijo -:[14]

  • onabort
  • onautocomplete
  • onautocompleteerror
  • onblur
  • oncancel
  • oncanplay
  • oncanplaythrough
  • onchange
  • onclick
  • onclose
  • oncontextmenu
  • oncuechange
  • ondblclick
  • ondrag
  • ondragend
  • ondragenter
  • ondragexit
  • ondragleave
  • ondragover
  • ondragstart
  • ondrop
  • ondurationchange
  • onemptied
  • onended
  • onerror
  • onfocus
  • oninput
  • oninvalid
  • onkeydown
  • onkeypress
  • onkeyup
  • onload
  • onloadeddata
  • onloadedmetadata
  • onloadstart
  • onmousedown
  • onmouseenter
  • onmouseleave
  • onmousemove
  • onmouseout
  • onmouseover
  • onmouseup
  • onmousewheel
  • onpause
  • onplay
  • onplaying
  • onprogress
  • onratechange
  • onreset
  • onresize
  • onscroll
  • onseeked
  • onseeking
  • onselect
  • onshow
  • onsort
  • onstalled
  • onsubmit
  • onsuspend
  • ontimeupdate
  • ontoggle
  • onvolumechange
  • onwaiting

Los atributos de evento, añadidos en HTML versión 4, permiten a un elemento especificar guiones o script que serán ejecutados bajo determinadas circunstancias. La tabla de más abajo lista algunos de los atributos de manejador de evento más comunes, y algunos elementos con los que pueden funcionar.

Element At At At At At At At At At At At At At At At At At
<frameset> onload onunload
<body> onload onunload onclick ondblclick onmousedown onmousemove onmouseout onmouseover onmouseup onkeydown onkeypress onkeyup
<abbr> onclick ondblclick onmousedown onmousemove onmouseout onmouseover onmouseup onkeydown onkeypress onkeyup
<acronym> onclick ondblclick onmousedown onmousemove onmouseout onmouseover onmouseup onkeydown onkeypress onkeyup
<address> onclick ondblclick onmousedown onmousemove onmouseout onmouseover onmouseup onkeydown onkeypress onkeyup
<b> onclick ondblclick onmousedown onmousemove onmouseout onmouseover onmouseup onkeydown onkeypress onkeyup
<big> onclick ondblclick onmousedown onmousemove onmouseout onmouseover onmouseup onkeydown onkeypress onkeyup
<blockquote> onclick ondblclick onmousedown onmousemove onmouseout onmouseover onmouseup onkeydown onkeypress onkeyup
<caption> onclick ondblclick onmousedown onmousemove onmouseout onmouseover onmouseup onkeydown onkeypress onkeyup
<center> onclick ondblclick onmousedown onmousemove onmouseout onmouseover onmouseup onkeydown onkeypress onkeyup
<cite> onclick ondblclick onmousedown onmousemove onmouseout onmouseover onmouseup onkeydown onkeypress onkeyup
<code> onclick ondblclick onmousedown onmousemove onmouseout onmouseover onmouseup onkeydown onkeypress onkeyup
<col> onclick ondblclick onmousedown onmousemove onmouseout onmouseover onmouseup onkeydown onkeypress onkeyup
<colgroup> onclick ondblclick onmousedown onmousemove onmouseout onmouseover onmouseup onkeydown onkeypress onkeyup
<dd> onclick ondblclick onmousedown onmousemove onmouseout onmouseover onmouseup onkeydown onkeypress onkeyup
<del> onclick ondblclick onmousedown onmousemove onmouseout onmouseover onmouseup onkeydown onkeypress onkeyup
<dfn> onclick ondblclick onmousedown onmousemove onmouseout onmouseover onmouseup onkeydown onkeypress onkeyup
<dir> onclick ondblclick onmousedown onmousemove onmouseout onmouseover onmouseup onkeydown onkeypress onkeyup
<div> onclick ondblclick onmousedown onmousemove onmouseout onmouseover onmouseup onkeydown onkeypress onkeyup
<dl> onclick ondblclick onmousedown onmousemove onmouseout onmouseover onmouseup onkeydown onkeypress onkeyup
<dt> onclick ondblclick onmousedown onmousemove onmouseout onmouseover onmouseup onkeydown onkeypress onkeyup
<em> onclick ondblclick onmousedown onmousemove onmouseout onmouseover onmouseup onkeydown onkeypress onkeyup
<fieldset> onclick ondblclick onmousedown onmousemove onmouseout onmouseover onmouseup onkeydown onkeypress onkeyup
<h1>, <h2>, <h3>, <h4>, <h5>, <h6> onclick ondblclick onmousedown onmousemove onmouseout onmouseover onmouseup onkeydown onkeypress onkeyup
<hr> onclick ondblclick onmousedown onmousemove onmouseout onmouseover onmouseup onkeydown onkeypress onkeyup
<i> onclick ondblclick onmousedown onmousemove onmouseout onmouseover onmouseup onkeydown onkeypress onkeyup
<ins> onclick ondblclick onmousedown onmousemove onmouseout onmouseover onmouseup onkeydown onkeypress onkeyup
<kbd> onclick ondblclick onmousedown onmousemove onmouseout onmouseover onmouseup onkeydown onkeypress onkeyup
<legend> onclick ondblclick onmousedown onmousemove onmouseout onmouseover onmouseup onkeydown onkeypress onkeyup
<li> onclick ondblclick onmousedown onmousemove onmouseout onmouseover onmouseup onkeydown onkeypress onkeyup
<link> onclick ondblclick onmousedown onmousemove onmouseout onmouseover onmouseup onkeydown onkeypress onkeyup
<map> onclick ondblclick onmousedown onmousemove onmouseout onmouseover onmouseup onkeydown onkeypress onkeyup
<menu> onclick ondblclick onmousedown onmousemove onmouseout onmouseover onmouseup onkeydown onkeypress onkeyup
<noframes> onclick ondblclick onmousedown onmousemove onmouseout onmouseover onmouseup onkeydown onkeypress onkeyup
<noscript> onclick ondblclick onmousedown onmousemove onmouseout onmouseover onmouseup onkeydown onkeypress onkeyup
<object> onclick ondblclick onmousedown onmousemove onmouseout onmouseover onmouseup onkeydown onkeypress onkeyup
<ol> onclick ondblclick onmousedown onmousemove onmouseout onmouseover onmouseup onkeydown onkeypress onkeyup
<optgroup> onclick ondblclick onmousedown onmousemove onmouseout onmouseover onmouseup onkeydown onkeypress onkeyup
<option> onclick ondblclick onmousedown onmousemove onmouseout onmouseover onmouseup onkeydown onkeypress onkeyup
<p> onclick ondblclick onmousedown onmousemove onmouseout onmouseover onmouseup onkeydown onkeypress onkeyup
<pre> onclick ondblclick onmousedown onmousemove onmouseout onmouseover onmouseup onkeydown onkeypress onkeyup
<q> onclick ondblclick onmousedown onmousemove onmouseout onmouseover onmouseup onkeydown onkeypress onkeyup
<s> onclick ondblclick onmousedown onmousemove onmouseout onmouseover onmouseup onkeydown onkeypress onkeyup
<samp> onclick ondblclick onmousedown onmousemove onmouseout onmouseover onmouseup onkeydown onkeypress onkeyup
<small> onclick ondblclick onmousedown onmousemove onmouseout onmouseover onmouseup onkeydown onkeypress onkeyup
<span> onclick ondblclick onmousedown onmousemove onmouseout onmouseover onmouseup onkeydown onkeypress onkeyup
<strike> onclick ondblclick onmousedown onmousemove onmouseout onmouseover onmouseup onkeydown onkeypress onkeyup
<strong> onclick ondblclick onmousedown onmousemove onmouseout onmouseover onmouseup onkeydown onkeypress onkeyup
<sub> onclick ondblclick onmousedown onmousemove onmouseout onmouseover onmouseup onkeydown onkeypress onkeyup
<sup> onclick ondblclick onmousedown onmousemove onmouseout onmouseover onmouseup onkeydown onkeypress onkeyup
<table> onclick ondblclick onmousedown onmousemove onmouseout onmouseover onmouseup onkeydown onkeypress onkeyup
<tbody> onclick ondblclick onmousedown onmousemove onmouseout onmouseover onmouseup onkeydown onkeypress onkeyup
<td> onclick ondblclick onmousedown onmousemove onmouseout onmouseover onmouseup onkeydown onkeypress onkeyup
<tfoot> onclick ondblclick onmousedown onmousemove onmouseout onmouseover onmouseup onkeydown onkeypress onkeyup
<th> onclick ondblclick onmousedown onmousemove onmouseout onmouseover onmouseup onkeydown onkeypress onkeyup
<thead> onclick ondblclick onmousedown onmousemove onmouseout onmouseover onmouseup onkeydown onkeypress onkeyup
<tr> onclick ondblclick onmousedown onmousemove onmouseout onmouseover onmouseup onkeydown onkeypress onkeyup
<tt> onclick ondblclick onmousedown onmousemove onmouseout onmouseover onmouseup onkeydown onkeypress onkeyup
<u> onclick ondblclick onmousedown onmousemove onmouseout onmouseover onmouseup onkeydown onkeypress onkeyup
<ul> onclick ondblclick onmousedown onmousemove onmouseout onmouseover onmouseup onkeydown onkeypress onkeyup
<var> onclick ondblclick onmousedown onmousemove onmouseout onmouseover onmouseup onkeydown onkeypress onkeyup
<img> onabort onclick ondblclick onmousedown onmousemove onmouseout onmouseover onmouseup onkeydown onkeypress onkeyup
<a> onclick ondblclick onmousedown onmousemove onmouseout onmouseover onmouseup onkeydown onkeypress onkeyup onblur onfocus
<area> onclick ondblclick onmousedown onmousemove onmouseout onmouseover onmouseup onkeydown onkeypress onkeyup onblur onfocus
<button> onclick ondblclick onmousedown onmousemove onmouseout onmouseover onmouseup onkeydown onkeypress onkeyup onblur onfocus
<form> onclick ondblclick onmousedown onmousemove onmouseout onmouseover onmouseup onkeydown onkeypress onkeyup onblur onfocus
<label> onclick ondblclick onmousedown onmousemove onmouseout onmouseover onmouseup onkeydown onkeypress onkeyup onblur onfocus
<select> onclick ondblclick onmousedown onmousemove onmouseout onmouseover onmouseup onkeydown onkeypress onkeyup onblur onfocus onchange
<input> onclick ondblclick onmousedown onmousemove onmouseout onmouseover onmouseup onkeydown onkeypress onkeyup onblur onfocus onchange onselect
<textarea> onclick ondblclick onmousedown onmousemove onmouseout onmouseover onmouseup onkeydown onkeypress onkeyup onblur onfocus onchange onselect

Véase también

Referencias

  1. «Index of the HTML 4 Attributes». W3C. Consultado el 13 de febrero de 2015. 
  2. «On SGML and HTML». World Wide Web Consortium. Consultado el 16 de noviembre de 2008. 
  3. «XHTML 1.0 - Differences with HTML 4». World Wide Web Consortium. Consultado el 16 de noviembre de 2008. 
  4. Korpela, Jukka (6 de julio de 1998). . Cs.tut.fi. Archivado desde el original el 21 de noviembre de 2008. Consultado el 16 de noviembre de 2008. 
  5. «Tags used in HTML». World Wide Web Consortium. 3 de noviembre de 1992. Consultado el 16 de noviembre de 2008. 
  6. «Objects, Images, and Applets in HTML documents». World Wide Web Consortium. 24 de diciembre de 1999. Consultado el 16 de noviembre de 2008. 
  7. However, multiple identifiers may apply to the same element; in particular an element may be inside another element, each having an identifier.
  8. «HTML id». www.w3schools.com. Consultado el 27 de abril de 2020. 
  9. «HTML Global id Attribute». www.w3schools.com. Consultado el 27 de abril de 2020. 
  10. «HTML Classes». www.w3schools.com. Consultado el 27 de abril de 2020. 
  11. «HTML Global class Attribute». www.w3schools.com. Consultado el 27 de abril de 2020. 
  12. «HTML / XHTML Standard Attributes». w3schools.com. 
  13. «HTML / XHTML Standard Event Attributes». w3schools.com. 
  14. «Global attributes - HTML (HyperText Markup Language) MDN». Consultado el 12 de febrero de 2015. 
  15. «HTML reference - HTML (HyperText Markup Language) MDN». Consultado el 13 de febrero de 2015. 
  •   Datos: Q5636097

atributo, html, atributos, html, palabras, especiales, utilizadas, dentro, etiqueta, apertura, para, controlar, comportamiento, elemento, atributos, html, modificador, tipo, elemento, html, atributo, tampoco, modifica, funcionalidad, defecto, tipo, elemento, p. Los atributos de HTML son palabras especiales utilizadas dentro de la etiqueta de apertura para controlar el comportamiento del elemento Los atributos de HTML son un modificador de un tipo de elemento de HTML Un atributo tampoco modifica la funcionalidad por defecto de un tipo de elemento o proporciona funcionalidad a ciertos tipos de elementos incapaces de funcionar correctamente sin ellos En sintaxis HTML un atributo se anade a una etiqueta de inicio de HTML Se han reconocido varios tipos de atributos basicos incluyendo 1 atributos requeridos necesitados por un tipo de elemento particular para que aquel tipo de elemento funcione correctamente 2 atributos opcionales utilizados para modificar la funcionalidad por defecto de un tipo de elemento 3 atributos estandares soportados por muchos tipos de elementos y 4 atributos de evento utilizados para causar que los tipos de elemento especifiquen guiones o script para ser ejecutados bajo circunstancias concretas Algunos tipos de atributo funcionan de manera diferente cuando son utilizados para modificar diferentes tipos de elemento Por ejemplo el atributo name nombre se utiliza por varios tipos de elementos pero tiene funciones ligeramente diferentes en cada uno 1 Indice 1 Descripcion 1 1 Atributos comunes 2 Variedades 3 Requerido y opcional 3 1 Utilizado por un elemento 3 2 Utilizado por dos elementos 3 3 Utilizado por multiples elementos 4 Atributos globales 4 1 Atributos de evento 5 Vease tambien 6 ReferenciasDescripcion EditarLos atributos de HTML generalmente se muestran como una pareja nombre valor separados por y estan escritos dentro de la etiqueta de inicio de un elemento despues del nombre del elemento lt element attribute value gt element content lt element gt Donde element nombra el tipo element del HTML y atributte es el nombre del atributo puesto al i value i valor proporcionado El valor puede estar encerrado en comillas simples o dobles aunque hay valores compuestos de ciertos caracteres y que pueden quedar descomillados en HTML pero no en XHTML 2 3 Dejar valores de atributo descomillados se considera inseguro 4 A pesar de que la mayoria de los atributos se proporcionan como nombres y valores parejados algunos afectan a la simplicidad del elemento con su presencia en la etiqueta de inicio del elemento como el atributo ismap para el elementoimg 5 6 El elemento de abreviatura abbr se puede usar para mostar estos distintos atributos lt abbr id anId class aClass style color blue title Hypertext Markup Language gt HTML lt abbr gt Este ejemplo visualiza como HTML y en la mayoria de los navegadores al apuntar con el cursor en la abreviatura deberia mostrar el texto de titulo Hypertext Markup Language La mayoria de elementos tambien toman la los atributos relativos a lenguas lang y dir Atributos comunes Editar La mayoria de elementos pueden tomar cualquiera de varios de los atributos comunes El atributo id identidad proporciona un identificador unico en el ambito de todo el documento para un elemento 7 8 9 Este puede ser utilizado como selector CSS para proporcionar propiedades presentationales por los navegadores para centrar la atencion en el elemento concreto o por scripts guiones para alterar los contenidos o la presentacion de un elemento Anexado a la URL de la pagina la URL directamente apunta el elemento concreto dentro del documento tipicamente una sub seccion de la pagina Por ejemplo los ID Atributtes en http en wikipedia org wiki html Atributtes El atributo class proporciona una manera de clasificar elementos similares 10 11 Esto puede ser utilizado para propositos semanticos o para propositos de presentacion Semantically por ejemplo las clases se utilizan en microformatos Presentacionalmente por ejemplo un documento HTML podria utilizar la designacionclass notation para indicar que todos los elementos con esta clase de valor estan subordinados al texto principal del documento Tales elementos podrian ser reunidos juntos y presentados como notas al pie en una pagina en vez de aparecer en el sitio donde se encuentran en la fuente de HTML Otro uso seria como selector CSS Un autor puede utilizar propiedades no presentacionales de codigo atribucional de style para un elemento particular El atributo de estilo se puede utilizar en cualquier elemento de HTML se validara en cualquier elemento HTML aun asi no es necesariamente util Se consiera mejor practica usar los atributos iddo classde un elemento para seleccionar el elemento con una stylesheet hoja de estilo aunque a veces esto puede ser demasiado pesado para una aplicacion de propiedades de estilo simple y especifico o ad hoc El atributo de title titulo se suele usar para unir explicacion subtextual a un elemento En la mayoria de los navegadores este atributo se muestra como lo que a menudo se llama un tooltip o globo Variedades EditarLos atributos HTML se clasifican generalmente en requeridos opcionales estandares tambien denominados globales y de evento Normalmente los atributos requeridos y opcionales modifican elementos de HTML concretos mientras que los atributos estandares pueden aplicarse a la mayoria de elementos de HTML 12 Los atributos de evento anadidos en version HTML 4 permiten que un elemento especifiquen guiones o script que se ejecutaran en ciertas circunstancias 13 Requerido y opcional EditarUtilizado por un elemento Editar lt applet gt code object lt area gt nohref lt body gt alink background link text vlink lt form gt accept charset action enctype method lt frame gt noresize lt head gt profile lt hr gt noshade lt html gt xmlns lt img gt ismap lt input gt checked maxlength lt label gt for lt meta gt content http equiv scheme lt object gt classid codetag data declare standby lt ol gt start lt option gt selected lt param gt valuetype lt script gt defer xml space lt select gt multiple lt table gt cellpadding cellspacing frame rules summary lt td gt headersUtilizado por dos elementos Editar lt a gt and lt area gt coords coordinates of an lt area gt or a lt link gt within it shape shape of an lt area gt or a lt link gt within it Values default rect circle poly lt a gt and lt link gt hreflang Language code of the linked document lt a gt lt link gt rel Nature of the linked document relative to the page currently displayed Free text for lt a gt but lt link gt uses a set of terms alternate appendix bookmark chapter contents copyright glossary help home index next prev section start stylesheet subsection rev Nature of the currently displayed page relative to the linked document Varies for lt a gt and lt link gt as for rel lt applet gt and lt object gt archive archive URL s lt applet gt lt object gt codebase base URL lt applet gt lt object gt lt basefont gt and lt font gt color text color deprecated lt basefont gt lt font gt face font family deprecated lt basefont gt lt font gt lt col gt and lt colgroup gt span number of columns spanned lt col gt lt colgroup gt lt del gt and lt ins gt datetime date and time of text deletion or insertion lt form gt and lt input gt accept types of files accepted when uploading lt form gt or lt input gt lt frame gt and lt iframe gt frameborder value 0 or 1 specifies whether to display a border around the lt frame gt or lt iframe gt marginheight top and bottom margins in pixels around the lt frame gt or lt iframe gt scrolling value yes no auto specifies whether to display scroll bars around the lt frame gt or lt iframe gt marginwidth left and right margins in pixels around the lt frame gt or lt iframe gt lt frameset gt and lt textarea gt cols number of visible columns in lt frameset gt or lt textarea gt some variation rows number of visible rows in lt frameset gt or lt textarea gt some variation lt img gt and lt object gt usemap specifies name of a map element to use with lt img gt or URL of an image map to use with lt object gt lt input gt and lt textarea gt readonly specifies read only text for lt input gt and lt textarea gt lt link gt and lt style gt media specifies display device for lt link gt and lt style gt Values all aural braille handheld print projection screen tty TV lt optgroup gt and lt option gt label description text for an lt optgroup gt or lt option gt lt td gt and lt th gt abbr abbreviated version of a table cell or header axis category name for a table cell or header colspan number of columns spanned by a table cell or header nowrap deprecated prevents wrapping of a table cell or header rowspan number of rows spanned by a table cell or header scope no effect on normal browser display but marks a table cell or header as a logical header for other cells Values col colgroup row rowgroup Utilizado por multiples elementos Editar align lt applet gt lt col gt lt colgroup gt lt object gt lt tbody gt lt td gt lt tfoot gt lt th gt lt thead gt align also deprecated in lt caption gt lt div gt lt h1 gt to lt h6 gt lt hr gt lt iframe gt lt img gt lt input gt lt legend gt lt p gt lt table gt alt lt applet gt lt area gt lt img gt lt input gt bgcolor lt body gt lt table gt lt td gt lt th gt lt bgcolor gt border lt img gt lt object gt lt table gt char lt char gt lt colgroup gt lt tbody gt lt td gt lt tfoot gt lt th gt lt thead gt lt tr gt charoff lt col gt lt colgroup gt lt tbody gt lt td gt lt tfoot gt lt th gt lt thead gt lt tr gt charset lt a gt lt link gt lt script gt cite lt blockquote gt lt del gt lt ins gt lt q gt compact lt dir gt lt menu gt lt ol gt lt ul gt disabled lt button gt lt input gt lt optgroup gt lt option gt lt select gt lt textarea gt height lt applet gt lt iframe gt lt img gt lt object gt Also deprecated in lt td gt lt th gt href lt a gt lt area gt lt base gt lt link gt hspace lt applet gt lt object gt Also deprecated in lt img gt longdesc lt frame gt lt iframe gt lt img gt name lt a gt lt applet gt lt button gt lt form gt lt frame gt lt iframe gt lt input gt lt map gt lt meta gt lt object gt lt param gt lt select gt lt textarea gt size lt basefont gt lt font gt lt hr gt lt input gt lt select gt src lt frame gt lt iframe gt lt img gt lt input gt lt script gt target lt a gt lt area gt lt base gt lt form gt lt link gt type lt button gt lt input gt lt li gt lt link gt lt object gt lt ol gt lt param gt lt script gt lt style gt lt ul gt valign lt col gt lt colgroup gt lt tbody gt lt td gt lt tfoot gt lt th gt lt thead gt lt tr gt value lt button gt lt input gt lt li gt lt option gt lt param gt vspace lt applet gt lt img gt lt object gt width lt applet gt lt col gt lt colgroup gt lt hr gt lt iframe gt lt img gt lt object gt lt pre gt lt table gt lt td gt lt th gt Atributos globales EditarLos atributos globales tambien conocidos como atributos estandares funcionan con un gran numero de elementos 14 Incluyen los atributos estandares basicos entre los que se encuentran accesskey class contenteditable contextmenu data dir hidden escondido id lang style estilo tabindex title Hay tambien algunos experimentales Tanto xml lang como xml base ha sido depreciados Los atributos aria multiples mejoran la accesibilidad Los atributos de manejador de eventos se listan mas adelante en este pagina Tecnicamente todos los atributos globales tienen que ser aceptados por todos los elementos aunque no funcionen con algunos de ellos 15 La tabla inferior lista algunos atributos globales comunes y algunos de los elementos con los que pueden funcionar Elemento id class style title dir lang xml lang accesskey tabindex lt param gt id lt head gt dir lang xml lang lt html gt dir lang xml lang lt meta gt dir lang xml lang lt title gt dir lang xml lang lt style gt title dir lang xml lang lt applet gt id class style title lt br gt id class style title lt frame gt id class style title lt frameset gt id class style title lt iframe gt id class style title lt basefont gt id class style title dir lang lt center gt id class style title dir lang lt dir gt id class style title dir lang lt font gt id class style title dir lang lt menu gt id class style title dir lang lt s gt id class style title dir lang lt strike gt id class style title dir lang lt u gt id class style title dir lang lt abbr gt id class style title dir lang xml lang lt acronym gt id class style title dir lang xml lang lt address gt id class style title dir lang xml lang lt b gt id class style title dir lang xml lang lt big gt id class style title dir lang xml lang lt blockquote gt id class style title dir lang xml lang lt body gt id class style title dir lang xml lang lt caption gt id class style title dir lang xml lang lt cite gt id class style title dir lang xml lang lt code gt id class style title dir lang xml lang lt col gt id class style title dir lang xml lang lt colgroup gt id class style title dir lang xml lang lt dd gt id class style title dir lang xml lang lt del gt id class style title dir lang xml lang lt dfn gt id class style title dir lang xml lang lt div gt id class style title dir lang xml lang lt dl gt id class style title dir lang xml lang lt dt gt id class style title dir lang xml lang lt em gt id class style title dir lang xml lang lt fieldset gt id class style title dir lang xml lang lt form gt id class style title dir lang xml lang lt hn gt id class style title dir lang xml lang lt h1 gt lt h2 gt lt h3 gt lt h4 gt lt h5 gt lt h6 gt id class style title dir lang xml lang lt i gt id class style title dir lang xml lang lt img gt id class style title dir lang xml lang lt ins gt id class style title dir lang xml lang lt kbd gt id class style title dir lang xml lang lt li gt id class style title dir lang xml lang lt link gt id class style title dir lang xml lang lt map gt id class style title dir lang xml lang lt noframes gt id class style title dir lang xml lang lt noscript gt id class style title dir lang xml lang lt ol gt id class style title dir lang xml lang lt optgroup gt id class style title dir lang xml lang lt option gt id class style title dir lang xml lang lt p gt id class style title dir lang xml lang lt pre gt id class style title dir lang xml lang lt q gt id class style title dir lang xml lang lt samp gt id class style title dir lang xml lang lt small gt id class style title dir lang xml lang lt span gt id class style title dir lang xml lang lt strong gt id class style title dir lang xml lang lt sub gt id class style title dir lang xml lang lt sup gt id class style title dir lang xml lang lt table gt id class style title dir lang xml lang lt tbody gt id class style title dir lang xml lang lt td gt id class style title dir lang xml lang lt tfoot gt id class style title dir lang xml lang lt th gt id class style title dir lang xml lang lt thead gt id class style title dir lang xml lang lt tr gt id class style title dir lang xml lang lt tt gt id class style title dir lang xml lang lt ul gt id class style title dir lang xml lang lt var gt id class style title dir lang xml lang lt label gt id class style title dir lang xml lang accesskey lt legend gt id class style title dir lang xml lang accesskey lt object gt id class style title dir lang xml lang tabindex lt select gt id class style title dir lang xml lang tabindex lt a gt id class style title dir lang xml lang accesskey tabindex lt area gt id class style title dir lang xml lang accesskey tabindex lt button gt id class style title dir lang xml lang accesskey tabindex lt input gt id class style title dir lang xml lang accesskey tabindex lt textarea gt id class style title dir lang xml lang accesskey tabindexAtributos de evento Editar Los atributos estandar o globales incluyen los atributos de manejo de evento Todos tienen el prefijo 14 onabort onautocomplete onautocompleteerror onblur oncancel oncanplay oncanplaythrough onchange onclick onclose oncontextmenu oncuechange ondblclick ondrag ondragend ondragenter ondragexit ondragleave ondragover ondragstart ondrop ondurationchange onemptied onended onerror onfocus oninput oninvalid onkeydown onkeypress onkeyup onload onloadeddata onloadedmetadata onloadstart onmousedown onmouseenter onmouseleave onmousemove onmouseout onmouseover onmouseup onmousewheel onpause onplay onplaying onprogress onratechange onreset onresize onscroll onseeked onseeking onselect onshow onsort onstalled onsubmit onsuspend ontimeupdate ontoggle onvolumechange onwaiting Los atributos de evento anadidos en HTML version 4 permiten a un elemento especificar guiones o script que seran ejecutados bajo determinadas circunstancias La tabla de mas abajo lista algunos de los atributos de manejador de evento mas comunes y algunos elementos con los que pueden funcionar Element At At At At At At At At At At At At At At At At At lt frameset gt onload onunload lt body gt onload onunload onclick ondblclick onmousedown onmousemove onmouseout onmouseover onmouseup onkeydown onkeypress onkeyup lt abbr gt onclick ondblclick onmousedown onmousemove onmouseout onmouseover onmouseup onkeydown onkeypress onkeyup lt acronym gt onclick ondblclick onmousedown onmousemove onmouseout onmouseover onmouseup onkeydown onkeypress onkeyup lt address gt onclick ondblclick onmousedown onmousemove onmouseout onmouseover onmouseup onkeydown onkeypress onkeyup lt b gt onclick ondblclick onmousedown onmousemove onmouseout onmouseover onmouseup onkeydown onkeypress onkeyup lt big gt onclick ondblclick onmousedown onmousemove onmouseout onmouseover onmouseup onkeydown onkeypress onkeyup lt blockquote gt onclick ondblclick onmousedown onmousemove onmouseout onmouseover onmouseup onkeydown onkeypress onkeyup lt caption gt onclick ondblclick onmousedown onmousemove onmouseout onmouseover onmouseup onkeydown onkeypress onkeyup lt center gt onclick ondblclick onmousedown onmousemove onmouseout onmouseover onmouseup onkeydown onkeypress onkeyup lt cite gt onclick ondblclick onmousedown onmousemove onmouseout onmouseover onmouseup onkeydown onkeypress onkeyup lt code gt onclick ondblclick onmousedown onmousemove onmouseout onmouseover onmouseup onkeydown onkeypress onkeyup lt col gt onclick ondblclick onmousedown onmousemove onmouseout onmouseover onmouseup onkeydown onkeypress onkeyup lt colgroup gt onclick ondblclick onmousedown onmousemove onmouseout onmouseover onmouseup onkeydown onkeypress onkeyup lt dd gt onclick ondblclick onmousedown onmousemove onmouseout onmouseover onmouseup onkeydown onkeypress onkeyup lt del gt onclick ondblclick onmousedown onmousemove onmouseout onmouseover onmouseup onkeydown onkeypress onkeyup lt dfn gt onclick ondblclick onmousedown onmousemove onmouseout onmouseover onmouseup onkeydown onkeypress onkeyup lt dir gt onclick ondblclick onmousedown onmousemove onmouseout onmouseover onmouseup onkeydown onkeypress onkeyup lt div gt onclick ondblclick onmousedown onmousemove onmouseout onmouseover onmouseup onkeydown onkeypress onkeyup lt dl gt onclick ondblclick onmousedown onmousemove onmouseout onmouseover onmouseup onkeydown onkeypress onkeyup lt dt gt onclick ondblclick onmousedown onmousemove onmouseout onmouseover onmouseup onkeydown onkeypress onkeyup lt em gt onclick ondblclick onmousedown onmousemove onmouseout onmouseover onmouseup onkeydown onkeypress onkeyup lt fieldset gt onclick ondblclick onmousedown onmousemove onmouseout onmouseover onmouseup onkeydown onkeypress onkeyup lt h1 gt lt h2 gt lt h3 gt lt h4 gt lt h5 gt lt h6 gt onclick ondblclick onmousedown onmousemove onmouseout onmouseover onmouseup onkeydown onkeypress onkeyup lt hr gt onclick ondblclick onmousedown onmousemove onmouseout onmouseover onmouseup onkeydown onkeypress onkeyup lt i gt onclick ondblclick onmousedown onmousemove onmouseout onmouseover onmouseup onkeydown onkeypress onkeyup lt ins gt onclick ondblclick onmousedown onmousemove onmouseout onmouseover onmouseup onkeydown onkeypress onkeyup lt kbd gt onclick ondblclick onmousedown onmousemove onmouseout onmouseover onmouseup onkeydown onkeypress onkeyup lt legend gt onclick ondblclick onmousedown onmousemove onmouseout onmouseover onmouseup onkeydown onkeypress onkeyup lt li gt onclick ondblclick onmousedown onmousemove onmouseout onmouseover onmouseup onkeydown onkeypress onkeyup lt link gt onclick ondblclick onmousedown onmousemove onmouseout onmouseover onmouseup onkeydown onkeypress onkeyup lt map gt onclick ondblclick onmousedown onmousemove onmouseout onmouseover onmouseup onkeydown onkeypress onkeyup lt menu gt onclick ondblclick onmousedown onmousemove onmouseout onmouseover onmouseup onkeydown onkeypress onkeyup lt noframes gt onclick ondblclick onmousedown onmousemove onmouseout onmouseover onmouseup onkeydown onkeypress onkeyup lt noscript gt onclick ondblclick onmousedown onmousemove onmouseout onmouseover onmouseup onkeydown onkeypress onkeyup lt object gt onclick ondblclick onmousedown onmousemove onmouseout onmouseover onmouseup onkeydown onkeypress onkeyup lt ol gt onclick ondblclick onmousedown onmousemove onmouseout onmouseover onmouseup onkeydown onkeypress onkeyup lt optgroup gt onclick ondblclick onmousedown onmousemove onmouseout onmouseover onmouseup onkeydown onkeypress onkeyup lt option gt onclick ondblclick onmousedown onmousemove onmouseout onmouseover onmouseup onkeydown onkeypress onkeyup lt p gt onclick ondblclick onmousedown onmousemove onmouseout onmouseover onmouseup onkeydown onkeypress onkeyup lt pre gt onclick ondblclick onmousedown onmousemove onmouseout onmouseover onmouseup onkeydown onkeypress onkeyup lt q gt onclick ondblclick onmousedown onmousemove onmouseout onmouseover onmouseup onkeydown onkeypress onkeyup lt s gt onclick ondblclick onmousedown onmousemove onmouseout onmouseover onmouseup onkeydown onkeypress onkeyup lt samp gt onclick ondblclick onmousedown onmousemove onmouseout onmouseover onmouseup onkeydown onkeypress onkeyup lt small gt onclick ondblclick onmousedown onmousemove onmouseout onmouseover onmouseup onkeydown onkeypress onkeyup lt span gt onclick ondblclick onmousedown onmousemove onmouseout onmouseover onmouseup onkeydown onkeypress onkeyup lt strike gt onclick ondblclick onmousedown onmousemove onmouseout onmouseover onmouseup onkeydown onkeypress onkeyup lt strong gt onclick ondblclick onmousedown onmousemove onmouseout onmouseover onmouseup onkeydown onkeypress onkeyup lt sub gt onclick ondblclick onmousedown onmousemove onmouseout onmouseover onmouseup onkeydown onkeypress onkeyup lt sup gt onclick ondblclick onmousedown onmousemove onmouseout onmouseover onmouseup onkeydown onkeypress onkeyup lt table gt onclick ondblclick onmousedown onmousemove onmouseout onmouseover onmouseup onkeydown onkeypress onkeyup lt tbody gt onclick ondblclick onmousedown onmousemove onmouseout onmouseover onmouseup onkeydown onkeypress onkeyup lt td gt onclick ondblclick onmousedown onmousemove onmouseout onmouseover onmouseup onkeydown onkeypress onkeyup lt tfoot gt onclick ondblclick onmousedown onmousemove onmouseout onmouseover onmouseup onkeydown onkeypress onkeyup lt th gt onclick ondblclick onmousedown onmousemove onmouseout onmouseover onmouseup onkeydown onkeypress onkeyup lt thead gt onclick ondblclick onmousedown onmousemove onmouseout onmouseover onmouseup onkeydown onkeypress onkeyup lt tr gt onclick ondblclick onmousedown onmousemove onmouseout onmouseover onmouseup onkeydown onkeypress onkeyup lt tt gt onclick ondblclick onmousedown onmousemove onmouseout onmouseover onmouseup onkeydown onkeypress onkeyup lt u gt onclick ondblclick onmousedown onmousemove onmouseout onmouseover onmouseup onkeydown onkeypress onkeyup lt ul gt onclick ondblclick onmousedown onmousemove onmouseout onmouseover onmouseup onkeydown onkeypress onkeyup lt var gt onclick ondblclick onmousedown onmousemove onmouseout onmouseover onmouseup onkeydown onkeypress onkeyup lt img gt onabort onclick ondblclick onmousedown onmousemove onmouseout onmouseover onmouseup onkeydown onkeypress onkeyup lt a gt onclick ondblclick onmousedown onmousemove onmouseout onmouseover onmouseup onkeydown onkeypress onkeyup onblur onfocus lt area gt onclick ondblclick onmousedown onmousemove onmouseout onmouseover onmouseup onkeydown onkeypress onkeyup onblur onfocus lt button gt onclick ondblclick onmousedown onmousemove onmouseout onmouseover onmouseup onkeydown onkeypress onkeyup onblur onfocus lt form gt onclick ondblclick onmousedown onmousemove onmouseout onmouseover onmouseup onkeydown onkeypress onkeyup onblur onfocus lt label gt onclick ondblclick onmousedown onmousemove onmouseout onmouseover onmouseup onkeydown onkeypress onkeyup onblur onfocus lt select gt onclick ondblclick onmousedown onmousemove onmouseout onmouseover onmouseup onkeydown onkeypress onkeyup onblur onfocus onchange lt input gt onclick ondblclick onmousedown onmousemove onmouseout onmouseover onmouseup onkeydown onkeypress onkeyup onblur onfocus onchange onselect lt textarea gt onclick ondblclick onmousedown onmousemove onmouseout onmouseover onmouseup onkeydown onkeypress onkeyup onblur onfocus onchange onselectVease tambien EditarElemento de HTMLReferencias Editar Index of the HTML 4 Attributes W3C Consultado el 13 de febrero de 2015 On SGML and HTML World Wide Web Consortium Consultado el 16 de noviembre de 2008 XHTML 1 0 Differences with HTML 4 World Wide Web Consortium Consultado el 16 de noviembre de 2008 Korpela Jukka 6 de julio de 1998 Why attribute values should always be quoted in HTML Cs tut fi Archivado desde el original el 21 de noviembre de 2008 Consultado el 16 de noviembre de 2008 Tags used in HTML World Wide Web Consortium 3 de noviembre de 1992 Consultado el 16 de noviembre de 2008 Objects Images and Applets in HTML documents World Wide Web Consortium 24 de diciembre de 1999 Consultado el 16 de noviembre de 2008 However multiple identifiers may apply to the same element in particular an element may be inside another element each having an identifier HTML id www w3schools com Consultado el 27 de abril de 2020 HTML Global id Attribute www w3schools com Consultado el 27 de abril de 2020 HTML Classes www w3schools com Consultado el 27 de abril de 2020 HTML Global class Attribute www w3schools com Consultado el 27 de abril de 2020 HTML XHTML Standard Attributes w3schools com HTML XHTML Standard Event Attributes w3schools com a b Global attributes HTML HyperText Markup Language MDN Consultado el 12 de febrero de 2015 HTML reference HTML HyperText Markup Language MDN Consultado el 13 de febrero de 2015 Datos Q5636097 Obtenido de https es wikipedia org w index php title Atributo HTML amp oldid 143681998, wikipedia, wiki, leyendo, leer, libro, biblioteca,

español

, española, descargar, gratis, descargar gratis, mp3, video, mp4, 3gp, jpg, jpeg, gif, png, imagen, música, canción, película, libro, juego, juegos