the <small> html tagWebsites by Mark - 7 Woodrush gardens, Carterton, Oxfordshire. OX18 1JE

the <small> html tag
the <small> html tag

The <small> 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 smaller, visually breaks up the text and makes it easier to read. In HTML the <small> tag can be used for this. The <small> 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 <small> tag it is displayed as small text. The <small> tag can be used multiple times on a webpage and can be nested inside other tags for dramatic effect.

Basic Usage

<small>Some small text</small>
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 <small> tag, this is done by adding an attribute to after the small in the opening <small> tag.
Attributes allowed for the <small>tag include :-class, dir, id, lang, style and title.
In most cases class and id are used and its basic usage is shown below
<small id=”header”>Some small text</small>
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 <small> 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 <small> 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

<small>Some small text</small> – basic usage example.
<small id=”header>Some small text</small> – small text which is styled by the id header.
<small class=”headerclass”> Some small text </small> – small text which is styled by the class headerclass.
<small id =”header” class=”headerclass”> Some small text </small> – small text which is styled by the class headerclass and the id header.
<small style="color:#F00">Some small text</small> – small text which has a custom colour of red.
<small dir="rtl">Some small text</small> – small text where the text reads from right to left.
<small lang="uk">Some small text</small> – small text where the language has been tagged as UK.
<small title="ptitle">Some small text</small> – small text where the tag has been titled ptitle.

Final Thoughts

Touching on just the surface of the <small> HTML tag it is easy to see how versatile it is. To take full advantage of it an understanding of CSS is an advantage.

Our blog

Some random stories from our blog.

The day the internet died

From just a few documents linked together, the internet has grown virus like, infecting most our lives. In most households, a day is not complete without checking the news, watching videos or playing online games. From these humble beginnings, the internet brought the promise of free access for all. This universal phrase has not only transformed many lives but has created many businesses and services along the way. Google, the Microsoft of the internet, is an amazing example, there’s nothing you can’t get for free from Google and in the process magically making money out of ‘free’. So when did the internet die?  Ironically the day Google was created. Google understood how to really make money out of the internet, and in fact they still do. They created an ‘engine’ that would list everything, for free. And with that one single act ensured Google would be the one source of…

Yell Sites, are they hell sites or are Yell Sites well SEO’d websites

With everyone’s favourite local directory website now offering SEO and marketing for your website, does Yell really have a real world solution or is it style over substance? In this article I will show you what is needed to SEO any webpage, so you can decide. Now let’s be clear about the definition of SEO before we begin. SEO is not marketing and SEO is not copywriting. The only purpose of applying SEO is to increase where your listing appears in Google. Copywriting and Marketing are there to help convert visitors to customers. While it is true that copy can be written that will convert visitors to customers, and will rank well on Google, it is important to decide which is more important for any given page. Is the primary focus to increase visibility on a Search engine on Google or to make use of the natural traffic you already…

The <s> html tag

Overview The <s> HTML tag is mainly used to style text it has the same functionality as the <strike> HTML tag. By default it displays text as with a strikethrough line through it which is ideal for showing corrections or previous amended text. It works equally as well in table based layouts as well as CSS based ones. As with all phrase based HTML tags it can be used in situations where consistancy between browsers is difficalt to acheive in other ways. When text is put between the opening and closing <s> tag it is displayed as a strikethrough text. Basic Usage <s>Some strikethrough text in here</s> Any text between the opening and closing tag will be displayed as strikethrough text. Advance Usage It is possible to style and add functionality to the <s> tag, this is done by adding an attribute to after the strike in the opening <s>…

Should Google Blogger off?

Google recently announced a major upgrade to its free blogging platform Blogger. Does this represent a real leap forward in personalised communication or just another Google Application with little appeal outside the casual blogger? Blogging killed the DIY home page Free blogging services have been around for many years now and offer a great way to get that latest irritation off your chest. Many blogs are now used instead of personal websites, this comes down to many reasons but for most non technical users the power of a blog comes from being able to add new content in minutes and at the click of a button give the site a makeover. Although there are many of hosted blogs to choose from Blogger from Google is extremely popular. Blogger offers for free a way for users to create blog websites in a very short period of time, add functionality and the…

The <dfn> html tag

Overview The <dfn> HTML tag is known as a phrase tag, it is mainly used to style text. By default it makes text italic to illustrate that the tag text is a definition. It works equally as well in table based layouts as well as CSS based ones. As with all phrase based HTML tags it can be used in situations where consistancy between browsers is difficalt to acheive in other ways. When text is put between the opening and closing <dfn> tag it is displayed as a definition text. Basic Usage <dfn>Some definition text in here</dfn> Any text between the opening and closing tag will be displayed as a definition text. Advance Usage It is possible to style and add functionality to the <dfn> tag, this is done by adding an attribute to after the p in the opening <dfn> tag Attributes allowed for the <dfn>tag include :-class, dir,…

© 2011 Websites by Mark. Do not reproduce any part of this website without permission.
Email : mark@websitesbymark.co.uk - Phone : 07716 447228 / 01993 820005
Postal Address : 7 Woodrush Gardens, Carterton, Oxfordshire. OX18 1JE