From 4b1a9203c547c019fc5398082ae19a3f3d4c3efe Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:41:15 -0500 Subject: initial commit --- files/ca/web/html/block-level_elements/index.html | 127 ++ files/ca/web/html/element/a/index.html | 531 +++++++ files/ca/web/html/element/abbr/index.html | 131 ++ files/ca/web/html/element/acronym/index.html | 125 ++ files/ca/web/html/element/address/index.html | 161 ++ files/ca/web/html/element/applet/index.html | 121 ++ files/ca/web/html/element/area/index.html | 247 ++++ files/ca/web/html/element/article/index.html | 172 +++ files/ca/web/html/element/aside/index.html | 126 ++ files/ca/web/html/element/audio/index.html | 371 +++++ files/ca/web/html/element/b/index.html | 155 ++ files/ca/web/html/element/base/index.html | 150 ++ files/ca/web/html/element/basefont/index.html | 112 ++ files/ca/web/html/element/bdi/index.html | 140 ++ files/ca/web/html/element/bdo/index.html | 152 ++ files/ca/web/html/element/bgsound/index.html | 106 ++ files/ca/web/html/element/big/index.html | 107 ++ files/ca/web/html/element/blink/index.html | 101 ++ files/ca/web/html/element/blockquote/index.html | 154 ++ files/ca/web/html/element/body/index.html | 229 +++ files/ca/web/html/element/br/index.html | 136 ++ files/ca/web/html/element/button/index.html | 345 +++++ files/ca/web/html/element/canvas/index.html | 192 +++ files/ca/web/html/element/caption/index.html | 159 ++ files/ca/web/html/element/center/index.html | 57 + files/ca/web/html/element/cite/index.html | 152 ++ files/ca/web/html/element/code/index.html | 143 ++ files/ca/web/html/element/col/index.html | 326 +++++ files/ca/web/html/element/colgroup/index.html | 333 +++++ files/ca/web/html/element/command/index.html | 156 ++ files/ca/web/html/element/content/index.html | 168 +++ files/ca/web/html/element/data/index.html | 136 ++ files/ca/web/html/element/datalist/index.html | 150 ++ files/ca/web/html/element/dd/index.html | 133 ++ files/ca/web/html/element/del/index.html | 125 ++ files/ca/web/html/element/details/index.html | 152 ++ files/ca/web/html/element/dfn/index.html | 172 +++ files/ca/web/html/element/dialog/index.html | 208 +++ files/ca/web/html/element/dir/index.html | 49 + files/ca/web/html/element/div/index.html | 138 ++ files/ca/web/html/element/dl/index.html | 214 +++ files/ca/web/html/element/dt/index.html | 131 ++ files/ca/web/html/element/element/index.html | 93 ++ files/ca/web/html/element/em/index.html | 159 ++ files/ca/web/html/element/embed/index.html | 127 ++ files/ca/web/html/element/fieldset/index.html | 414 ++++++ files/ca/web/html/element/figcaption/index.html | 126 ++ files/ca/web/html/element/figure/index.html | 219 +++ files/ca/web/html/element/font/index.html | 53 + files/ca/web/html/element/footer/index.html | 140 ++ files/ca/web/html/element/form/index.html | 252 ++++ files/ca/web/html/element/frame/index.html | 56 + files/ca/web/html/element/frameset/index.html | 45 + files/ca/web/html/element/head/index.html | 147 ++ files/ca/web/html/element/header/index.html | 141 ++ .../web/html/element/heading_elements/index.html | 183 +++ files/ca/web/html/element/hgroup/index.html | 120 ++ files/ca/web/html/element/hr/index.html | 167 +++ files/ca/web/html/element/html/index.html | 168 +++ files/ca/web/html/element/i/index.html | 157 ++ files/ca/web/html/element/iframe/index.html | 471 ++++++ files/ca/web/html/element/image/index.html | 19 + files/ca/web/html/element/img/index.html | 359 +++++ files/ca/web/html/element/index.html | 94 ++ files/ca/web/html/element/input/index.html | 1532 ++++++++++++++++++++ files/ca/web/html/element/ins/index.html | 122 ++ files/ca/web/html/element/isindex/index.html | 64 + files/ca/web/html/element/kbd/index.html | 150 ++ files/ca/web/html/element/keygen/index.html | 189 +++ files/ca/web/html/element/label/index.html | 169 +++ files/ca/web/html/element/legend/index.html | 138 ++ files/ca/web/html/element/li/index.html | 210 +++ files/ca/web/html/element/link/index.html | 428 ++++++ files/ca/web/html/element/listing/index.html | 48 + files/ca/web/html/element/main/index.html | 167 +++ files/ca/web/html/element/map/index.html | 163 +++ files/ca/web/html/element/mark/index.html | 146 ++ files/ca/web/html/element/marquee/index.html | 203 +++ files/ca/web/html/element/menu/index.html | 184 +++ files/ca/web/html/element/menuitem/index.html | 192 +++ files/ca/web/html/element/meta/index.html | 481 ++++++ files/ca/web/html/element/meter/index.html | 189 +++ files/ca/web/html/element/multicol/index.html | 21 + files/ca/web/html/element/nav/index.html | 124 ++ files/ca/web/html/element/nextid/index.html | 138 ++ files/ca/web/html/element/nobr/index.html | 30 + files/ca/web/html/element/noembed/index.html | 35 + files/ca/web/html/element/noframes/index.html | 38 + files/ca/web/html/element/noscript/index.html | 145 ++ files/ca/web/html/element/object/index.html | 196 +++ files/ca/web/html/element/ol/index.html | 277 ++++ files/ca/web/html/element/optgroup/index.html | 162 +++ files/ca/web/html/element/option/index.html | 150 ++ files/ca/web/html/element/output/index.html | 150 ++ files/ca/web/html/element/p/index.html | 148 ++ files/ca/web/html/element/param/index.html | 151 ++ files/ca/web/html/element/picture/index.html | 141 ++ files/ca/web/html/element/plaintext/index.html | 48 + files/ca/web/html/element/pre/index.html | 211 +++ files/ca/web/html/element/progress/index.html | 173 +++ files/ca/web/html/element/q/index.html | 111 ++ files/ca/web/html/element/rp/index.html | 133 ++ files/ca/web/html/element/rt/index.html | 134 ++ files/ca/web/html/element/rtc/index.html | 134 ++ files/ca/web/html/element/ruby/index.html | 120 ++ files/ca/web/html/element/s/index.html | 71 + files/ca/web/html/element/samp/index.html | 101 ++ files/ca/web/html/element/script/index.html | 255 ++++ files/ca/web/html/element/section/index.html | 173 +++ files/ca/web/html/element/select/index.html | 196 +++ files/ca/web/html/element/shadow/index.html | 164 +++ files/ca/web/html/element/small/index.html | 109 ++ files/ca/web/html/element/source/index.html | 223 +++ files/ca/web/html/element/spacer/index.html | 46 + files/ca/web/html/element/span/index.html | 160 ++ files/ca/web/html/element/strike/index.html | 51 + files/ca/web/html/element/strong/index.html | 83 ++ files/ca/web/html/element/style/index.html | 193 +++ files/ca/web/html/element/sub/index.html | 80 + files/ca/web/html/element/summary/index.html | 139 ++ files/ca/web/html/element/sup/index.html | 74 + files/ca/web/html/element/table/index.html | 442 ++++++ files/ca/web/html/element/tbody/index.html | 281 ++++ files/ca/web/html/element/td/index.html | 299 ++++ files/ca/web/html/element/template/index.html | 197 +++ files/ca/web/html/element/textarea/index.html | 182 +++ files/ca/web/html/element/tfoot/index.html | 280 ++++ files/ca/web/html/element/th/index.html | 303 ++++ files/ca/web/html/element/thead/index.html | 189 +++ files/ca/web/html/element/time/index.html | 167 +++ files/ca/web/html/element/tr/index.html | 228 +++ files/ca/web/html/element/track/index.html | 233 +++ files/ca/web/html/element/tt/index.html | 58 + files/ca/web/html/element/u/index.html | 99 ++ files/ca/web/html/element/ul/index.html | 181 +++ files/ca/web/html/element/var/index.html | 65 + files/ca/web/html/element/video/index.html | 394 +++++ files/ca/web/html/element/wbr/index.html | 112 ++ files/ca/web/html/element/xmp/index.html | 46 + .../web/html/elements_en_l\303\255nia/index.html" | 82 ++ .../html/global_attributes/accesskey/index.html | 143 ++ .../ca/web/html/global_attributes/class/index.html | 106 ++ .../global_attributes/contenteditable/index.html | 107 ++ .../html/global_attributes/contextmenu/index.html | 117 ++ .../html/global_attributes/data-_star_/index.html | 119 ++ files/ca/web/html/global_attributes/dir/index.html | 130 ++ .../html/global_attributes/draggable/index.html | 104 ++ .../web/html/global_attributes/dropzone/index.html | 99 ++ .../web/html/global_attributes/hidden/index.html | 109 ++ files/ca/web/html/global_attributes/id/index.html | 113 ++ files/ca/web/html/global_attributes/index.html | 463 ++++++ .../web/html/global_attributes/itemid/index.html | 149 ++ .../web/html/global_attributes/itemprop/index.html | 463 ++++++ .../web/html/global_attributes/itemref/index.html | 181 +++ .../html/global_attributes/itemscope/index.html | 315 ++++ .../web/html/global_attributes/itemtype/index.html | 295 ++++ .../ca/web/html/global_attributes/lang/index.html | 102 ++ .../html/global_attributes/spellcheck/index.html | 215 +++ .../ca/web/html/global_attributes/style/index.html | 107 ++ .../web/html/global_attributes/tabindex/index.html | 116 ++ .../ca/web/html/global_attributes/title/index.html | 139 ++ .../html/global_attributes/translate/index.html | 99 ++ files/ca/web/html/index.html | 106 ++ .../index.html | 29 + 164 files changed, 28630 insertions(+) create mode 100644 files/ca/web/html/block-level_elements/index.html create mode 100644 files/ca/web/html/element/a/index.html create mode 100644 files/ca/web/html/element/abbr/index.html create mode 100644 files/ca/web/html/element/acronym/index.html create mode 100644 files/ca/web/html/element/address/index.html create mode 100644 files/ca/web/html/element/applet/index.html create mode 100644 files/ca/web/html/element/area/index.html create mode 100644 files/ca/web/html/element/article/index.html create mode 100644 files/ca/web/html/element/aside/index.html create mode 100644 files/ca/web/html/element/audio/index.html create mode 100644 files/ca/web/html/element/b/index.html create mode 100644 files/ca/web/html/element/base/index.html create mode 100644 files/ca/web/html/element/basefont/index.html create mode 100644 files/ca/web/html/element/bdi/index.html create mode 100644 files/ca/web/html/element/bdo/index.html create mode 100644 files/ca/web/html/element/bgsound/index.html create mode 100644 files/ca/web/html/element/big/index.html create mode 100644 files/ca/web/html/element/blink/index.html create mode 100644 files/ca/web/html/element/blockquote/index.html create mode 100644 files/ca/web/html/element/body/index.html create mode 100644 files/ca/web/html/element/br/index.html create mode 100644 files/ca/web/html/element/button/index.html create mode 100644 files/ca/web/html/element/canvas/index.html create mode 100644 files/ca/web/html/element/caption/index.html create mode 100644 files/ca/web/html/element/center/index.html create mode 100644 files/ca/web/html/element/cite/index.html create mode 100644 files/ca/web/html/element/code/index.html create mode 100644 files/ca/web/html/element/col/index.html create mode 100644 files/ca/web/html/element/colgroup/index.html create mode 100644 files/ca/web/html/element/command/index.html create mode 100644 files/ca/web/html/element/content/index.html create mode 100644 files/ca/web/html/element/data/index.html create mode 100644 files/ca/web/html/element/datalist/index.html create mode 100644 files/ca/web/html/element/dd/index.html create mode 100644 files/ca/web/html/element/del/index.html create mode 100644 files/ca/web/html/element/details/index.html create mode 100644 files/ca/web/html/element/dfn/index.html create mode 100644 files/ca/web/html/element/dialog/index.html create mode 100644 files/ca/web/html/element/dir/index.html create mode 100644 files/ca/web/html/element/div/index.html create mode 100644 files/ca/web/html/element/dl/index.html create mode 100644 files/ca/web/html/element/dt/index.html create mode 100644 files/ca/web/html/element/element/index.html create mode 100644 files/ca/web/html/element/em/index.html create mode 100644 files/ca/web/html/element/embed/index.html create mode 100644 files/ca/web/html/element/fieldset/index.html create mode 100644 files/ca/web/html/element/figcaption/index.html create mode 100644 files/ca/web/html/element/figure/index.html create mode 100644 files/ca/web/html/element/font/index.html create mode 100644 files/ca/web/html/element/footer/index.html create mode 100644 files/ca/web/html/element/form/index.html create mode 100644 files/ca/web/html/element/frame/index.html create mode 100644 files/ca/web/html/element/frameset/index.html create mode 100644 files/ca/web/html/element/head/index.html create mode 100644 files/ca/web/html/element/header/index.html create mode 100644 files/ca/web/html/element/heading_elements/index.html create mode 100644 files/ca/web/html/element/hgroup/index.html create mode 100644 files/ca/web/html/element/hr/index.html create mode 100644 files/ca/web/html/element/html/index.html create mode 100644 files/ca/web/html/element/i/index.html create mode 100644 files/ca/web/html/element/iframe/index.html create mode 100644 files/ca/web/html/element/image/index.html create mode 100644 files/ca/web/html/element/img/index.html create mode 100644 files/ca/web/html/element/index.html create mode 100644 files/ca/web/html/element/input/index.html create mode 100644 files/ca/web/html/element/ins/index.html create mode 100644 files/ca/web/html/element/isindex/index.html create mode 100644 files/ca/web/html/element/kbd/index.html create mode 100644 files/ca/web/html/element/keygen/index.html create mode 100644 files/ca/web/html/element/label/index.html create mode 100644 files/ca/web/html/element/legend/index.html create mode 100644 files/ca/web/html/element/li/index.html create mode 100644 files/ca/web/html/element/link/index.html create mode 100644 files/ca/web/html/element/listing/index.html create mode 100644 files/ca/web/html/element/main/index.html create mode 100644 files/ca/web/html/element/map/index.html create mode 100644 files/ca/web/html/element/mark/index.html create mode 100644 files/ca/web/html/element/marquee/index.html create mode 100644 files/ca/web/html/element/menu/index.html create mode 100644 files/ca/web/html/element/menuitem/index.html create mode 100644 files/ca/web/html/element/meta/index.html create mode 100644 files/ca/web/html/element/meter/index.html create mode 100644 files/ca/web/html/element/multicol/index.html create mode 100644 files/ca/web/html/element/nav/index.html create mode 100644 files/ca/web/html/element/nextid/index.html create mode 100644 files/ca/web/html/element/nobr/index.html create mode 100644 files/ca/web/html/element/noembed/index.html create mode 100644 files/ca/web/html/element/noframes/index.html create mode 100644 files/ca/web/html/element/noscript/index.html create mode 100644 files/ca/web/html/element/object/index.html create mode 100644 files/ca/web/html/element/ol/index.html create mode 100644 files/ca/web/html/element/optgroup/index.html create mode 100644 files/ca/web/html/element/option/index.html create mode 100644 files/ca/web/html/element/output/index.html create mode 100644 files/ca/web/html/element/p/index.html create mode 100644 files/ca/web/html/element/param/index.html create mode 100644 files/ca/web/html/element/picture/index.html create mode 100644 files/ca/web/html/element/plaintext/index.html create mode 100644 files/ca/web/html/element/pre/index.html create mode 100644 files/ca/web/html/element/progress/index.html create mode 100644 files/ca/web/html/element/q/index.html create mode 100644 files/ca/web/html/element/rp/index.html create mode 100644 files/ca/web/html/element/rt/index.html create mode 100644 files/ca/web/html/element/rtc/index.html create mode 100644 files/ca/web/html/element/ruby/index.html create mode 100644 files/ca/web/html/element/s/index.html create mode 100644 files/ca/web/html/element/samp/index.html create mode 100644 files/ca/web/html/element/script/index.html create mode 100644 files/ca/web/html/element/section/index.html create mode 100644 files/ca/web/html/element/select/index.html create mode 100644 files/ca/web/html/element/shadow/index.html create mode 100644 files/ca/web/html/element/small/index.html create mode 100644 files/ca/web/html/element/source/index.html create mode 100644 files/ca/web/html/element/spacer/index.html create mode 100644 files/ca/web/html/element/span/index.html create mode 100644 files/ca/web/html/element/strike/index.html create mode 100644 files/ca/web/html/element/strong/index.html create mode 100644 files/ca/web/html/element/style/index.html create mode 100644 files/ca/web/html/element/sub/index.html create mode 100644 files/ca/web/html/element/summary/index.html create mode 100644 files/ca/web/html/element/sup/index.html create mode 100644 files/ca/web/html/element/table/index.html create mode 100644 files/ca/web/html/element/tbody/index.html create mode 100644 files/ca/web/html/element/td/index.html create mode 100644 files/ca/web/html/element/template/index.html create mode 100644 files/ca/web/html/element/textarea/index.html create mode 100644 files/ca/web/html/element/tfoot/index.html create mode 100644 files/ca/web/html/element/th/index.html create mode 100644 files/ca/web/html/element/thead/index.html create mode 100644 files/ca/web/html/element/time/index.html create mode 100644 files/ca/web/html/element/tr/index.html create mode 100644 files/ca/web/html/element/track/index.html create mode 100644 files/ca/web/html/element/tt/index.html create mode 100644 files/ca/web/html/element/u/index.html create mode 100644 files/ca/web/html/element/ul/index.html create mode 100644 files/ca/web/html/element/var/index.html create mode 100644 files/ca/web/html/element/video/index.html create mode 100644 files/ca/web/html/element/wbr/index.html create mode 100644 files/ca/web/html/element/xmp/index.html create mode 100644 "files/ca/web/html/elements_en_l\303\255nia/index.html" create mode 100644 files/ca/web/html/global_attributes/accesskey/index.html create mode 100644 files/ca/web/html/global_attributes/class/index.html create mode 100644 files/ca/web/html/global_attributes/contenteditable/index.html create mode 100644 files/ca/web/html/global_attributes/contextmenu/index.html create mode 100644 files/ca/web/html/global_attributes/data-_star_/index.html create mode 100644 files/ca/web/html/global_attributes/dir/index.html create mode 100644 files/ca/web/html/global_attributes/draggable/index.html create mode 100644 files/ca/web/html/global_attributes/dropzone/index.html create mode 100644 files/ca/web/html/global_attributes/hidden/index.html create mode 100644 files/ca/web/html/global_attributes/id/index.html create mode 100644 files/ca/web/html/global_attributes/index.html create mode 100644 files/ca/web/html/global_attributes/itemid/index.html create mode 100644 files/ca/web/html/global_attributes/itemprop/index.html create mode 100644 files/ca/web/html/global_attributes/itemref/index.html create mode 100644 files/ca/web/html/global_attributes/itemscope/index.html create mode 100644 files/ca/web/html/global_attributes/itemtype/index.html create mode 100644 files/ca/web/html/global_attributes/lang/index.html create mode 100644 files/ca/web/html/global_attributes/spellcheck/index.html create mode 100644 files/ca/web/html/global_attributes/style/index.html create mode 100644 files/ca/web/html/global_attributes/tabindex/index.html create mode 100644 files/ca/web/html/global_attributes/title/index.html create mode 100644 files/ca/web/html/global_attributes/translate/index.html create mode 100644 files/ca/web/html/index.html create mode 100644 files/ca/web/html/optimizing_your_pages_for_speculative_parsing/index.html (limited to 'files/ca/web/html') diff --git a/files/ca/web/html/block-level_elements/index.html b/files/ca/web/html/block-level_elements/index.html new file mode 100644 index 0000000000..91cfcad2de --- /dev/null +++ b/files/ca/web/html/block-level_elements/index.html @@ -0,0 +1,127 @@ +--- +title: Elements a nivell de bloc +slug: Web/HTML/Block-level_elements +translation_of: Web/HTML/Block-level_elements +--- +

