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/element/hr/index.html | 167 ++++++++++++++++++++++++++++++++ 1 file changed, 167 insertions(+) create mode 100644 files/ca/web/html/element/hr/index.html (limited to 'files/ca/web/html/element/hr') diff --git a/files/ca/web/html/element/hr/index.html b/files/ca/web/html/element/hr/index.html new file mode 100644 index 0000000000..ca17db66e9 --- /dev/null +++ b/files/ca/web/html/element/hr/index.html @@ -0,0 +1,167 @@ +--- +title:
+slug: Web/HTML/Element/hr +tags: + - Element + - HTML + - HTML grouping content + - Reference +translation_of: Web/HTML/Element/hr +--- +

{{HTMLRef}}

+ +

L'element HTML <hr> representa un trencament temàtic entre els elements a nivell de paràgraf (per exemple, un canvi d'escena en una història, o un canvi de tema amb una secció). En versions prèvies d'HTML, es representava amb una regla horitzontal. Encara es pot mostrar com una regla horitzontal en els navegadors visuals, però ara es defineix en termes semàntics, en lloc de termes de presentació.

+ +
+

Per canviar l'aspecte de la regla o buits entre ell i els paràgrafs, utilitzeu els fulls d'estil en cascada (CSS).

+
+ + + + + + + + + + + + + + + + + + + + + + + + +
Categories de contingutContingut dinàmic.
Contingut permèsCap, és un {{Glossary("empty element")}}.
Omissió de l'etiquetaHa de tenir una etiqueta d'inici, però no una etiqueta de tancament .
Elements pares permesosQualsevol element que accepti Contingut dinàmic.
Interfície DOM{{domxref("HTMLHRElement")}}
+ +

Atributs

+ +

Aquest element inclou els atributs globals.

+ +
+
{{htmlattrdef("align")}} {{deprecated_inline}}
+
Defineix l'alineació de la regla a la pàgina. Si no s'especifica cap valor, el valor per defecte es left.
+
{{htmlattrdef("color")}} {{Non-standard_inline}}
+
Defineix el color de la regla mitjançant el nom del color o el valor hexadecimal.
+
{{htmlattrdef("noshade")}} {{deprecated_inline}}
+
Estableix que la regla no ombrejat.
+
{{htmlattrdef("size")}} {{deprecated_inline}}
+
Estableix l'alçada de la regla en píxels.
+
{{htmlattrdef("width")}} {{deprecated_inline}}
+
Defineix la longitud de la regla a la pàgina mitjançant un valor en píxels o percentatge.
+
+ +

Exemple

+ +
<p>This is the first paragraph of text. This is the first paragraph of text.
+  This is the first paragraph of text. This is the first paragraph of text.</p>
+
+<hr>
+
+<p>This is second paragraph of text. This is second paragraph of text.
+  This is second paragraph of text. This is second paragraph of text.</p>
+
+ +

Sortida del codi HTML anterior:

+ +

This is the first paragraph of text. This is the first paragraph of text. This is the first paragraph of text. This is the first paragraph of text.

+ +
+

This is second paragraph of text. This is second paragraph of text. This is second paragraph of text. This is second paragraph of text.

+ +

Especificacions

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
EspecificacióEstatComentari
{{SpecName('HTML WHATWG', 'grouping-content.html#the-hr-element', '<hr>')}}{{Spec2('HTML WHATWG')}}Definició de l'element hr
{{SpecName('HTML WHATWG', 'rendering.html#the-hr-element-0')}}{{Spec2('HTML WHATWG')}}Suggerit la representació per defecte de l'element hr
{{SpecName('HTML5 W3C', 'grouping-content.html#the-hr-element', '<hr>')}}{{Spec2('HTML5 W3C')}} 
{{SpecName('HTML4.01', 'present/graphics.html#h-15.3', '<hr>')}}{{Spec2('HTML4.01')}}Els atributs align, noshade, size i width estan desaprovats
+ +

Navegadors compatibles

+ +

{{CompatibilityTable}}

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

Veure

+ + -- cgit v1.2.3-54-g00ecf