HTML Tutorial: Complete HTML Tutorial
About Lesson

HTML <big> Tag


Concept

The <big> tag was used in HTML to increase the font size of the text enclosed within it, making it appear larger than the surrounding text. However, it’s essential to note that this tag is not supported in HTML5, and its usage is considered obsolete.

Implementation

Since the <big> tag is no longer supported, it’s advisable to use CSS to achieve the desired effect of enlarging text. You can specify different font sizes for HTML elements using CSS properties.

Sponsored by Google

Example 1: Using CSS to Enlarge Text

<!DOCTYPE html>
<html>
<head>
<style>
.large-text {
  font-size: 20px;
}
</style>
</head>
<body>

<h1>Emphasizing Text with CSS</h1>
<p class="large-text">This text is larger than the surrounding text.</p>
<p>Regular text for comparison.</p>

</body>
</html>

Example 2: Using Inline CSS

<!DOCTYPE html>
<html>
<head>
</head>
<body>

<h1>Inline CSS for Larger Text</h1>
<p style="font-size: 20px;">This text is styled with inline CSS to appear larger.</p>
<p>Regular text for comparison.</p>

</body>
</html>

These examples demonstrate how to achieve the effect previously provided by the <big> tag using modern CSS practices.


By defining the font size, you can control the appearance of the text and ensure compatibility across various browsers.