Els elements HTML (HyperText Markup Language) són normalment elements "en bloc" o elements "en línia". Un element en bloc ocupa tot l'espai del seu element pare (contenidor), creant així un "bloc". Aquest article ajuda a explicar el que això significa.

+ +

Els navegadors solen mostrar l'element a nivell de bloc amb un salt de línia abans i després de l'element. Es pot visualitzar com una pila de caixes. El següent exemple demostra la influència de l'element en bloc:

+ +

Elements en Bloc

+ +

HTML

+ +
<p>This paragraph is a block-level element; its background has been colored to display the paragraph's parent element.</p>
+ +

CSS

+ +
p { background-color: #8ABB55; }
+
+ +

{{ EmbedLiveSample('Block-level_Example') }}

+ +

Ús

+ + + +

En bloc vs. En línia

+ +

Hi ha un parell de diferències clau entre els elements en bloc i els elements en línia:

+ +
+
Formateig
+
Per defecte, els elements de bloc comencen en línies noves, però els elements en línia poden començar en qualsevol part d'una línia.
+
Model de contingut
+
En general, els elements de bloc poden contenir elements en línia i altres elements en bloc. Inherent a aquesta distinció estructural és la idea que els elements de bloc creen estructures "més gran" que els elements en línia.
+
+ +

La distinció entre els elements en bloc vs. línia s'utilitza en les especificacions d'HTML fins 4.01. En HTML5, aquesta distinció binària se substitueix amb un conjunt més complex de categories de contingut. La categoria "en bloc" correspon aproximadament a la categoria de contingut dinàmic en HTML 5, mentre que "en línia" es correspon amb el contingut fraseig, però hi ha categories addicionals.

+ +

Elements

+ +

La següent és una llista completa de tots els elements HTML de bloc (encara que "a nivell de bloc" no es defineix tècnicament per als elements que són nous en HTML5).

+ +
+
+
{{ HTMLElement("address") }}
+
Informació de contacte
+
{{ HTMLElement("article") }} {{ HTMLVersionInline(5) }}
+
Contingut Article.
+
{{ HTMLElement("aside") }} {{ HTMLVersionInline(5) }}
+
Contingut  Aside.
+
{{ HTMLElement("blockquote") }}
+
Cita extensa ("bloc").
+
{{ HTMLElement("br") }}
+
Salt de línia.
+
{{ HTMLElement("canvas") }} {{ HTMLVersionInline(5) }}
+
Gràfic canvas.
+
{{ HTMLElement("dd") }}
+
Descripció Definició.
+
{{ HTMLElement("div") }}
+
Divisió document.
+
{{ HTMLElement("dl") }}
+
Llista de definicions.
+
{{ HTMLElement("fieldset") }}
+
Etiquetes de camp.
+
+ +
+
{{ HTMLElement("figcaption") }} {{ HTMLVersionInline(5) }}
+
Llegenda de la imatge.
+
{{ HTMLElement("figure") }} {{ HTMLVersionInline(5) }}
+
Contingut multimèdia, grups amb una llegenda (veure {{ HTMLElement("figcaption") }}).
+
{{ HTMLElement("footer") }} {{ HTMLVersionInline(5) }}
+
Secció o peu de pàgina.
+
{{ HTMLElement("form") }}
+
Formulari d'entrada.
+
{{ HTMLElement("h1") }}, {{ HTMLElement("h2") }}, {{ HTMLElement("h3") }}, {{ HTMLElement("h4") }}, {{ HTMLElement("h5") }}, {{ HTMLElement("h6") }}
+
Nivells de capçalera 1-6.
+
{{ HTMLElement("header") }} {{ HTMLVersionInline(5) }}
+
Secció o encapçalament de pàgina.
+
{{ HTMLElement("hgroup") }} {{ HTMLVersionInline(5) }}
+
+
+
Informació de capçalera de grups.
+
+
+
{{ HTMLElement("hr") }}
+
Regla horitzontal (línia divisòria).
+
{{ HTMLElement("li") }}
+
Element de la llista..
+
{{ HTMLElement("main") }}
+
Conté el contingut central únic per aquest document.
+
{{ HTMLElement("nav") }}
+
Conté enllaços de navegació.
+
+ +
+
{{ HTMLElement("noscript") }}
+
Contingut d'ùs si scripting no és compatible o apagat.
+
{{ HTMLElement("ol") }}
+
Llista ordenada.
+
{{ HTMLElement("output") }} {{ HTMLVersionInline(5) }}
+
Formulari de sortida.
+
{{ HTMLElement("p") }}
+
Paràgraf.
+
{{ HTMLElement("pre") }}
+
Text amb format predefinit.
+
{{ HTMLElement("section") }} {{ HTMLVersionInline(5) }}
+
Secció d'una pàgina web.
+
{{ HTMLElement("table") }}
+
Taula.
+
{{ HTMLElement("tfoot") }}
+
Peu de pàgina de la taula.
+
{{ HTMLElement("ul") }}
+
Llista desordenada.
+
{{ HTMLElement("video") }} {{ HTMLVersionInline(5) }}
+
Reproductor de vídeo.
+
+
+ +

Veure

+ + diff --git a/files/ca/web/html/element/a/index.html b/files/ca/web/html/element/a/index.html new file mode 100644 index 0000000000..be0d62e025 --- /dev/null +++ b/files/ca/web/html/element/a/index.html @@ -0,0 +1,531 @@ +--- +title: +slug: Web/HTML/Element/a +translation_of: Web/HTML/Element/a +--- +

The HTML Anchor Element (<a>) defines a hyperlink to a location on the same page or any other page on the Web. It can also be used (in an obsolete way) to create an anchor point—a destination for hyperlinks within the content of a page, so that links aren't limited to connecting simply to the top of a page.

+ +
<a href="https://developer.mozilla.org">MDN</a>
+
+ +
+ +

Atributs

+ +

Aquest element només inclou els atributs globals.

+ +
+
{{htmlattrdef("download")}} {{HTMLVersionInline(5)}}
+
This attribute, if present, indicates that the author intends the hyperlink to be used for downloading a resource so that when the user clicks on the link they will be prompted to save it as a local file. If the attribute has a value, the value will be used as the pre-filled file name in the Save prompt that opens when the user clicks on the link (the user can change the name before actually saving the file of course). There are no restrictions on allowed values (though / and \ will be converted to underscores, preventing specific path hints), but you should consider that most file systems have limitations with regard to what punctuation is supported in file names, and browsers are likely to adjust file names accordingly. +
+

Note:

+ +
    +
  • Can be used with blob: URLs and data: URLs, to make it easy for users to download content that is generated programmatically using JavaScript (e.g. a picture created using an online drawing Web app.
  • +
  • If the HTTP header Content-Disposition: is present and gives a different filename than this attribute, the HTTP header has priority over this attribute.
  • +
  • If this attribute is present and Content-Disposition: is set to inline, Firefox gives priority to Content-Disposition, like for the filename case, while Chrome gives priority to the download attribute.
  • +
  • This attribute is only honored for links to resources with the same-origin.
  • +
+
+
+
{{htmlattrdef("href")}}
+
This was the single required attribute for anchors defining a hypertext source link, but the attribute may now be omitted (as of HTML5) in order to create a placeholder link. A placeholder link presents itself like a traditional hyperlink but when activated does not result in redirection to a new page or a sub-section of the same document. The href is still required when specifying a link target, either a URL or a URL fragment. A URL fragment is a name preceded by a hash mark (#), which specifies an internal target location (an ID of an HTML element) within the current document. URLs are not restricted to Web (HTTP)-based documents. URLs might use any protocol supported by the browser. For example, file, ftp, and mailto work in most user agents. +
+

Note: You can use the special fragment "top" to create a link back to the top of the page; for example href="#top">Return to top. This behavior is specified by HTML5.

+
+
+
{{htmlattrdef("hreflang")}}
+
This attribute indicates the language of the linked resource. It is purely advisory. Allowed values are determined by BCP47 for HTML5 and by RFC1766 for HTML4. Use this attribute only if the {{htmlattrxref("href", "a")}} attribute is present.
+
{{htmlattrdef("ping")}} {{HTMLVersionInline(5)}}
+
The 'ping' attribute, if present, sends the URLs of the resources a notification/ping if the user follows the hyperlink.
+
{{htmlattrdef("referrerpolicy")}} {{experimental_inline}}
+
A string indicating which referrer to use when fetching the resource: +
    +
  • 'no-referrer' meaning that the Referer: header will not be sent.
  • +
  • 'no-referrer-when-downgrade' meaning that no Referer: header will be sent when navigating to an origin without TLS (HTTPS). This is a user agent’s default behavior, if no policy is otherwise specified.
  • +
  • 'origin' meaning that the referrer will be the origin of the page, that is roughly the scheme, the host and the port.
  • +
  • 'origin-when-cross-origin' meaning that navigations to other origins will be limited to the scheme, the host and the port, while navigations on the same origin will include the referrer's path.
  • +
  • 'unsafe-url' meaning that the referrer will include the origin and the path (but not the fragment, password, or username). This case is unsafe because it can leak origins and paths from TLS-protected resources to insecure origins.
  • +
+
+
{{htmlattrdef("rel")}}
+
For anchors containing the href attribute, this attribute specifies the relationship of the target object to the link object. The value is a space-separated list of link types values. The values and their semantics will be registered by some authority that might have meaning to the document author. The default relationship, if no other is given, is void. Use this attribute only if the href attribute is present.
+
{{htmlattrdef("target")}}
+
This attribute specifies where to display the linked resource. In HTML4, this is the name of, or a keyword for, a frame. In HTML5, it is a name of, or keyword for, a browsing context (for example, tab, window, or inline frame). The following keywords have special meanings: +
    +
  • _self: Load the response into the same HTML4 frame (or HTML5 browsing context) as the current one. This value is the default if the attribute is not specified.
  • +
  • _blank: Load the response into a new unnamed HTML4 window or HTML5 browsing context.
  • +
  • _parent: Load the response into the HTML4 frameset parent of the current frame or HTML5 parent browsing context of the current one. If there is no parent, this option behaves the same way as _self.
  • +
  • _top: In HTML4: Load the response into the full, original window, canceling all other frames. In HTML5: Load the response into the top-level browsing context (that is, the browsing context that is an ancestor of the current one, and has no parent). If there is no parent, this option behaves the same way as _self.
  • +
+ Use this attribute only if the href attribute is present. + +
+

Note: When using target you should consider adding rel="noopener noreferrer" to avoid exploitation of the window.opener API.

+
+
+
{{htmlattrdef("type")}}
+
This attribute specifies the media type in the form of a {{Glossary("MIME type")}} for the link target. Generally, this is provided strictly as advisory information; however, in the future a browser might add a small icon for multimedia types. For example, a browser might add a small speaker icon when type is set to audio/wav. For a complete list of recognized MIME types, see http://www.w3.org/TR/html4/references.html#ref-MIMETYPES. Use this attribute only if the href attribute is present.
+
+ +

Obsolete

+ +
+
{{htmlattrdef("charset")}} {{obsoleteGeneric("inline","HTML5")}}
+
This attribute defines the character encoding of the linked resource. The value is a space- and/or comma-delimited list of character sets as defined in RFC 2045. The default value is ISO-8859-1. +
+

Usage note: This attribute is obsolete in HTML5 and should not be used by authors. To achieve its effect, use the HTTP Content-Type header on the linked resource.

+
+
+
{{htmlattrdef("coords")}} {{HTMLVersionInline(4)}} only, {{obsoleteGeneric("inline","HTML5")}}
+
For use with object shapes, this attribute uses a comma-separated list of numbers to define the coordinates of the object on the page. +
+
{{htmlattrdef("name")}} {{HTMLVersionInline(4)}} only, {{obsoleteGeneric("inline","HTML5")}}
+
This attribute is required in an anchor defining a target location within a page. A value for name is similar to a value for the id core attribute and should be an alphanumeric identifier unique to the document. Under the HTML 4.01 specification, id and name both can be used with the element as long as they have identical values. +
+

Usage note: This attribute is obsolete in HTML5, use global attribute id instead.

+
+
+
{{htmlattrdef("rev")}} {{HTMLVersionInline(4)}} only, {{obsoleteGeneric("inline","HTML5")}}
+
This attribute specifies a reverse link, the inverse relationship of the rel attribute. It is useful for indicating where an object came from, such as the author of a document.
+
{{htmlattrdef("shape")}} {{HTMLVersionInline(4)}} only, {{obsoleteGeneric("inline","HTML5")}}
+
This attribute is used to define a selectable region for hypertext source links associated with a figure to create an image map. The values for the attribute are circle, default, polygon, and rect. The format of the coords attribute depends on the value of shape. For circle, the value is x,y,r where x and y are the pixel coordinates for the center of the circle and r is the radius value in pixels. For rect, the coords attribute should be x,y,w,h. The x,y values define the upper-left-hand corner of the rectangle, while w and h define the width and height respectively. A value of polygon for shape requires x1,y1,x2,y2,... values for coords. Each of the x,y pairs defines a point in the polygon, with successive points being joined by straight lines and the last point joined to the first. The value default for shape requires that the entire enclosed area, typically an image, be used. +
+

Note: It is advisable to use the usemap attribute for the {{HTMLElement("img")}} element and the associated {{HTMLElement("map")}} element to define hotspots instead of the shape attribute.

+
+
+
+ +

Non standard

+ + + + + + + + + + + + + + + + + + + + + + + + + + +
+
{{htmlattrdef("datafld")}} {{Non-standard_inline}}
+
This attribute specifies the column name from that data source object that supplies the bound data. + + + + + + + + + + + + + + + + + + + + + + +
SupportGeckoPrestoWebKitTrident
Not implementedNot implementedNot implementedIE4, IE5, IE6, IE7 (Removed in IE8)
Normative documentMicrosoft's Data Binding: dataFld Property (MSDN)
+
+
{{htmlattrdef("datasrc")}} {{Non-standard_inline}}
+
This attribute indicates the ID of the data source object that supplies the data that is bound to this element. +
+

Usage note: This attribute is non-standard and should not be used by authors. To achieve its effect, use scripting and a mechanism such as XMLHttpRequest to populate the page dynamically.

+
+ + + + + + + + + + + + + + + + + + + + + +
SupportGeckoPrestoWebKitTrident
Not implementedNot implementedNot implementedIE4, IE5, IE6, IE7 (Removed in IE8)
Normative documentMicrosoft's Data Binding: dataSrc Property (MSDN)
+
+
{{htmlattrdef("hreflang")}}
+
This attribute indicates the language of the linked resource. It is purely advisory. Allowed values are determined by BCP47 for HTML5 and by RFC1766 for HTML4. Use this attribute only if the {{htmlattrxref("href", "a")}} attribute is present.
+
{{htmlattrdef("methods")}} {{Non-standard_inline}}
+
The value of this attribute provides information about the functions that might be performed on an object. The values generally are given by the HTTP protocol when it is used, but it might (for similar reasons as for the title attribute) be useful to include advisory information in advance in the link. For example, the browser might choose a different rendering of a link as a function of the methods specified; something that is searchable might get a different icon, or an outside link might render with an indication of leaving the current site. This attribute is not well understood nor supported, even by the defining browser, Internet Explorer 4. Methods Property (MSDN)
+
{{htmlattrdef("name")}} {{HTMLVersionInline(4)}} only, {{obsoleteGeneric("inline","HTML5")}}
+
This attribute is required in an anchor defining a target location within a page. A value for name is similar to a value for the id core attribute and should be an alphanumeric identifier unique to the document. Under the HTML 4.01 specification, id and name both can be used with the <a> element as long as they have identical values. +
+

Usage note: This attribute is obsolete in HTML5, use global attribute id instead.

+
+
+
{{htmlattrdef("rev")}} {{HTMLVersionInline(4)}} only, {{obsoleteGeneric("inline","HTML5")}}
+
This attribute specifies a reverse link, the inverse relationship of the rel attribute. It is useful for indicating where an object came from, such as the author of a document.
+
+ +
+
{{htmlattrdef("shape")}} {{HTMLVersionInline(4)}} only, {{obsoleteGeneric("inline","HTML5")}}
+
This attribute is used to define a selectable region for hypertext source links associated with a figure to create an image map. The values for the attribute are circle, default, polygon, and rect. The format of the coords attribute depends on the value of shape. For circle, the value is x,y,r where x and y are the pixel coordinates for the center of the circle and r is the radius value in pixels. For rect, the coords attribute should be x,y,w,h. The x,y values define the upper-left-hand corner of the rectangle, while w and h define the width and height respectively. A value of polygon for shape requires x1,y1,x2,y2,... values for coords. Each of the x,y pairs defines a point in the polygon, with successive points being joined by straight lines and the last point joined to the first. The value default for shape requires that the entire enclosed area, typically an image, be used. +
Note: It is advisable to use the usemap attribute for the {{HTMLElement("img")}} element and the associated {{HTMLElement("map")}} element to define hotspots instead of the shape attribute.
+
+
{{htmlattrdef("type")}}
+
This attribute specifies the media type in the form of a MIME type for the link target. Generally, this is provided strictly as advisory information; however, in the future a browser might add a small icon for multimedia types. For example, a browser might add a small speaker icon when type is set to audio/wav. For a complete list of recognized MIME types, see http://www.w3.org/TR/html4/references.html#ref-MIMETYPES. Use this attribute only if the href attribute is present.
+
{{htmlattrdef("urn")}} {{Non-standard_inline}}
+
This supposedly Microsoft-supported attribute relates a uniform resource name (URN) with the link. While it is based on standards work years back, the meaning of URNs is still not well defined, so this attribute is meaningless. urn Property (MSDN)
+
+ +

Examples

+ +

Linking to an external location

+ +
<!-- anchor linking to external file -->
+<a href="http://www.mozilla.com/">
+External Link
+</a>
+
+ +

Result

+ +

External Link

+ +

Linking to another section on the same page

+ +
<!-- anchor link to section on this page named id="attr-href" -->
+<a href="#attr-href">
+Description of Same-Page Links
+</a>
+
+ +

Result

+ +

Description of Same Page Links

+ +

Creating a clickable image

+ +

This small example use an image to link to the MDN home page. The home page will open in a new browsing context, that is a new page or a new tab.

+ +
<a href="https://developer.mozilla.org/en-US/" target="_blank">
+  <img src="https://mdn.mozillademos.org/files/6851/mdn_logo.png" alt="MDN logo" />
+</a>
+
+ +

Result

+ +
+

{{EmbedLiveSample("Example.3A_Creating_a_clickable_image", "320", "64")}}

+
+ + + +

It's common to create buttons or links that will open in the user's email program to allow them to send a new message. This is done by using a mailto link. Here's a simple example:

+ +
<a href="mailto:nowhere@mozilla.org">Send email to nowhere</a>
+ +

This results in a link that looks like this: Send email to nowhere.

+ +

For additional details about the mailto URL scheme, such as how to include the subject, body, or other predetermined content, see Email links or {{RFC(6068)}}.

+ + + +

With phones viewing web documents and laptops being connected to phones offering clickable phone links becomes increasingly helpful.

+ +
<a href="tel:+491570156">+49 157 0156;/a>
+
+ +

For additional details about the tel URL scheme, see {{RFC(2806)}} and {{RFC(2396)}}.

+ +

Using the download attribute to save a canvas as a PNG

+ +

If you want to allow a user to download an HTML Canvas as an image you can create a link with a download attribute and the canvas data as a file URL:

+ +
var link = document.createElement('a');
+link.innerHTML = 'download image';
+link.addEventListener('click', function(ev) {
+    link.href = canvas.toDataURL();
+    link.download = "mypainting.png";
+}, false);
+document.body.appendChild(link);
+ +

You can see this in action http://jsfiddle.net/codepo8/V6ufG/2/

+ +

Especificacions

+ + + + + + + + + + + + + + + + + + + + + + + + + + +
EspecificacióEstatComentari
{{SpecName('HTML WHATWG', 'text-level-semantics.html#the-a-element', '<a>')}}{{Spec2('HTML WHATWG')}} 
{{SpecName('HTML5 W3C', 'text-level-semantics.html#the-a-element', '<a>')}}{{Spec2('HTML5 W3C')}} 
{{SpecName('HTML4.01', 'struct/links.html#h-12.2', '<a>')}}{{Spec2('HTML4.01')}} 
+ + + +

{{CompatibilityTable}}

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
CaracterísticaChromeFirefox (Gecko)Internet ExplorerOperaSafari
Suport bàsic{{CompatVersionUnknown}}{{CompatGeckoDesktop("1.0")}} [1]{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}
href="#top"{{CompatVersionUnknown}}{{CompatGeckoDesktop("10.0")}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}
download{{CompatChrome("14")}}{{CompatGeckoDesktop("20.0")}}Edge 13 [5]{{CompatOpera("15")}}{{CompatNo}}
ping{{CompatVersionUnknown}}{{CompatNo}} [2]{{CompatNo}}{{CompatVersionUnknown}}{{CompatNo}}
referrerpolicy{{CompatChrome(46.0)}} [3]{{CompatGeckoDesktop("45")}} [4]{{CompatNo}}{{CompatNo}}{{CompatNo}}
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
CaracterísticaAndroidAndroid WebviewFirefox Mobile (Gecko)IE MobileOpera MobileSafari MobileChrome for Android
Suport bàsic{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatGeckoMobile("1.0")}} [1]{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}
href="#top"{{CompatVersionUnknown}}{{CompatUnknown}}{{CompatGeckoMobile("10.0")}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatUnknown}}
download{{CompatVersionUnknown}}{{CompatUnknown}}{{CompatGeckoMobile("20.0")}}{{CompatNo}}{{CompatUnknown}}{{CompatNo}}{{CompatUnknown}}
ping{{CompatUnknown}}{{CompatUnknown}}{{CompatNo}} [2]{{CompatUnknown}}{{CompatUnknown}}{{CompatUnknown}}{{CompatUnknown}}
referrerpolicy{{CompatNo}}{{CompatChrome(46.0)}} [3]{{CompatGeckoMobile("45.0")}} [4]{{CompatNo}}{{CompatNo}}{{CompatNo}}{{CompatChrome(46.0)}} [3]
+
+ +

[1] Starting from Gecko 41 {{geckoRelease("41.0")}}, {{HTMLElement("a")}} without href attribute is no more classified as interactive content. Clicking it inside {{HTMLElement("label")}} will activate labelled content ({{bug(1167816)}}).

+ +

[2] Disabled by default

+ +

[3] Implemented behind a flag.

+ +

[4] Attempting to download data URIs causes Edge to crash until v14.14357.

+ +

Clicking and focus

+ +

Whether clicking on an {{HTMLElement("a")}} causes it to (by default) become focused varies by browser and OS.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Does clicking on an {{HTMLElement("a")}} give it the focus?
Navegadors d'escriptoriWindows 8.1OS X 10.9
Firefox 30.0
Chrome ≥39
+ (Chromium bug 388666)
Safari 7.0.5N/ANomés quan tabindex està definit
Internet Explorer 11N/A
Presto (Opera 12)
+ + + + + + + + + + + + + + + + + + + + +
Does tapping on an {{HTMLElement("a")}} give it the focus?
Mobile BrowsersiOS 7.1.2Android 4.4.4
Safari MobileNomés quan tabindex està definitN/A
Chrome 35???Només quan tabindex està definit
+ +

Notes

+ +

The following are reserved browser key bindings for the two major browsers and should not be used as values to accesskey: a, c, e, f, g, h, v, left arrow, and right arrow.

+ +

HTML 3.2 defineix només name, href, rel, rev, i title.

+ +

L'atribut target no està definit en navegadors que no suporten frames, com ara la generació de navegadors Netscape 1. Furthermore, target is not allowed under strict variants of XHTML but is limited to frameset or transitional forms.

+ +

Recomanacions per JavaScript

+ +

It is often the case that an anchor tag is used with the onclick event. In order to prevent the page from refreshing, href is often set to either "#" or "javascript:void(0)". Both of these values can lead to some unexpected errors when copying links and opening links in a new tab and/or window. Be aware of this for usability reasons, and when users do use anchor tags and you prevent default behavior.

+ +

Veure

+ + + +
{{HTMLRef}}
diff --git a/files/ca/web/html/element/abbr/index.html b/files/ca/web/html/element/abbr/index.html new file mode 100644 index 0000000000..8086ac2a23 --- /dev/null +++ b/files/ca/web/html/element/abbr/index.html @@ -0,0 +1,131 @@ +--- +title: +slug: Web/HTML/Element/abbr +translation_of: Web/HTML/Element/abbr +--- +

Resum

+ +

L'element HTML <abbr>  (de l'Anglès Abbreviation Element) representa una abreviació i opcionalment en proveeix una descripció completa. en cas de ser-hi present, l'atribut title ha de contenir la descripció completa i res més.

