summaryrefslogtreecommitdiff
path: root/devdocs/html/element%2Fbig.html
blob: 180dade9777fc4fad52e4fbd4036a8c56a70bc3a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
<header><h1>&lt;big&gt;: The Bigger Text element</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;big&gt;</code> <a href="../index">HTML</a> deprecated element renders the enclosed text at a font size one level larger than the surrounding text (<code>medium</code> becomes <code>large</code>, for example). The size is capped at the browser's maximum permitted font size.</p> <div class="notecard warning" id="sect2"> <p><strong>Warning:</strong> This element has been removed from the specification and shouldn't be used anymore. Use the CSS <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/font-size"><code>font-size</code></a> property to adjust the font size.</p> </div>
</div>
<h2 id="attributes">Attributes</h2>
<div class="section-content"><p>This element has no other attributes than the <a href="../global_attributes">global attributes</a>, common to all elements.</p></div>
<h2 id="examples">Examples</h2>
<div class="section-content"><p>Here we see examples showing the use of <code>&lt;big&gt;</code> followed by an example showing how to accomplish the same results using modern CSS syntax instead.</p></div>
<h3 id="using_big">Using big</h3>
<div class="section-content">
<p>This example uses the obsolete <code>&lt;big&gt;</code> element to increase the size of some text.</p> <h4 id="html">HTML</h4> <div class="code-example">
<p class="example-header"><span class="language-name">html</span></p>
<pre data-signature="8K5imQtM7uDhOWWRqbI0VNNpop1EOtTDE9Au70OI7YY=" data-language="html"><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>p</span><span class="token punctuation">&gt;</span></span>
  This is the first sentence.
  <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>big</span><span class="token punctuation">&gt;</span></span>This whole sentence is in bigger letters.<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>big</span><span class="token punctuation">&gt;</span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>p</span><span class="token punctuation">&gt;</span></span>
</pre>
</div> <h4 id="result">Result</h4>
<div class="code-example" id="sect3">

<iframe class="sample-code-frame" title="Using big sample" id="frame_using_big" width="640" height="60" src="https://live.mdnplay.dev/en-US/docs/Web/HTML/Element/big/runner.html?id=using_big" loading="lazy"></iframe>
</div>
</div>
<h3 id="using_css_font-size">Using CSS <code>font-size</code>
</h3>
<div class="section-content">
<p>This example uses the CSS <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/font-size"><code>font-size</code></a> property to increase the font size by one level.</p> <h4 id="css">CSS</h4> <div class="code-example">
<p class="example-header"><span class="language-name">css</span></p>
<pre data-signature="aP+je2ZXlzCNIRp1/+7Ls2cablZZmbM039qNvPWRNsc=" data-language="css"><span class="token selector">.bigger</span> <span class="token punctuation">{</span>
  <span class="token property">font-size</span><span class="token punctuation">:</span> larger<span class="token punctuation">;</span>
<span class="token punctuation">}</span>
</pre>
</div> <h4 id="html_2">HTML</h4> <div class="code-example">
<p class="example-header"><span class="language-name">html</span></p>
<pre data-signature="SW6zO1ndls+k3FSEMvy0LoIjA8ZSEnrj2hty2cbi0rQ=" data-language="html"><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>p</span><span class="token punctuation">&gt;</span></span>
  This is the first sentence.
  <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>span</span> <span class="token attr-name">class</span><span class="token attr-value"><span class="token punctuation attr-equals">=</span><span class="token punctuation">"</span>bigger<span class="token punctuation">"</span></span><span class="token punctuation">&gt;</span></span>This whole sentence is in bigger letters.<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>span</span><span class="token punctuation">&gt;</span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>p</span><span class="token punctuation">&gt;</span></span>
</pre>
</div> <h4 id="result_2">Result</h4>
<div class="code-example" id="sect4">

<iframe class="sample-code-frame" title="Using CSS font-size sample" id="frame_using_css_font-size" width="640" height="60" src="https://live.mdnplay.dev/en-US/docs/Web/HTML/Element/big/runner.html?id=using_css_font-size" loading="lazy"></iframe>
</div>
</div>
<h2 id="dom_interface">DOM interface</h2>
<div class="section-content"><p>This element implements the <a href="https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement"><code>HTMLElement</code></a> interface.</p></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#big">HTML Standard <br><small># big</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>big</code></th>
<td class="bc-supports-yes">1</td>
<td class="bc-supports-yes">12</td>
<td class="bc-supports-yes">1</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">4</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>CSS: <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/font-size"><code>font-size</code></a>, <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/font"><code>font</code></a>
</li> <li>HTML: <a href="small"><code>&lt;small&gt;</code></a>, <a href="font"><code>&lt;font&gt;</code></a>, <a href="style"><code>&lt;style&gt;</code></a>
</li> <li>HTML 4.01 Specification: <a href="https://www.w3.org/TR/html4/present/graphics.html#h-15.2" target="_blank">Font Styles</a>
</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/big" class="_attribution-link">https://developer.mozilla.org/en-US/docs/Web/HTML/Element/big</a>
  </p>
</div>