diff options
Diffstat (limited to 'files/ca/web/html/element/hr/index.html')
-rw-r--r-- | files/ca/web/html/element/hr/index.html | 167 |
1 files changed, 167 insertions, 0 deletions
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: <hr> +slug: Web/HTML/Element/hr +tags: + - Element + - HTML + - HTML grouping content + - Reference +translation_of: Web/HTML/Element/hr +--- +<p>{{HTMLRef}}</p> + +<p>L'<strong>element HTML <code><hr></code></strong> 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ó.</p> + +<div class="note"> +<p><span id="result_box" lang="ca"><span>Per canviar</span> <span>l'aspecte de la</span> <span>regla o</span> <span>buits</span> <span>entre ell</span> <span>i els</span> <span>paràgrafs</span><span>, utilitzeu</span> <span>els <a href="https://developer.mozilla.org/en-US/docs/CSS">fulls d'estil en cascada</a></span><a href="https://developer.mozilla.org/en-US/docs/CSS"> </a> <span>(</span><span>CSS</span><span>)</span><span>.</span></span></p> +</div> + +<table class="properties"> + <tbody> + <tr> + <th scope="row"><a href="/en-US/docs/HTML/Content_categories" title="HTML/Content_categories">Categories de contingut</a></th> + <td><a href="/en-US/docs/HTML/Content_categories#Flow_content" title="HTML/Content categories#Flow content">Contingut dinàmic</a>.</td> + </tr> + <tr> + <th scope="row">Contingut permès</th> + <td>Cap, és un {{Glossary("empty element")}}.</td> + </tr> + <tr> + <th scope="row">Omissió de l'etiqueta</th> + <td><span id="result_box" lang="ca"><span>Ha de tenir</span> <span>una etiqueta</span> <span>d'inici,</span> <span>però</span> <span>no </span><span>una etiqueta</span> <span>de tancament</span></span> .</td> + </tr> + <tr> + <th scope="row">Elements pares permesos</th> + <td>Qualsevol element que accepti <a href="/en-US/docs/HTML/Content_categories#Flow_content" title="HTML/Content categories#Flow content">Contingut dinàmic</a>.</td> + </tr> + <tr> + <th scope="row">Interfície DOM</th> + <td>{{domxref("HTMLHRElement")}}</td> + </tr> + </tbody> +</table> + +<h2 id="Atributs">Atributs</h2> + +<p>Aquest element inclou els<span style="line-height: 21px;"> </span><a href="https://developer.mozilla.org/en-US/docs/HTML/Global_attributes" style="line-height: 21px;" title="HTML/Global attributes">atributs globals</a><span style="line-height: 21px;">.</span></p> + +<dl> + <dt>{{htmlattrdef("align")}} {{deprecated_inline}}</dt> + <dd>Defineix l'alineació de la regla a la pàgina. Si no s'especifica cap valor, el valor per defecte es <code>left</code>.</dd> + <dt>{{htmlattrdef("color")}} {{Non-standard_inline}}</dt> + <dd>Defineix el color de la regla mitjançant el nom del color o el valor hexadecimal.</dd> + <dt>{{htmlattrdef("noshade")}} {{deprecated_inline}}</dt> + <dd><span class="short_text" id="result_box" lang="ca"><span>Estableix que</span> <span>la regla no</span> <span>té</span> <span>ombrejat</span></span>.</dd> + <dt>{{htmlattrdef("size")}} {{deprecated_inline}}</dt> + <dd>Estableix l'alçada de la regla en píxels.</dd> + <dt>{{htmlattrdef("width")}} {{deprecated_inline}}</dt> + <dd>Defineix la longitud de la regla a la pàgina mitjançant un valor en píxels o percentatge.</dd> +</dl> + +<h2 id="Exemple">Exemple</h2> + +<pre class="brush: html"><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> +</pre> + +<p>Sortida del codi HTML anterior:</p> + +<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> + +<h2 id="Specifications" name="Specifications">Especificacions</h2> + +<table class="standard-table"> + <thead> + <tr> + <th scope="col">Especificació</th> + <th scope="col">Estat</th> + <th scope="col">Comentari</th> + </tr> + </thead> + <tbody> + <tr> + <td>{{SpecName('HTML WHATWG', 'grouping-content.html#the-hr-element', '<hr>')}}</td> + <td>{{Spec2('HTML WHATWG')}}</td> + <td><span class="short_text" id="result_box" lang="ca"><span>Definició</span> <span>de l'element</span> <code><span>hr</span></code></span></td> + </tr> + <tr> + <td>{{SpecName('HTML WHATWG', 'rendering.html#the-hr-element-0')}}</td> + <td>{{Spec2('HTML WHATWG')}}</td> + <td>Suggerit la representació per defecte de l'element <code>hr</code></td> + </tr> + <tr> + <td>{{SpecName('HTML5 W3C', 'grouping-content.html#the-hr-element', '<hr>')}}</td> + <td>{{Spec2('HTML5 W3C')}}</td> + <td> </td> + </tr> + <tr> + <td>{{SpecName('HTML4.01', 'present/graphics.html#h-15.3', '<hr>')}}</td> + <td>{{Spec2('HTML4.01')}}</td> + <td>Els atributs <code>align</code>, <code>noshade</code>, <code>size</code> i <code>width</code> estan desaprovats</td> + </tr> + </tbody> +</table> + +<h2 id="Browser_compatibility" name="Browser_compatibility">Navegadors compatibles</h2> + +<p>{{CompatibilityTable}}</p> + +<div id="compat-desktop"> +<table class="compat-table"> + <tbody> + <tr> + <th>Característica</th> + <th>Chrome</th> + <th>Firefox (Gecko)</th> + <th>Internet Explorer</th> + <th>Opera</th> + <th>Safari (WebKit)</th> + </tr> + <tr> + <td>Suport bàsic</td> + <td>1.0</td> + <td>{{CompatVersionUnknown}}</td> + <td>{{CompatVersionUnknown}}</td> + <td>{{CompatVersionUnknown}}</td> + <td>{{CompatVersionUnknown}}</td> + </tr> + </tbody> +</table> +</div> + +<div id="compat-mobile"> +<table class="compat-table"> + <tbody> + <tr> + <th>Característica</th> + <th>Android</th> + <th>Firefox Mobile (Gecko)</th> + <th>IE Phone</th> + <th>Opera Mobile</th> + <th>Safari Mobile</th> + </tr> + <tr> + <td>Suport bàsic</td> + <td>{{CompatVersionUnknown}}</td> + <td>{{CompatVersionUnknown}}</td> + <td>{{CompatVersionUnknown}}</td> + <td>{{CompatVersionUnknown}}</td> + <td>{{CompatVersionUnknown}}</td> + </tr> + </tbody> +</table> +</div> + +<h2 id="Veure">Veure</h2> + +<ul> + <li>{{HTMLElement('p')}}</li> +</ul> |