+ +

<p>I do <abbr title="Hypertext Markup Language">HTML</abbr></p>

+ +
 
+ +

Vegeu més exemples en detall en l'article How to mark abbreviations and make them understandable.

+ + + +

Atributs

+ +

Aquest element només inclou els atributs globals.

+ +

Fer servir l'atribut {{htmlattrxref("title")}} per definir la descripció completa de la descripció de l'abreviació. Molts agents d'usuaris presenten això com un suggeriment.

+ +
+

Nota d'ús: En llengües amb nombres gramaticals (especialment les llengües amb més de dos nombres, com l'Àrab), utilitzeu el mateix nombre gramatical en el vostre atribut  title com dins del vostre element <abbr> .

+
+ +

Especificacions

+ + + + + + + + + + + + + + + + + + + + + + + + + + +
EspecificacióEstatComentaris
{{SpecName('HTML WHATWG', 'text-level-semantics.html#the-abbr-element', '<abbr>')}}{{Spec2('HTML WHATWG')}} 
{{SpecName('HTML5 W3C', 'text-level-semantics.html#the-abbr-element', '<abbr>')}}{{Spec2('HTML5 W3C')}} 
{{SpecName('HTML4.01', 'struct/text.html#edef-ABBR', '<abbr>')}}{{Spec2('HTML4.01')}} 
+ +

