The big html tag
Overview
Having the body copy in a web page all displayed as the same size is often normal, but there are times where by making certain parts of the copy slightly bigger, visually breaks up the text and makes it easier to read. In HTML the <big> tag can be used for this. The <big> tag is one of the original ways to format text and more recently CSS and other tags have reduced the importance of this tag. It is still a good tag when used correctly. When text is put between the opening and closing <big> tag it is displayed as big text. The <big> tag can be used multiple times on a webpage and can be nested inside other tags for dramatic effect.
Basic Usage
<big>Some big text</big>
Any text between the opening and closing tag will be displayed as a large heading.
Advance Usage
It is possible to style and add functionality to the <big> tag, this is done by adding an attribute to after the big in the opening <big> tag.
Attributes allowed for the <big>tag include :-class, dir, id, lang, style and title.
In most cases class and id are used and its basic usage is shown below
<big id=”header”>Some big text</big>
With all attributes there is a space after the initial b then the attribute name, then an equal’s sign and the identifier of the attribute in double quotes.
Both id and class attributes refer to CSS styling of the element and is either stored in the <head> of the webpage on in an external file.
With id this usually refers to a single instance on a page where as class usually refers to a repeating element on a page, it is for this reason for the <big> tag the class attribute is nearly always used over the id attribute although in practice it makes no difference.
The attribute style allows you to include css style information for a single <big> tag.
The dir attribute allows for left reading and right reading text, lang allows you to specify a language for the tag and title allows you to include extra information for a tag.
It is possible to attach scripts to tags, as well adding functionality to a webpage, these scripts tend to be written in Javascript and therefore outside the scope of this document
Examples
<big>Some big text</big> – basic usage example.
<big id=”header”>Some big text</big> – big text which is styled by the id header.
<big class=”headerclass”> Some big text </big> – big text which is styled by the class headerclass.
<big id =”header” class=”headerclass”> Some big text </big> – big text which is styled by the class headerclass and the id header.
<big style=”color:#F00″>Some big text</big> – big text which has a custom colour of red.
<big dir=”rtl”>Some big text</big> – big text where the text reads from right to left.
<big lang=”uk”>Some big text</big> – big text where the language has been tagged as UK.
<big title=”ptitle”>Some big text</big> – big text where the tag has been titled ptitle.
Final Thoughts
Touching on just the surface of the <big> HTML tag it is easy to see how versatile it is. To take full advantage of it an understanding of CSS is an advantage.