<big>: The Bigger Text element #
::: section-content ::: {#sect1 .notecard .deprecated} Deprecated: 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 compatibility table at the bottom of this page to guide your decision. Be aware that this feature may cease to work at any time. :::
The <big>
HTML deprecated element renders the enclosed
text at a font size one level larger than the surrounding text (medium
becomes large
, for example). The size is capped at the browser's
maximum permitted font size.
::: {#sect2 .notecard .warning}
Warning: This element has been removed from the specification and
shouldn't be used anymore. Use the CSS
font-size
property to adjust the font size.
:::
:::
Attributes #
::: section-content This element has no other attributes than the global attributes, common to all elements. :::
Examples #
::: section-content
Here we see examples showing the use of <big>
followed by an example
showing how to accomplish the same results using modern CSS syntax
instead.
:::
Using big #
::: section-content
This example uses the obsolete <big>
element to increase the size of
some text.
HTML #
::: code-example [html]{.language-name}
<p>
This is the first sentence.
<big>This whole sentence is in bigger letters.</big>
</p>
:::
Result #
::: {#sect3 .code-example} ::: iframe ::: ::: :::
Using CSS font-size
#
::: section-content
This example uses the CSS
font-size
property to increase the font size by one level.
CSS #
::: code-example [css]{.language-name}
.bigger {
font-size: larger;
}
:::
HTML #
::: code-example [html]{.language-name}
<p>
This is the first sentence.
<span class="bigger">This whole sentence is in bigger letters.</span>
</p>
:::
Result #
::: {#sect4 .code-example} ::: iframe ::: ::: :::
DOM interface #
::: section-content
This element implements the
HTMLElement
interface.
:::
Specifications #
::: _table #
Specification #
:::
Browser compatibility #
::: _table Desktop Mobile
Chrome Edge Firefox Internet Explorer Opera Safari WebView Android Chrome Android Firefox for Android Opera Android Safari on IOS Samsung Internet
big
1 12 1 Yes 15 ≤4 4.4 18 4 14 ≤3.2 1.0
:::
See also #
::: section-content
- CSS:
font-size
,font
- HTML:
<small>
,<font>
,<style>
- HTML 4.01 Specification: Font Styles{target="_blank"} :::
::: _attribution
© 2005–2023 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5
or later.
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/big{._attribution-link}
:::