Compatibilitat amb navegadors

+ +

{{CompatibilityTable}}

+ +
+ + + + + + + + + + + + + + + + + + + +
CaracterísticaChromeFirefox (Gecko)Internet ExplorerOperaSafari
Basic support2.0{{CompatGeckoDesktop(1.0)}}7.01.3{{CompatVersionUnknown}}
+
+ +
+ + + + + + + + + + + + + + + + + + + +
CaracterísticaAndroidFirefox Mobile (Gecko)IE MobileOpera MobileSafari Mobile
Basic support{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}
+
+ +

 

+ +

Estil per defecte

+ +

L'objectiu d'aquest element és purament per la conveniència del autor i que tots els navegadors ho mostrin en línia ({{cssxref('display')}}: inline) per defecte, tot i que els estils per defectes varien d'un navegador a un altre:

+ + + +

Vegeu també

+ + + +
{{HTMLRef}}
diff --git a/files/ca/web/html/element/acronym/index.html b/files/ca/web/html/element/acronym/index.html new file mode 100644 index 0000000000..5101ea266d --- /dev/null +++ b/files/ca/web/html/element/acronym/index.html @@ -0,0 +1,125 @@ +--- +title: +slug: Web/HTML/Element/acronym +tags: + - Element + - HTML + - 'HTML:Flow content' + - Obsolete + - Reference + - Web +translation_of: Web/HTML/Element/acronym +--- +
{{obsolete_header}}
+ +

