From cb9e359a51c3249d8f5157db69d43fd413ddeda6 Mon Sep 17 00:00:00 2001 From: Florian Merz Date: Thu, 11 Feb 2021 14:45:12 +0100 Subject: unslug ca: move --- files/ca/web/html/element/command/index.html | 156 --------------------- files/ca/web/html/element/element/index.html | 93 ------------ .../web/html/elements_en_l\303\255nia/index.html" | 82 ----------- .../web/html/global_attributes/dropzone/index.html | 99 ------------- files/ca/web/html/inline_elements/index.html | 82 +++++++++++ .../index.html | 29 ---- 6 files changed, 82 insertions(+), 459 deletions(-) delete mode 100644 files/ca/web/html/element/command/index.html delete mode 100644 files/ca/web/html/element/element/index.html delete mode 100644 "files/ca/web/html/elements_en_l\303\255nia/index.html" delete mode 100644 files/ca/web/html/global_attributes/dropzone/index.html create mode 100644 files/ca/web/html/inline_elements/index.html delete 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/element/command/index.html b/files/ca/web/html/element/command/index.html deleted file mode 100644 index 17614b7e4f..0000000000 --- a/files/ca/web/html/element/command/index.html +++ /dev/null @@ -1,156 +0,0 @@ ---- -title: -slug: Web/HTML/Element/command -tags: - - HTML - - HTML Element Reference - - HTML element - - HTML5 -translation_of: Web/HTML/Element/command ---- -
{{obsolete_header()}}
- -
-

Nota: L'element comand s'ha eliminat de {{Gecko("24.0")}} en favor de l'element {{HTMLElement("menuitem")}}. Firefox mai ha donat suport a aquest element comand, i s'ha abandonat la implementació de la interfície DOM {{domxref("HTMLCommandElement")}} existent a Firefox 24.

-
- -

Sumari

- -

L'element comand representa un comando que l'usuari pot invocar.

- - - - - - - - - - - - - - - - - - - - - - - - -
Categories de contingutcontingut de flux, phrasing content, contingut metadata.
Contingut permèsCap, és un {{Glossary("empty element")}}.
Omissió de l'etiquetaL'etiqueta d'inici és obligatori, però, com que és un element buit, l'ús d'una etiqueta final està prohibit.
Elements pares permesosnomés {{HTMLElement("colgroup")}}, encara que  implícitament pot ser definida com la seva etiqueta d'inici però no és obligatòria. La {{HTMLElement("colgroup")}} no ha de tenir un {{HTMLElement("span")}} com a fill.
Interfície DOM{{domxref("HTMLCommandElement")}} {{ obsolete_inline(24) }}
- -

Atributs

- -

Aquest element inclou els atributs globals.

- -
-
{{htmlattrdef("checked")}}
-
Indica si comand es seleccionat. S'ha d'ometre llevat que l'atribut type és checkbox o radio.
-
{{htmlattrdef("disabled")}}
-
Indica que comand no està disponible..
-
{{htmlattrdef("icon")}}
-
Dóna una imatge que representa el comand.
-
{{htmlattrdef("label")}}
-
El nom del command tal com es mostra a l'usuari.
-
{{htmlattrdef("radiogroup")}}
-
Aquest atribut dóna el nom del grup d'ordres, amb un type radio, que es commuta quan s'alterna el propi comandament. S'ha omès aquest atribut llevat que l'atribut type sigui radio.
-
{{htmlattrdef("type")}}
-
Aquest atribut indica el tipus de comandt. Això pot ser un dels tres valors. -
    -
  • -

    command o buit que és l'estat per defecte, i indica que es tracta d'un comand normal.

    -
  • -
  • -

    checkbox indica que command s'alterna amb un checkbox.

    -
  • -
  • -

    radio indica que command s'alterna amb un radiobutton.

    -
  • -
-
-
- -

Exemples

- -
<command type="command" label="Save" icon="icons/save.png" onclick="save()">
-
- -

Especificacions

- - - - - - - - - - - - - - - - - - - - - -
EspecificacióEstatComentari
{{SpecName('HTML WHATWG', 'commands.html', '<command>')}}{{Spec2('HTML WHATWG')}} 
{{SpecName('HTML5 W3C', 'semantics.html#the-command-element', '<command>')}}{{Spec2('HTML5 W3C')}} 
- - - -

