summaryrefslogtreecommitdiff
path: root/devdocs/html/element%2Fstrike.html
diff options
context:
space:
mode:
Diffstat (limited to 'devdocs/html/element%2Fstrike.html')
-rw-r--r--devdocs/html/element%2Fstrike.html71
1 files changed, 71 insertions, 0 deletions
diff --git a/devdocs/html/element%2Fstrike.html b/devdocs/html/element%2Fstrike.html
new file mode 100644
index 00000000..f5f18581
--- /dev/null
+++ b/devdocs/html/element%2Fstrike.html
@@ -0,0 +1,71 @@
+<header><h1>&lt;strike&gt;</h1></header><div class="section-content">
+<div class="notecard deprecated" id="sect1"><p><strong>Deprecated:</strong> This feature is no longer recommended. Though some browsers might still support it, it may have already been removed from the relevant web standards, may be in the process of being dropped, or may only be kept for compatibility purposes. Avoid using it, and update existing code if possible; see the <a href="#browser_compatibility">compatibility table</a> at the bottom of this page to guide your decision. Be aware that this feature may cease to work at any time.</p></div> <p>The <code>&lt;strike&gt;</code> <a href="../index">HTML</a> element places a strikethrough (horizontal line) over text.</p> <div class="notecard warning" id="sect2"> <p><strong>Warning:</strong> This element is deprecated in HTML 4 and XHTML 1, and obsoleted in the <a href="https://html.spec.whatwg.org/multipage/obsolete.html#strike" target="_blank">HTML Living Standard</a>. If semantically appropriate, i.e., if it represents <em>deleted</em> content, use <a href="del"><code>&lt;del&gt;</code></a> instead. In all other cases use <a href="s"><code>&lt;s&gt;</code></a>.</p> </div>
+</div>
+<h2 id="attributes">Attributes</h2>
+<div class="section-content"><p>This element includes the <a href="../global_attributes">global attributes</a>.</p></div>
+<h2 id="examples">Examples</h2>
+<div class="section-content"><div class="code-example">
+<p class="example-header"><span class="language-name">html</span></p>
+<pre data-signature="+06vveLhj+8oJeCPAhwcMpJos94tBc5ZOhZfsgUW8vU=" data-language="html"><span class="token entity named-entity">&amp;lt;</span>strike<span class="token entity named-entity">&amp;gt;</span>: <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>strike</span><span class="token punctuation">&gt;</span></span>Today's Special: Salmon<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>strike</span><span class="token punctuation">&gt;</span></span> SOLD OUT<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>br</span> <span class="token punctuation">/&gt;</span></span>
+<span class="token entity named-entity">&amp;lt;</span>s<span class="token entity named-entity">&amp;gt;</span>: <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>s</span><span class="token punctuation">&gt;</span></span>Today's Special: Salmon<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>s</span><span class="token punctuation">&gt;</span></span> SOLD OUT
+</pre>
+</div></div>
+<h3 id="result">Result</h3>
+<div class="section-content"><div class="code-example" id="sect3">
+
+<iframe class="sample-code-frame" title="Examples" id="frame_example" src="https://live.mdnplay.dev/en-US/docs/Web/HTML/Element/strike/runner.html?id=example" loading="lazy"></iframe>
+</div></div>
+<h2 id="technical_summary">Technical summary</h2>
+<div class="section-content"><figure class="table-container"><div class="_table"><table class="properties"> <tbody> <tr> <th scope="row">DOM interface</th> <td><a href="https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement"><code>HTMLElement</code></a></td> </tr> </tbody> </table></div></figure></div>
+<h2 id="specifications">Specifications</h2>
+<div class="_table"><table class="standard-table">
+<thead><tr><th scope="col">Specification</th></tr></thead>
+<tbody><tr><td><a href="https://html.spec.whatwg.org/multipage/obsolete.html#strike">HTML Standard <br><small># strike</small></a></td></tr></tbody>
+</table></div>
+<h2 id="browser_compatibility">Browser compatibility</h2>
+<div class="_table"><table>
+<thead>
+<tr id="bct-browser-type">
+<th></th>
+<th colspan="6">Desktop</th>
+<th colspan="6">Mobile</th>
+</tr>
+<tr id="bct-browsers">
+<th></th>
+<th>Chrome</th>
+<th>Edge</th>
+<th>Firefox</th>
+<th>Internet Explorer</th>
+<th>Opera</th>
+<th>Safari</th>
+<th>WebView Android</th>
+<th>Chrome Android</th>
+<th>Firefox for Android</th>
+<th>Opera Android</th>
+<th>Safari on IOS</th>
+<th>Samsung Internet</th>
+</tr>
+</thead>
+<tbody><tr>
+<th><code>strike</code></th>
+<td class="bc-supports-yes">1</td>
+<td class="bc-supports-yes">12</td>
+<td class="bc-supports-yes"><details><summary>1</summary>Before Firefox 4, this element implemented the <code>HTMLSpanElement</code> interface instead of the standard <code>HTMLElement</code> interface.</details></td>
+<td class="bc-supports-yes">Yes</td>
+<td class="bc-supports-yes">15</td>
+<td class="bc-supports-yes">≤4</td>
+<td class="bc-supports-yes">4.4</td>
+<td class="bc-supports-yes">18</td>
+<td class="bc-supports-yes"><details><summary>4</summary>Before Firefox 4, this element implemented the <code>HTMLSpanElement</code> interface instead of the standard <code>HTMLElement</code> interface.</details></td>
+<td class="bc-supports-yes">14</td>
+<td class="bc-supports-yes">≤3.2</td>
+<td class="bc-supports-yes">1.0</td>
+</tr></tbody>
+</table></div>
+<h2 id="see_also">See also</h2>
+<div class="section-content"><ul> <li>The <a href="s"><code>&lt;s&gt;</code></a> element.</li> <li>The <a href="del"><code>&lt;del&gt;</code></a> element should be used if the data has been <em>deleted</em>.</li> <li>The CSS <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/text-decoration"><code>text-decoration</code></a> property can be used to style text with a strikethrough.</li> </ul></div><div class="_attribution">
+ <p class="_attribution-p">
+ &copy; 2005&ndash;2023 MDN contributors.<br>Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.<br>
+ <a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/strike" class="_attribution-link">https://developer.mozilla.org/en-US/docs/Web/HTML/Element/strike</a>
+ </p>
+</div>