Sumari

+ +

L'element HTML acrònim  (<acronym>) permet als autors indicar clarament una seqüència de caràcters que componen un acrònim o l'abreviatura d'una paraula. Aquest element s'ha eliminat en HTML5. Utilitzar l'element {{HTMLElement("abbr")}}.

+ +
+

Nota d'ùs: Aquest element s'ha eliminat en HTML5 i no s'ha d'utilitzar més. En lloc d'això els desenvolupadors web han d'utilitzar l'element {{HTMLElement("abbr")}}.

+
+ +

Atributs

+ +

Aquest element només atributs globals  que és comú a tots els elements.

+ +

Interfície DOM

+ +

Aquest element implementa la interície {{domxref('HTMLElement')}}.

+ +
Nota d'implementació: Fins Gecko 1.9.2 inclosos, Firefox implementa per a aquest element la interfície {{domxref('HTMLSpanElement')}}.
+ +

Exemple

+ +
<p>The <acronym title="World Wide Web">WWW</acronym> is only a component of the Internet.</p>
+
+ +

Estil per defecte

+ +

Encara que el propòsit d'aquesta etiqueta és purament per a la comoditat de l'autor, el seu estil per defecte varia d'un navegador a un altre:

+ +
    +
  • Alguns navegadors, com Internet Explorer, no té un estil diferent que un element {{HTMLElement("span")}} .
  • +
  • Opera, Firefox,Chrome i alguns altres afegeixen un subratllat de punts amb el contingut de l'element.
  • +
  • Uns navegadors no només afegeixen un subratllat de punts, sinó que també ho posen en versals; per evitar aquest estil, afegeixen alguna cosa com {{cssxref('font-variant')}}: none on el CSS s'encarregue d'aquest cas.
  • +
