DEV Community

Share Point Anchor
Share Point Anchor

Posted on • Originally published at sharepointanchor.com on

HTML <big> Big Tag

Normally, the font size in HTML is measured in conventional units from 1 to 7 , and the default size is 3. The tag in HTML is used to increase the selected text size by one size bigger than the surrounding text.

Note : The tag is a deprecated HTML tag , and it is not available in HTML 5.

The tag is placed within the tag. This tag will make the text size larger, however the increased text cannot be larger than the maximum font size of the browser.

Estimated reading time: 4 minutes

Syntax:

In HTML, the big tag contains both an opening tag and closing tag.


<big> text </big>

Enter fullscreen mode Exit fullscreen mode

Sample of the HTML Tag:


<!DOCTYPE html>
<html>
  <head>
    <title>HTML Big Tag</title>
  </head>
  <body>
    <p>This is the default size of the paragraph</p>
    <p><big>This is the larger text. </big></p>
  </body>
</html>

Enter fullscreen mode Exit fullscreen mode

Result:

Result

The tag is forbidden in updated version of HTML. So instead of the tag, you can use the CSS font-size property to make the text bigger.

Sample of the font-size property:


<!DOCTYPE html>
<html>
  <head>
    <title>Title of the document</title>
    <style>
      p {
        font-size: 16px;
      }
      span {
        font-size: 19px;
      }
    </style>
  </head>
  <body>
    <p>
      This text is normal size.<br>
      <span> This text is bigger.</span>
    </p>
  </body>
</html>

Enter fullscreen mode Exit fullscreen mode

Result:

Result

Attributes:

Only the Global Attributes apply to the tag. There are no attributes that are specific to the tag in HTML.

Styling Methods for Tag:

You can use the following CSS properties to style an HTML big tag.

Properties to style the visual weight/emphasis/size of the text in tag:

  • CSS font-style – This CSS property helps to set the font style of the text such as normal, italic, oblique, initial, inherit.
  • CSS font-family – This CSS property specifies a prioritized list of one or more font family names or generic family names for the selected element.
  • CSS font-size – This CSS property will help to set the size of the font.
  • CSS font-weight – This CSS property used to define whether the font should be bold or thick.
  • CSS text-transform – This CSS property will control the text case and capitalization.
  • CSS test-decoration – This CSS property specifies the decoration added to text such as text-decoration-line , text-decoration-color , text-decoration- style.

Styles to coloring the text in Tag:

  • CSS color – This CSS property will specify the color of the text content and decorations.
  • CSS background-color – This CSS property helps to set the background color of an element.

Text layout styles for Tag:

  • CSS text-indent – This CSS property is used to specify the indentation of the first line in a text block.
  • *CSS text-overflow * – This CSS property helps to describe how overflowed content that is not displayed should be signaled to the user.
  • CSS white-space – This CSS property describes how white-space inside an element is handled.
  • CSS word-break – This CSS property decides where the lines should be broken.

Other Properties for Tag:

  • CSS text-shadow – This CSS property helps to add the shadow to text.
  • CSS text-align-last – This CSS property will set the alignment of the last line of the text.
  • CSS line-height – This CSS property defines the height of a line.
  • CSS letter-spacing – This CSS property helps to decide the spaces between letters/characters in a text.
  • CSS word-spacing – This CSS property specifies the spacing between every word.

Browser Support:

Browser Support

Related Articles:

The post HTML Big Tag appeared first on Share Point Anchor.

Top comments (0)