Expand your HTML skills through an MDN Fellowship - Apply by April 1 http://mzl.la/MDNFellowship

mozilla

Compare Revisions

<samp>

Change Revisions

Revision 494887:

Revision 494887 by kscarfone on

Revision 500371:

Revision 500371 by Tyriar on

Title:
<samp>
<samp>
Slug:
Web/HTML/Element/samp
Web/HTML/Element/samp
Tags:
"Élément", "HTML text-level semantics", "Element", "Reference", "Référence", "Web", "HTML"
"Élément", "HTML text-level semantics", "Element", "Reference", "Référence", "Web", "HTML"
Content:

Revision 494887
Revision 500371
n11      The HTML <span style="font-family: Courier New;">&lt;samp&gn11      The HTML <span style="font-family: Courier New;">&lt;samp&g
>t;</span> element is an inline element intended to identify sampl>t;</span> element is an element intended to identify sample outpu
>e output from a computer program. It is usually displayed in the >t from a computer program. It is usually displayed in the browser
>browser's default monotype font (such as Lucida Console).>'s default monotype font (such as Lucida Console).
n13    <h2 id="Usage_context">n13    <div>
14      Usage context14      <ul class="htmlelt">
15    </h2>
16    <table class="standard-table">
17      <tbody>
18        <tr>15        <li>
19          <td>16          <dfn><a href="/en-US/docs/HTML/Content_categories" titl
 >e="HTML/Content_categories">Content categories</a></dfn><a href="
 >/en/HTML/Content_categories#Flow_content" style="line-height: 22p
 >x;" title="en/HTML/Content categories#Flow content">Flow content<
 >/a><span style="line-height: 22px;">,&nbsp;</span><a href="/en/HT
 >ML/Content_categories#Phrasing_content" style="line-height: 22px;
 >" title="en/HTML/Content categories#Phrasing content">phrasing co
 >ntent</a>, palpable content.
20            Content categories
21          </td>
22          <td>
23            <a href="/en/HTML/Content_categories#Flow_content" ti
>tle="en/HTML/Content categories#Flow content">Flow content</a>, < 
>a href="/en/HTML/Content_categories#Phrasing_content" title="en/H 
>TML/Content categories#Phrasing content">phrasing content</a> 
24          </td>
25        </tr>17        </li>
26        <tr>18        <li>
27          <td>
28            Permitted content
29          </td>
30          <td>
31            <a href="/en/HTML/Content_categories#Phrasing_content19          <dfn>Permitted content</dfn><a href="/en/HTML/Content_c
>" title="en/HTML/Content categories#Phrasing content">Phrasing co>ategories#Phrasing_content" style="line-height: 22px;" title="en/
>ntent</a>>HTML/Content categories#Phrasing content">Phrasing content</a>.
32          </td>
33        </tr>20        </li>
34        <tr>21        <li>
35          <td>22          <dfn>Tag omission</dfn>{{no_tag_omission}}
36            Tag omission
37          </td>
38          <td>
39            None, must have both a start tag and an end tag.
40          </td>
41        </tr>23        </li>
42        <tr>24        <li>
43          <td>
44            Permitted parent elements
45          </td>
46          <td>
47            Any element that accepts <a href="/en/HTML/Content_ca25          <dfn>Permitted parent elements</dfn>Any element that ac
>tegories#Phrasing_content" title="https://developer.mozilla.org/e>cepts&nbsp;<a href="/en-US/docs/HTML/Content_categories#Phrasing_
>n/HTML/Content_categories#Phrasing_content">phrasing content</a>.>content" title="HTML/Content_categories#Phrasing_content">phrasin
 >g content</a>.
48          </td>
49        </tr>26        </li>
50        <tr>27        <li>
51          <td>28          <dfn>DOM interface</dfn>{{domxref("HTMLElement")}}
52            Normative document
53          </td>
54          <td>
55            <a class="external" href="http://www.w3.org/TR/html5/
>text-level-semantics.html#the-samp-element" title="http://www.w3. 
>org/TR/html5/text-level-semantics.html#the-samp-elementt">HTML5,  
>section 4.6.13</a>; <a class="external" href="http://www.w3.org/T 
>R/html401/struct/text.html#h-9.2.1" title=" title=">HTML 4.01, se 
>ction 9.2.1</a> 
56          </td>
57        </tr>29        </li>
58      </tbody>30      </ul>
59    </table>31    </div>
nn55    <h2>
56      Specifications
57    </h2>
58    <table class="standard-table">
59      <thead>
60        <tr>
61          <th scope="col">
62            Specification
63          </th>
64          <th scope="col">
65            Status
66          </th>
67          <th scope="col">
68            Comment
69          </th>
70        </tr>
71      </thead>
72      <tbody>
73        <tr>
74          <td>
75            {{SpecName('HTML WHATWG', 'text-level-semantics.html#
 >the-samp-element', '&lt;samp&gt;')}}
76          </td>
77          <td>
78            {{Spec2('HTML WHATWG')}}
79          </td>
80          <td>
81            &nbsp;
82          </td>
83        </tr>
84        <tr>
85          <td>
86            {{SpecName('HTML5 W3C', 'text-level-semantics.html#th
 >e-samp-element', '&lt;samp&gt;')}}
87          </td>
88          <td>
89            {{Spec2('HTML5 W3C')}}
90          </td>
91          <td>
92            &nbsp;
93          </td>
94        </tr>
95        <tr>
96          <td>
97            {{SpecName('HTML4.01', 'struct/text.html#h-9.2.1', '&
 >lt;samp&gt;')}}
98          </td>
99          <td>
100            {{Spec2('HTML4.01')}}
101          </td>
102          <td>
103            &nbsp;
104          </td>
105        </tr>
106      </tbody>
107    </table>
t96      <li>HTML 4.01 Specification: <a class="external" href="httpt
>://www.w3.org/TR/html4/struct/text.html#h-9.2.1">Phrase Elements< 
>/a> 
97      </li>

Back to History