+ +

Per tant, es recomana encaridament que els autors web no confien  totalment en l'estil predeterminat.

+ +

Especificacions

+ + + + + + + + + + + + + + + + +
EspecificacióEstatComentari
{{SpecName('HTML4.01', 'struct/text.html#edef-ACRONYM', '<acronym>')}}{{Spec2('HTML4.01')}} 
+ +

Navegadors compatibles

+ +

{{CompatibilityTable}}

+ +
+ + + + + + + + + + + + + + + + + + + +
CaracterísticaChromeFirefox (Gecko)Internet ExplorerOperaSafari (WebKit)
Suport bàsic{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}
+
+ +
+ + + + + + + + + + + + + + + + + + + +
CaracterísticaAndroidFirefox Mobile (Gecko)IE PhoneOpera MobileSafari Mobile
Suport bàsic{{CompatNo}}{{CompatUnknown}}{{CompatUnknown}}{{CompatUnknown}}{{CompatNo}}
+
+ +

Veure

+ +
    +
  • L'element HTML {{HTMLElement("abbr")}}
  • +
+ +
{{HTMLRef}}
diff --git a/files/ca/web/html/element/address/index.html b/files/ca/web/html/element/address/index.html new file mode 100644 index 0000000000..c583f49925 --- /dev/null +++ b/files/ca/web/html/element/address/index.html @@ -0,0 +1,161 @@ +--- +title:
+slug: Web/HTML/Element/address +tags: + - Element + - HTML + - HTML sections + - Refrència + - Web +translation_of: Web/HTML/Element/address +--- +

{{HTMLRef}}

+ +

L'element HTML <address> proporciona informació de contacte per el seu element mes proper {{HTMLElement("article")}} o ancestre {{HTMLElement("body")}} ; en aquest últim cas, s'aplica a tot el document.

+ +
+

Nota d'us:

+ +
    +
  • Per representar una adreça arbitrària, que no està relacionada amb la informació de contacte, utilitzar un element {{HTMLElement("p")}} en lloc de l'element <address>.
  • +
  • Aquest element no ha de contenir més informació que la informació de contacte, com una data de publicació (que pertany a un element {{HTMLElement("time")}}).
  • +
  • Normalment, un element <address> pot ser col·locat dins de l'element {{HTMLElement("footer")}} de la secció actual, si n'hi ha.
  • +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
Categories de contingutContingut de flux , contingut palpable.
Contingut permèsContingut de flux, pero sense cap element <address> niu, sense continguts de capaçalera ({{HTMLElement("hgroup")}}, {{HTMLElement("h1")}}, {{HTMLElement("h2")}}, {{HTMLElement("h3")}}, {{HTMLElement("h4")}}, {{HTMLElement("h5")}}, {{HTMLElement("h6")}}), sense continguts de secció ({{HTMLElement("article")}}, {{HTMLElement("aside")}}, {{HTMLElement("section")}}, {{HTMLElement("nav")}}), i sense elements {{HTMLElement("header")}} o {{HTMLElement("footer")}}.
Omissió de l'etiqueta{{no_tag_omission}}
Elements pares permesosQualsevol element que accepti Contingut de flux.
Interfície DOM{{domxref("HTMLElement")}} Abans de Gecko 2.0 (Firefox 4), Gecko implementa aquest element utilitzant la interficie {{domxref("HTMLSpanElement")}}
+ +

Atributs

+ +

Aquest element només inclou els atributs globals.

+ +

Exemple

+ +
  <address>
+    You can contact author at <a href="http://www.somedomain.com/contact">www.somedomain.com</a>.<br>
+    If you see any bugs, please <a href="mailto:webmaster@somedomain.com">contact webmaster</a>.<br>
+    You may also want to visit us:<br>
+    Mozilla Foundation<br>
+    1981 Landings Drive<br>
+    Building K<br>
+    Mountain View, CA 94043-0801<br>
+    USA
+  </address>
+
+ +

Resultat del codi HTML:

+ +

Image:HTML-address.png

+ +

Encara que l'element address representa el text amb el mateix estil predeterminat com els elements {{HTMLElement("i")}} o {{HTMLElement("em")}}, és més apropiat utilitzar-la quan es tracta d'informació de contacte, ja que transmet la informació semàntica addicional.

+ +

Especificacions

+ + + + + + + + + + + + + + + + + + + + + + + + + + +
EspecificacióEstatComentari
{{SpecName('HTML WHATWG', 'sections.html#the-address-element', '<address>')}}{{Spec2('HTML WHATWG')}} 
{{SpecName('HTML5 W3C', 'sections.html#the-address-element', '<address>')}}{{Spec2('HTML5 W3C')}} 
{{SpecName('HTML4.01', 'struct/global.html#h-7.5.6', '<address>')}}{{Spec2('HTML4.01')}} 
+ + + +

{{CompatibilityTable}}

+ +
+ + + + + + + + + + + + + + + + + + + +
CaracterísticaChromeFirefox (Gecko)Internet ExplorerOperaSafari
Suport bàsic{{CompatVersionUnknown}}{{CompatGeckoDesktop("1.7")}}1.05.121.0
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
CaracterísticaAndroidFirefox Mobile (Gecko)IE MobileOpera MiniOpera MobileSafari Mobile
Suport bàsic{{CompatVersionUnknown}}{{CompatGeckoMobile("1.7")}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}
+
+ +

Veure

+ +
    +
  • Altres elements relacionats amb la secció: {{HTMLElement("body")}}, {{HTMLElement("nav")}}, {{HTMLElement("article")}}, {{HTMLElement("aside")}}, {{HTMLElement("h1")}}, {{HTMLElement("h2")}}, {{HTMLElement("h3")}}, {{HTMLElement("h4")}}, {{HTMLElement("h5")}}, {{HTMLElement("h6")}}, {{HTMLElement("hgroup")}}, {{HTMLElement("footer")}}, {{HTMLElement("section")}}, {{HTMLElement("header")}};
  • +
  • Seccions i línies generals d'un document HTML5.
  • +
diff --git a/files/ca/web/html/element/applet/index.html b/files/ca/web/html/element/applet/index.html new file mode 100644 index 0000000000..f46b9a3d63 --- /dev/null +++ b/files/ca/web/html/element/applet/index.html @@ -0,0 +1,121 @@ +--- +title: +slug: Web/HTML/Element/applet +tags: + - Element + - HTML + - Obsolete + - Reference + - Web +translation_of: Web/HTML/Element/applet +--- +
{{obsolete_header}}
+ +

Sumari

+ +

L'element HTML Applet (<applet>) identifica la inclusió d'un applet de Java .

+ +
+

Nota d'ùs: Aquest element s'ha eliminat en HTML5 i no s'ha d'utilitzar més. En lloc d'això els desenvolupadors web han d'utilitzar l'element més genèric {{HTMLElement("object")}}.

+
+ +

Atributs

+ +
+
{{htmlattrdef("align")}}
+
Aquest atribut s'utilitza per posicionar l'applet a la pàgina en relació amb el contingut que podria fluir al seu voltant. L'especificació HTML 4.01 defineix els valors bottom, left, middle, right i top, mentre que Microsoft i Netscape també podrien donar suport absbottom, absmiddle, baseline, center i texttop.
+
{{htmlattrdef("alt")}}
+
Aquest atribut fa que un text descriptiu alternatiu es mostri en els navegadors que no suporten Java. Els dissenyadors de pàgines també han de recordar que el contingut inclòs dins de l'element <applet> també pot traduir-se com a text alternatiu.
+
{{htmlattrdef("archive")}}
+
Aquest atribut es refereix a una versió arxivada o comprimida de l'applet i els seus arxius de classes associats, el que podria ajudar a reduir el temps de descàrrega.
+
{{htmlattrdef("code")}}
+
Aquest atribut especifica la URL de l'arxiu de classe de l'applet per a ser carregat i executat. Els noms d'arxiu de l'applet s'identifiquen per una extensió d'arxiu .class. La direcció URL especificada pel codi podria ser relativa a l'atribut codebase.
+
{{htmlattrdef("codebase")}}
+
Aquest atribut proporciona la URL absoluta o relativa del directori on s'emmagatzemen els arxius applets' .class, referènciats per l'atribut code.
+
{{htmlattrdef("datafld")}}
+
Aquest atribut, suportat per Internet Explorer 4 i superior, especifica el nom de la columna de l'objecte d'origen de dades que subministra les dades consolidades. Aquest atribut es pot utilitzar per especificar els diversos elements {{HTMLElement("param")}} passats a l'applet de Java.
+
{{htmlattrdef("datasrc")}}
+
Igual que datafld, aquest atribut s'utilitza per a l'enllaç de dades en Internet Explorer 4. Indica l'id de l'objecte d'origen de dades que subministra les dades que estan enllaçades als elements {{HTMLElement("param")}} associats amb el applet.
+
{{htmlattrdef("height")}}
+
Aquest atribut especifica l'altura, en píxels, que l'applet necessita.
+
{{htmlattrdef("hspace")}}
+
Aquest atribut especifica l'espai horitzontal addicional, en píxels, que es reservarà a banda i banda del applet.
+
{{htmlattrdef("mayscript")}}
+
En la implementació de Netscape, aquest atribut permet l'accés a un applet de programes en un llenguatge de script incrustat en el document.
+
{{htmlattrdef("name")}}
+
Aquest atribut assigna un nom a l'applet de manera que pugui ser identificat per altres recursos; en particular els scripts.
+
{{htmlattrdef("object")}}
+
Aquest atribut especifica l'URL d'una representació serialitzada d'un applet.
+
{{htmlattrdef("src")}}
+
Tal com es defineix per a Internet Explorer 4 i superior, aquest atribut especifica una adreça URL d'un fitxer associat per l'applet. El significat i l'ús no està clar i no forma part de l'estàndard HTML.
+
{{htmlattrdef("vspace")}}
+
Aquest atribut especifica l'espai vertical addicional, en píxels, que es reserva per sobre i sota de l'applet.
+
{{htmlattrdef("width")}}
+
Aquest atribut especifica en píxels l'ample que l'applet necessita.
+
+ +