{{CompatibilityTable}}

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

{{ HTMLRef }}

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

Nota: Aquest element s'ha eliminat de l'especificació. Vegeu això per més informació de l'editor de l'especificació.

-
- -

Resum

- -

L'element HTML <element>  s'utilitza per definir nous elements DOM personalitzats.

- - - -

Atributs

- -

Aquest element inclou els atributs globals.

- -

Exemples

- -

El text va aquí.

- -
Més text va aquí.
-
- -

Especificacions

- -

L'element <element> es torbava antigament dins d'un esborrany de l'especificació de Elements personalitzats però s'ha eliminat.

- -

Compatibilitat amb navegadors

- -

{{CompatibilityTable}}

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

Vegeu també

- -
    -
  • Components Web: {{HTMLElement("content")}}, {{HTMLElement("shadow")}}, {{HTMLElement("template")}}
  • -
- -
{{HTMLRef}}
diff --git "a/files/ca/web/html/elements_en_l\303\255nia/index.html" "b/files/ca/web/html/elements_en_l\303\255nia/index.html" deleted file mode 100644 index 0ec8db2c0d..0000000000 --- "a/files/ca/web/html/elements_en_l\303\255nia/index.html" +++ /dev/null @@ -1,82 +0,0 @@ ---- -title: Elements en línia -slug: Web/HTML/Elements_en_línia -tags: - - Beginner - - HTML - - 'HTML:Element Reference' -translation_of: Web/HTML/Inline_elements ---- -

Sumari

- -

Els elements HTML (Hypertext Markup Language) solen ser elements "en línia" o elements a "nivell de bloc". Un element en línia ocupa només l'espai delimitat per les etiquetes que defineixen l'element en línia. El següent exemple demostra la influència de l'element en línia:

- -

Exemple en línia

- -

HTML

- -
<p>This <span>span</span> is an inline element; its background has been colored to display both the beginning and end of the inline element's influence</p>
- -

CSS

