diff options
Diffstat (limited to 'files/ca/web/html/element/samp/index.html')
-rw-r--r-- | files/ca/web/html/element/samp/index.html | 101 |
1 files changed, 101 insertions, 0 deletions
diff --git a/files/ca/web/html/element/samp/index.html b/files/ca/web/html/element/samp/index.html new file mode 100644 index 0000000000..4d13bf29ed --- /dev/null +++ b/files/ca/web/html/element/samp/index.html @@ -0,0 +1,101 @@ +--- +title: <samp> +slug: Web/HTML/Element/samp +tags: + - Element + - HTML + - HTML text-level semantics + - Reference + - Web +translation_of: Web/HTML/Element/samp +--- +<h2 id="Sumari">Sumari</h2> + +<p>L'element HTML <code><samp></code> és un element destinat a identificar la sortida de mostra d'un programa informàtic. Normalment es mostra en la font monotip predeterminada del navegador (com a Lucida Console).</p> + +<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/HTML/Content_categories#Flow_content" style="line-height: 22px;" title="en/HTML/Content categories#Flow content">Contingut dinàmic</a><span style="line-height: 22px;">, </span><a href="/en/HTML/Content_categories#Phrasing_content" style="line-height: 22px;" title="en/HTML/Content categories#Phrasing content">phrasing content</a>, contingut palpable.</td> + </tr> + <tr> + <th scope="row">Contingut permès</th> + <td><a href="/en/HTML/Content_categories#Phrasing_content" style="line-height: 22px;" title="en/HTML/Content categories#Phrasing content">Phrasing content</a>.</td> + </tr> + <tr> + <th scope="row">Omissió de l'etiqueta</th> + <td>{{no_tag_omission}}</td> + </tr> + <tr> + <th scope="row">Elements pares permesos</th> + <td>Qualsevol element que accepti <a href="/en-US/docs/HTML/Content_categories#Phrasing_content" title="HTML/Content_categories#Phrasing_content">phrasing content</a>.</td> + </tr> + <tr> + <th scope="row">Interfície DOM</th> + <td>{{domxref("HTMLElement")}}</td> + </tr> + </tbody> +</table> + +<h2 id="Atributs">Atributs</h2> + +<p>Aquest element només 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> + +<h2 id="Interfície_DOM">Interfície DOM</h2> + +<p>Aquest element implementa la interfície <code><a href="/en/DOM/element" title="en/DOM/element">HTMLElement</a></code>.</p> + +<div class="note"> +<p><strong><span id="result_box" lang="ca"><span>Nota</span> <span>d'implementació</span></span>: </strong>fins Gecko 1.9.2 inclosos, Firefox implementa la interfície <a href="/en/DOM/span" title="en/DOM/span"><span style="font-family: courier new;">HTMLSpanElement</span></a> per a aquest element.</p> +</div> + +<h2 id="Exemple">Exemple</h2> + +<pre class="brush: html"><p>Regular text. <samp>This is sample text.</samp> Regular text.</p> +</pre> + +<h3 id="Resultat">Resultat</h3> + +<p>Regular text. <samp>This is sample text.</samp> Regular text.</p> + +<h2 id="Especificacions">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', 'text-level-semantics.html#the-samp-element', '<samp>')}}</td> + <td>{{Spec2('HTML WHATWG')}}</td> + <td> </td> + </tr> + <tr> + <td>{{SpecName('HTML5 W3C', 'text-level-semantics.html#the-samp-element', '<samp>')}}</td> + <td>{{Spec2('HTML5 W3C')}}</td> + <td> </td> + </tr> + <tr> + <td>{{SpecName('HTML4.01', 'struct/text.html#h-9.2.1', '<samp>')}}</td> + <td>{{Spec2('HTML4.01')}}</td> + <td> </td> + </tr> + </tbody> +</table> + +<h2 id="Nota">Nota</h2> + +<p>Es pot definir una regla CSS perquè el selector <code>samp</code> substitueixi el tipus de font predeterminat del navegador. Les preferències establertes per l'usuari poden tenir prioritat sobre la CSS especificat.</p> + +<h2 id="Veure">Veure</h2> + +<ul> + <li><a href="/en/HTML/Element/code" title="en/HTML/Element/code">HTML Code Element</a></li> +</ul> + +<div>{{ HTMLRef }}</div> |