Exemple

+ +
<applet code="game.class" align="left" archive="game.zip" height="250" width="350">
+  <param name="difficulty" value="easy">
+  <b>Sorry, you need Java to play this game.</b>
+</applet>
+
+ + + +

{{CompatibilityTable}}

+ +
+ + + + + + + + + + + + + + + + + + + +
CaracterísticaChromeFirefox (Gecko)Internet ExplorerOperaSafari
Suport bàsic{{CompatNo}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatNo}}{{CompatVersionUnknown}}
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
CaracterísticaAndroidFirefox Mobile (Gecko)IE MobileOpera MiniOpera MobileSafari Mobile
Suport bàsic{{CompatNo}}{{CompatNo}}{{CompatNo}}{{CompatNo}}{{CompatNo}}{{CompatNo}}
+
+ +

Notes

+ +

L'especificació W3C no fomenta l'ús de <applet> i prefereix l'ús de l'etiqueta {{HTMLElement("object")}}. Sota la definició estricta d'HTML 4.01, aquest element no s'utilitza i està totalment obsolet en HTML5.

+ +
{{HTMLRef}}
diff --git a/files/ca/web/html/element/area/index.html b/files/ca/web/html/element/area/index.html new file mode 100644 index 0000000000..4c4100d484 --- /dev/null +++ b/files/ca/web/html/element/area/index.html @@ -0,0 +1,247 @@ +--- +title: +slug: Web/HTML/Element/area +translation_of: Web/HTML/Element/area +--- +

El element HTML <area> defineix una regió dins d'una imatge, i, opcionalment, l'associa amb un {{Glossary("Hyperlink", "hypertext link")}}. Aquest element s'utilitza només dins d'un element {{HTMLElement("map")}}.

+ + + + + + + + + + + + + + + + + + + + + + + + +
Categories de contingut +

Contingut de flux, phrasing content.

+
Contingut permèsCap, és una {{Glossary("empty element")}}.
Omissió de l'etiquetaHa de tenir etiqueta d'inici i no ha de tenir etiqueta de tancament.
Elements pares permesosQualsevol element que accepti phrasing content. El element <area> ha de tenir un ancestre {{HTMLElement("map")}}, però no té per què ser un pare directa.
Interfície DOM{{domxref("HTMLAreaElement")}}
+ +

Atributs

+ +

Aquest element inclou els atributs globals.

+ +
+
{{htmlattrdef("accesskey")}} {{HTMLVersionInline("4")}} solsament, {{obsolete_inline("5.0")}}
+
Especifica una tecla d'access de navegació per a l'element. Pressionant ALT o una tecla similar en associació amb el caràcter especificat selecciona el control de forma correlacionada amb la seqüència de tecles. Els dissenyadors de pàgines estan previnguts per evitar seqüències de tecles ja vinculades als navegadors. Aquest atribut és global des de HTML5.
+
+ +
+
{{htmlattrdef("alt")}}
+
Una cadena de text alternativa, per visualitzar, en navegadors que no mostren les imatges. El text ha de redactar-se de manera que es presenta a l'usuari amb el mateix tipus d'elecció com la imatge oferiria quan apareix sense text alternatiu. En HTML 4, es requereix aquest atribut, però la cadena pot ser buida (""). En HTML5, es requereix aquest atribut només si s'utilitza l'atribut href.
+
+ +
+
{{htmlattrdef("coords")}}
+
Un conjunt de valors que especifiquen les coordenades de la regió. El nombre i el significat dels valors depenen del valor especificat per a l'atribut shape. Per un rect o rectangle, el valor coords son dos parelles x,y: left, top, right i bottom. Per un circle, el valor es x,y,r on x,y es una parella que defineix el centre del cercle i r es el valor del radi. Per un poly o poligon, el valor es un conjunt de parells x, y per cada punt en el poligon: x1,y1,x2,y2,x3,y3, i així succesivament. En HTML 4, els valors són nombres de píxels o percentatges, si s'afegeix un signe de percentatge (%); en HTML5, els valors són nombres de píxels CSS.
+
{{htmlattrdef("download")}} {{HTMLVersionInline("5")}}
+
Aquest atribut, si està present, indica que l'autor proposa un hipervincle que s'utilitzarà per a la descàrrega d'un recurs. Veure {{HTMLElement("a")}} per a una descripció completa de l'atribut de {{htmlattrxref("download", "a")}}.
+
+ +
+
{{htmlattrdef("href")}}
+
El destí de hipervincle del element area. El seu valor és un URL vàlid. En HTML 4, ja sigui aquest atribut o l'atribut nohref han d'estar presents en l'element. En HTML5, aquest atribut es pot ometre; si és així, l'element area no representa un enllaç.
+
+ +
+
{{htmlattrdef("hreflang")}} {{HTMLVersionInline("5")}}
+
Indica l'idioma del recurs vinculat. Els valors permesos són determinats per BCP47. Utilitzeu aquest atribut només si l'atribut href és present.
+
+ +
+
{{htmlattrdef("name")}} {{HTMLVersionInline("4")}} only, {{obsolete_inline("5.0")}}
+
Definir un nom per a l'àrea seleccionable de manera que pugui ser escrit pels navegadors antics.
+
+ +
+
{{htmlattrdef("media")}} {{HTMLVersionInline("5")}}
+
Un mitjà de l'atribut media per els quals es va dissenyar el recurs vinculat, per exemple print i screen. Si s'omet, el valor predeterminat es per a tothom. Utilitzeu aquest atribut només si l'atribut href és present.
+
+ +
+
{{htmlattrdef("nohref")}} {{HTMLVersionInline("4")}} only, {{obsolete_inline("5.0")}}
+
Indica que no hi ha cap hipervincle per a l'àrea associada. Qualsevol d'aquest atribut o l'atribut href han d'estar presents en l'element. +
+

Nota d'ús: Aquest atribut és obsolet en HTML 5, en comptes, ometent l'atribut href és suficient.

