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

the <strong> html tag
the <strong> html tag

The <strong> html tag

Overview

The <strong> HTML tag is known as a phrase tag, it is mainly used to style text. By default it makes text bold to emphasize the look of the tagged text. It is often used in replacement for the b tag. In SEO terms it helps with keyword optimisation, but it is unkown if it is more, less or equally effective as using the b tag. 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 <strong> tag it is displayed as a strong text.

Basic Usage

<strong>Some strong text in here</strong>
Any text between the opening and closing tag will be displayed as a strong text.

Advance Usage

It is possible to style and add functionality to the <strong> tag, this is done by adding an attribute to after the p in the opening <strong> tag
Attributes allowed for the <strong>tag include :-class, dir, id, lang, style and title.
In most cases class and id are used and its basic usage is shown below
<strong id=”header”>Some strong text</strong>
With all attributes there is a space after the initial p 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 <strong> tag may use either the id or class as an atribute.
The attribute style allows you to include css style information for a single <strong> 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

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

Final Thoughts

Touching on just the surface of the <strong> 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.

Case Study – Cucina by Design

Cucina by Design is a new company based in Witney who provide stylish and contemporary kitchen and bathroom options, which add value to home and enhance their customers living experience. During the initial meeting it became clear the owner Keith had a clear vision of what the company was about, but lacked the clout online to show potential customers of what the company could achieve. We took time to discuss the company’s products and talked about the segmentation of his customer base. His current stationary was very clear and timeless and he wanted these values translated to the web. Keith also had a need to have his website visible to local clients using search engines like Google. Keith also wanted Websites by mark to supply not only the design, but also supply copy, images and the know how to make the site SEO friendly and rank well. Within a few…

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…

When our space became Myspace

With what we can do online exploding exponentially on a daily basis, it’s often the case that Social Networks like Myspace offer a useful way to wall your online world. With Myspace now offering a dedicated online games platform, how long before we get our first truly interactive broadcast channel, and will the first past the post end such giants as Facebook, You Tube or even Google itself. All seeing Google Google has become the centre of most people internet universe, its quick loading time and accurate results has always been popular with users and with its ever evolving services it’s difficult to see how Google will ever lose its dominate position. With the EU constantly fining Microsoft for uncompetitive practises would it is possible in the future for Google to come to the same fate. With Governments around the worlds relentless push to regulate and sanitise the net, it…

The <cite> html tag

Overview The <cite> HTML tag is known as a phrase tag, it is mainly used to style text. By default it displays text as italic which is ideal for showing a quotation or citation. 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 <cite> tag it is displayed as a citation text. Basic Usage <cite>Some citation text in here</cite> Any text between the opening and closing tag will be displayed as citation text. Advance Usage It is possible to style and add functionality to the <cite> tag, this is done by adding an attribute to after the cite in the opening <cite> tag Attributes allowed for the <cite>tag include :-class, dir,…

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>…

© 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