- -
span { background-color: #8ABB55; }
-
- -

{{ EmbedLiveSample('Inline_example') }}

- -

En línia vs. nivell de bloc

- -
-
Model de contingut
-
En general, els elements en línia poden contenir únicament les dades i altres elements en línia.
-
Format
-
Per defecte, els elements en línia no comencen amb nova línia.
-
- -

Elements

- -

Els següents elements són "en línia":

- -
-
-
{{ HTMLElement("a") }}
-
{{ HTMLElement("b") }}
-
{{ HTMLElement("big") }}
-
{{ HTMLElement("i") }}
-
{{ HTMLElement("small") }}
-
{{ HTMLElement("tt") }}
-
{{ HTMLElement("abbr") }}
-
{{ HTMLElement("acronym") }}
-
{{ HTMLElement("cite") }}
-
{{ HTMLElement("code") }}
-
{{ HTMLElement("dfn") }}
-
{{ HTMLElement("em") }}
-
{{ HTMLElement("kbd") }}
-
{{ HTMLElement("strong") }}
-
{{ HTMLElement("samp") }}
-
{{ HTMLElement("time") }}
-
{{ HTMLElement("var") }}
-
{{ HTMLElement("a") }}
-
{{ HTMLElement("bdo") }}
-
{{ HTMLElement("br") }}
-
{{ HTMLElement("img") }}
-
{{ HTMLElement("map") }}
-
{{ HTMLElement("object") }}
-
{{ HTMLElement("q") }}
-
{{ HTMLElement("script") }}
-
{{ HTMLElement("span") }}
-
{{ HTMLElement("sub") }}
-
{{ HTMLElement("sup") }}
-
{{ HTMLElement("button") }}
-
{{ HTMLElement("input") }}
-
{{ HTMLElement("label") }}
-
{{ HTMLElement("select") }}
-
{{ HTMLElement("textarea") }}
-
-
- -

Veure

- - diff --git a/files/ca/web/html/global_attributes/dropzone/index.html b/files/ca/web/html/global_attributes/dropzone/index.html deleted file mode 100644 index 9435eb1c68..0000000000 --- a/files/ca/web/html/global_attributes/dropzone/index.html +++ /dev/null @@ -1,99 +0,0 @@ ---- -title: dropzone -slug: Web/HTML/Global_attributes/dropzone -tags: - - Experimental - - Global attributes - - HTML - - Reference -translation_of: Web/HTML/Global_attributes/dropzone ---- -

{{HTMLSidebar("Global_attributes")}}{{SeeCompatTable}}

- -

L'atribut global dropzone és un atribut enumerat que indica quin tipus de contingut poden ser arrossegats sobre un element, utilitzant l'API Drag and Drop. Pot tenir els següents valors:

- -
    -
  • copy,  indica que el deixa anar crearà una còpia de l'element que va ser arrossegat.
  • -
  • move, indica que l'element arrossegat es mourà a aquesta nova ubicació.
  • -
  • link, crearà un enllaç a les dades arrossegats.
  • -
- -

Especificacions

- - - - - - - - - - - - - - - - - - - -
EspecificacióEstatComentari
{{SpecName('HTML WHATWG', "interaction.html#the-dropzone-attribute", "dropzone")}}{{Spec2('HTML WHATWG')}}Sense canvis des de l'última instantània, {{SpecName('HTML5.1')}}
{{SpecName('HTML5.1', "editing.html#the-dropzone-attribute", "dropzone")}}{{Spec2('HTML5.1')}}Instantània de {{SpecName('HTML WHATWG')}}, definició inicial
- - - -

{{ CompatibilityTable() }}

- -
- - - - - - - - - - - - - - - - - - - -
CaracterísticaChromeFirefox (Gecko)Internet ExplorerOperaSafari
Suport bàsic{{ CompatUnknown() }}{{ CompatNo }}{{ CompatUnknown() }}{{ CompatUnknown() }}{{ CompatUnknown() }}
-
- -
- - - - - - - - - - - - - - - - - - - - - -
CaracterísticaAndroidChrome for AndroidFirefox Mobile (Gecko)IE MobileOpera MobileSafari Mobile
Suport bàsic{{ CompatUnknown() }}{{ CompatUnknown}}{{ CompatNo }}{{ CompatUnknown() }}{{ CompatUnknown() }}{{ CompatUnknown() }}
-
- -

Veure

- - diff --git a/files/ca/web/html/inline_elements/index.html b/files/ca/web/html/inline_elements/index.html new file mode 100644 index 0000000000..0ec8db2c0d --- /dev/null +++ b/files/ca/web/html/inline_elements/index.html @@ -0,0 +1,82 @@ +--- +title: Elements en línia +slug: Web/HTML/Elements_en_línia +tags: + - Beginner + - HTML + - 'HTML:Element Reference' +translation_of: Web/HTML/Inline_elements +--- +

Sumari

+ +

Els elements HTML (Hypertext Markup Language) solen ser elements "en línia" o elements a "nivell de bloc". Un element en línia ocupa només l'espai delimitat per les etiquetes que defineixen l'element en línia. El següent exemple demostra la influència de l'element en línia:

+ +

Exemple en línia

+ +

HTML

+ +
<p>This <span>span</span> is an inline element; its background has been colored to display both the beginning and end of the inline element's influence</p>
+ +

CSS

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

{{ EmbedLiveSample('Inline_example') }}

+ +

En línia vs. nivell de bloc

+ +
+
Model de contingut
+
En general, els elements en línia poden contenir únicament les dades i altres elements en línia.
+
Format
+
Per defecte, els elements en línia no comencen amb nova línia.
+
+ +

Elements

+ +

Els següents elements són "en línia":

+ +
+
+
{{ HTMLElement("a") }}
+
{{ HTMLElement("b") }}
+
{{ HTMLElement("big") }}
+
{{ HTMLElement("i") }}
+
{{ HTMLElement("small") }}
+
{{ HTMLElement("tt") }}
+
{{ HTMLElement("abbr") }}
+
{{ HTMLElement("acronym") }}
+
{{ HTMLElement("cite") }}
+
{{ HTMLElement("code") }}
+
{{ HTMLElement("dfn") }}
+
{{ HTMLElement("em") }}
+
{{ HTMLElement("kbd") }}
+
{{ HTMLElement("strong") }}
+
{{ HTMLElement("samp") }}
+
{{ HTMLElement("time") }}
+
{{ HTMLElement("var") }}
+
{{ HTMLElement("a") }}
+
{{ HTMLElement("bdo") }}
+
{{ HTMLElement("br") }}
+
{{ HTMLElement("img") }}
+
{{ HTMLElement("map") }}
+
{{ HTMLElement("object") }}
+
{{ HTMLElement("q") }}
+
{{ HTMLElement("script") }}
+
{{ HTMLElement("span") }}
+
{{ HTMLElement("sub") }}
+
{{ HTMLElement("sup") }}
+
{{ HTMLElement("button") }}
+
{{ HTMLElement("input") }}
+
{{ HTMLElement("label") }}
+
{{ HTMLElement("select") }}
+
{{ HTMLElement("textarea") }}
+
+
+ +

Veure

+ + diff --git a/files/ca/web/html/optimizing_your_pages_for_speculative_parsing/index.html b/files/ca/web/html/optimizing_your_pages_for_speculative_parsing/index.html deleted file mode 100644 index df48dec4e3..0000000000 --- a/files/ca/web/html/optimizing_your_pages_for_speculative_parsing/index.html +++ /dev/null @@ -1,29 +0,0 @@ ---- -title: Optimizing your pages for speculative parsing -slug: Web/HTML/Optimizing_your_pages_for_speculative_parsing -translation_of: Glossary/speculative_parsing ---- -

Tradicionalment en els navegadors, el analitzador sintàctic d'HTML s'executa en el fil principal i s'ha bloquejat després d'una etiqueta </script> fins que l'script s'ha recuperat de la xarxa i s'executat. El analitzador sintàctic d'HTML en Firefox 4 i versions posteriors dóna suport a l'anàlisi especulativa fora del fil principal. A continuació s'analitza mentre que els scripts estan sent descarregats i s'executen. Com en Firefox 3.5 i 3.6, l'analitzador sintàctic d'HTML comença càrregues especulatives per als scripts, fulles d'estil i imatges que troba per davant en la seqüència. No obstant això, en Firefox 4 i posterior l'analitzador sintàctic d'HTML també executa l'algorisme de construcció de l'arbre HTML especulativament. L'avantatge és que quan una especulació èxit, no hi ha necessitat de reanàlisi de la part de l'arxiu d'entrada ja que va ser analitzat a la recerca de scripts, fulls d'estil i imatges. L'inconvenient és que hi ha més feina perduda quan l'especulació falla.

- -

Aquest document pot ajudar evitar que aquest tipus de coses que fan que l'especulació falli i alenteixen la càrrega de la pàgina.

- -

Fent càrregues especulatives successives

- -

Només hi ha una regla per fer càrregues especulatives de scripts vinculats, fulls d'estil i imatges successives:

- -
    -
  • Si s'utilitza un element <base> per anul·lar l'URI base de la pàgina, posar l'element de la part non-scripted del document. No ho afegiu a través de document.write() or document.createElement().
  • -
- -

Evitant perdre la sortida del constructor d'arbre

- -

El constructor d'arbre especulatiu falla quan document.write() canvia l'estat del constructor d'arbre, de tal manera que l'estat especulatiu després de la etiqueta </script>  ja no se sosté quan ha estat analitzat tot el contingut inserit per document.write(). No obstant això, només els usos inusuals de document.write() causen problemes. Aquestes són les coses que cal evitar:

- -
    -
  • No escriviu arbres desequilibrats. <script>document.write("<div>");</script> és incorrecta. <script>document.write("<div></div>");</script> està bé.
  • -
  • No escriviu un símbol sense acabar. <script>document.write("<div></div");</script> is incorrecta.
  • -
  • No acabeu un escrit amb un retorn de carro. <script>document.write("Hello World!\r");</script> és incorrecta <script>document.write("Hello World!\n");</script> està bé.
  • -
  • Noteu que l'escriptura d'etiquetes equilibrades pot fer que altres etiquetes poguin inferir d'una manera que fa que l'escriptura sigui desequilibrada. Per exemple <script>document.write("<div></div>");</script> dins de l'element head s'interpreta com <script>document.write("</head><body><div></div>");</script> el qual està desequilibrat.
  • -
  • No doneu format part d'una taula<table><script>document.write("<tr><td>Hello World!</td></tr>");</script></table> és incorrecta. However, <script>document.write("<table><tr><td>Hello World!</td></tr></table>");</script> està bé.
  • -
  • TODO: document.write dins d'altres elements de format..
  • -
-- cgit v1.2.3-54-g00ecf