+
+
+
+ +
+
{{htmlattrdef("referrerpolicy")}} {{experimental_inline}}
+
Una cadena que indica el referrer per utilitzar en recuperar el recurs : +
    +
  • "no-referrer" significa que en el Referrer: la capçalera no s'enviarà.
  • +
  • "no-referrer-when-downgrade" significa que si no hi ha Referrer: la capçalera serà enviada al navegar a un origen sense TLS (HTTPS). Aquest és el comportament per defecte d'un agent d'usuari, si no hi ha política que especifiqui el contrari.
  • +
  • "origin" significa que el referrer serà l'origen de la pàgina, que és més o menys l'esquema, el host i el port.
  • +
  • "origin-when-cross-origin" significa que les navegacions d'altres orígens es limitaràn a l'esquema, el host i el port, mentre que les navegacions en el mateix origen inclouran el camí dels referrer's.
  • +
  • "unsafe-url" significa que el referrer inclourà l'origen i la ruta d'accés (però no el fragment, la contrasenya o nom d'usuari). Aquest cas no és segur, ja que pot filtrar-se orígens i trajectòries dels recursos protegits-TLS a orígens insegurs.
  • +
+
+
{{htmlattrdef("rel")}} {{HTMLVersionInline("5")}}
+
Per als ancoratges que contenen l'atribut href, aquest atribut especifica la relació de l'objecte de destinació per a l'objecte de vincle. El valor és una llista separada per comes dels valors dels tipus d'enllaços. Els valors i la seva semàntica seran registrades per alguna autoritat que podria haver significat l'autor del document. La relació per defecte, si no es dóna una altra, és nul·la. Utilitzeu aquest atribut només si l'atribut href és present.
+
{{htmlattrdef("shape")}}
+
La forma de la zona activa associada. Les especificacions per a HTML 5 i HTML 4 defineixen els valors rect, defineix una regió rectangular; circle, defineix una regió circular; poly, defineix un polígon; i per defecte, el que indica tota la regió més enllà de les formes definides. Molts navegadors, especialment Internet Explorer 4 i superior, suportan circ, polygon, i rectangle com a valors vàlids de shape; aquests valors són {{Non-standard_inline}}.
+
{{htmlattrdef("tabindex")}} {{HTMLVersionInline("4")}} only, {{obsolete_inline("5.0")}}
+
Un valor numèric que especifica la posició de la zona definida en l'ordre de tabulació del  navegador. Aquest atribut és global en HTML5.
+
+ +
+
{{htmlattrdef("target")}}
+
Aquest atribut especifica el lloc per visualitzar el recurs vinculat. En HTML 4, aquest és el nom de, o una paraula clau per a un marc. En HTML5, que és un nom de, o una paraula clau per a un context de navegació (per exemple, pestanya, finestra o marc en línia). Les següents paraules clau tenen un significat especial: +
    +
  • _self: Carrega la resposta en el mateix marc de HTML 4 (o context de navegació en HTML 5) com l'actual. Aquest valor és el valor per defecte si no s'especifica l'atribut.
  • +
  • _blank: Carregar la resposta en una nova finestra sense nom HTML 4 o en un context de navegació HTML5.
  • +
  • _parent: Carregar la resposta en el conjunt de marcs pare HTML 4 del quadre actual o HTML5 en el context de navegació dels pares de l'actual. Si no hi ha pare, aquesta opció es comporta de la mateixa manera que _self.
  • +
  • _top: In HTML4: Carregar la resposta sencera a la finestra original, cancel·lant tots els altres marcs. En HTML 5: Carregar la resposta en el context de navegació de nivell superior (és a dir, el context de navegació que és un ancestre de l'actual, i no té pare). Si no hi ha pare, aquesta opció es comporta de la mateixa manera que _self.
  • +
+ Utilitzeu aquest atribut només si l'atribut href és present.
+
{{htmlattrdef("type")}}
+
Aquest atribut especifica el tipus de suport en forma d'un tipus MIME per a la destinació de l'enllaç. Generalment, això proporciona informació estrictament com d'assessorament; No obstant això, en el futur, un navegador podria afegir una icona petit per a aquest tipus de mitjà. Per exemple, un navegador podria afegir una petita icona de l'altaveu quan el tipus s'estableix en l'àudio / wav. Per obtenir una llista completa dels tipus MIME reconeguts, veure http://www.w3.org/TR/html4/references.html#ref-MIMETYPES. Utilitzeu aquest atribut només si l'atribut href és present.
+
+ +

Exemple

+ +
<map name="primary">
+  <area shape="circle" coords="200,250,25" href="another.htm" />
+  <area shape="default" nohref />
+</map>
+
+ +

Especificacions

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
EspecificacióEstatComentari
{{SpecName('Referrer Policy', '#referrer-policy-delivery-referrer-attribute', 'referrerpolicy attribute')}}{{Spec2('Referrer Policy')}}Afegeix l'atribut referrerpolicy. .
{{SpecName('HTML WHATWG', 'the-map-element.html#the-area-element', '<area>')}}{{Spec2('HTML WHATWG')}} 
{{SpecName('HTML5 W3C', 'embedded-content-0.html#the-area-element', '<area>')}}{{Spec2('HTML5 W3C')}} 
{{SpecName('HTML4.01', 'struct/objects.html#h-13.6.1', '<area>')}}{{Spec2('HTML4.01')}} 
+ + + +

{{CompatibilityTable}}

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
CaracterísticaChromeFirefox (Gecko)Internet ExplorerOperaSafari
Suport bàsic{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}
referrerpolicy{{CompatNo}}{{CompatGeckoDesktop("50")}}{{CompatNo}}{{CompatNo}}{{CompatNo}}
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
CaracterísticaAndroidAndroid WebviewFirefox Mobile (Gecko)IE MobileOpera MiniOpera MobileSafari MobileChrome for Android
Suport bàsic{{CompatUnknown}}{{CompatVersionUnknown}}{{CompatUnknown}}{{CompatUnknown}}{{CompatUnknown}}{{CompatUnknown}}{{CompatUnknown}}{{CompatVersionUnknown}}
referrerpolicy{{CompatNo}}{{CompatNo}}{{CompatGeckoMobile("50")}}{{CompatNo}}{{CompatNo}}{{CompatNo}}{{CompatNo}}{{CompatNo}}
+
+ +

Notes

+ +

En les especificacions l'HTML 3.2, 4.0 i 5, l'etiqueta de tancament </area> està prohibida.

+ +

L'especificació XHTML 1.0 requereix una barra final: <area />.

+ +

Els atributs id, class, i style  tenen el mateix significat que els atributs fonamentals definits en l'especificació HTML 4, però només Netscape i Microsoft els defineixen.

+ +

Netscape, navegadors de nivell 1 no entén l'atribut target pel que fa als frames.

+ +

HTML 3.2 només defineix alt, coords, href, nohref i shape.

+ +

{{HTMLRef}}

diff --git a/files/ca/web/html/element/article/index.html b/files/ca/web/html/element/article/index.html new file mode 100644 index 0000000000..a905d37a7f --- /dev/null +++ b/files/ca/web/html/element/article/index.html @@ -0,0 +1,172 @@ +--- +title:
+slug: Web/HTML/Element/article +translation_of: Web/HTML/Element/article +--- +

{{HTMLRef}}

+ +

L'element HTML <article> representa una composició autònoma en un document, pàgina, aplicació o lloc, que està destinada a ser distribuir de forma independent o reutilitzables (per exemple, en la sindicació). Això podria ser un missatge del fòrum, un article d'una revista o un diari, una entrada de blog, un objecte, o qualsevol altre element independent del contingut. Cada <article> ha de ser identificat, generalment mitjançant la inclusió d'una capçalera (element <h1>-<h6>) com un fill de l'element <article>.

+ +

+

+

Notes d'us:

+ +
    +
  • Quan es nia un element <article>, l'element interior representa un article relacionat amb l'element exterior. Per exemple, els comentaris d'un blog poden ser elements <article> niats en <article> representen a l'entrada del bloc.
  • +
  • La informació sobre l'autor d'un element <article> pot ser proporcionada a través de l'element {{HTMLElement("address")}} , però no s'aplica a elements niats <article>.
  • +
  • La data de publicació i el temps d'un element <article> es poden descriure mitjançant l'atribut {{htmlattrxref("datetime", "time")}} d'un element {{HTMLElement("time")}}. Recordeu que el atribut {{htmlattrxref("pubdate", "time")}} de {{HTMLElement("time")}} ja no és una part de l'estàndard HTML 5 del W3C.
  • +
+
+

+ + + + + + + + + + + + + + + + + + + + + + + + +
Categories de contingutContingut de Flux, contingut de seccionament , contingut palpable.
Contingut permèsContingut de Flux.
Omissió de l'etiqueta{{no_tag_omission}}
Elements pares permesosQualsevol element que accepti  contingut de flux. Recordeu que un element <article> no ha de ser un descendent d'un element {{HTMLElement("address")}}.
Interfície DOM{{domxref("HTMLElement")}}
+ +

Atributs

+ +

Aquest element només inclou els atributs globals.

+ +

Exemples

+ +
<article class="film_review">
+  <header>
+    <h2>Jurassic Park</h2>
+  </header>
+  <section class="main_review">
+    <p>Dinos were great!</p>
+  </section>
+  <section class="user_reviews">
+    <article class="user_review">
+      <p>Way too scary for me.</p>
+      <footer>
+        <p>
+          Posted on <time datetime="2015-05-16 19:00">May 16</time> by Lisa.
+        </p>
+      </footer>
+    </article>
+    <article class="user_review">
+      <p>I agree, dinos are my favorite.</p>
+      <footer>
+        <p>
+          Posted on <time datetime="2015-05-17 19:00">May 17</time> by Tom.
+        </p>
+      </footer>
+    </article>
+  </section>
+  <footer>
+    <p>
+      Posted on <time datetime="2015-05-15 19:00">May 15</time> by Staff.
+    </p>
+  </footer>
+</article>
+
+ +

Especificacions

+ + + + + + + + + + + + + + + + + + + + + + + + + + +
EspecificacióEstatComentari
{{SpecName('HTML WHATWG', 'sections.html#the-article-element', '<article>')}}{{Spec2('HTML WHATWG')}} 
{{SpecName('HTML5.1', 'sections.html#the-article-element', '<article>')}}{{Spec2('HTML5.1')}} 
{{SpecName('HTML5 W3C', 'sections.html#the-article-element', '<article>')}}{{Spec2('HTML5 W3C')}} 
+ + + +

{{CompatibilityTable}}

+ +
+ + + + + + + + + + + + + + + + + + + +

+ Característica
ChromeFirefox (Gecko)Internet ExplorerOperaSafari
Suport bàsic5{{CompatGeckoDesktop("2.0")}}9.011.104.1
+
+ +
+ + + + + + + + + + + + + + + + + + + +

+ Característica
AndroidFirefox Mobile (Gecko)IE MobileOpera MobileSafari Mobile
Suport bàsic2.2{{CompatGeckoMobile("2.0")}}9.011.04.2
+
+ +

Veure

+ +
    +
  • Altres elements relacionats amb la secció : {{HTMLElement("body")}}, {{HTMLElement("nav")}}, {{HTMLElement("section")}}, {{HTMLElement("aside")}}, {{HTMLElement("h1")}}, {{HTMLElement("h2")}}, {{HTMLElement("h3")}}, {{HTMLElement("h4")}}, {{HTMLElement("h5")}}, {{HTMLElement("h6")}}, {{HTMLElement("hgroup")}}, {{HTMLElement("header")}}, {{HTMLElement("footer")}}, {{HTMLElement("address")}}
  • +
  • Seccions i línies generals d'un document HTML5
  • +
diff --git a/files/ca/web/html/element/aside/index.html b/files/ca/web/html/element/aside/index.html new file mode 100644 index 0000000000..c6d98154ca --- /dev/null +++ b/files/ca/web/html/element/aside/index.html @@ -0,0 +1,126 @@ +--- +title: