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

the <i> html tag
the <i> html tag

The <i> html tag

Overview

Italic text in HTML can be acheived using the <i> tag. The <i> 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 <i> tag it is displayed as italic text. The <i> tag can be used multiple times on a webpage and can be nested inside other tags for dramatic effect. Care should be taken when using this tag as italic text can be hard to read, especially at small text sizes.

Basic Usage

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

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

Final Thoughts

Touching on just the surface of the <i> 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 <h2> html tag

Overview In HTML h tags stand for heading and this is split into 6 different h tags (h1, h2, h3, h4, h5 and h6). The <h2> tag itself is considered to be the main repeating heading for a webpage. By default it is displayed much larger than the body text but smaller than the main <h1> header. As with all h tags it is considered important for SEO.When text is put between the opening and closing <h2> tag it is displayed as a large heading. Unlike <h1> a <h2> tag can be used multiple times on a webpage as its job is to be the heading for a web pages main sub topics. Basic Usage <h2>Large header text</h2> 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 <h2> tag, this is done…

Pop goes the Google

With Google’s recent decision to remove categories like SEO from its local business listings, is this the beginnings of Google’s vision of the web, or a first step that will ultimately reduce Google impact on the world? Googletastic Google has always promised internet nirvana by the lure of free web based services and applications, but in recent time this free lunch has always been accompanied by an expensive hangover. When Google offered the chance for all websites to be listed on their monolith of a search engine, they unleashed the horde known as SEO, which ultimately ensured either website owners employing the services of specialised companies to promote websites or for companies to go through hoops to do the same. Even today SEO can be a lucrative revenue stream for those companies who offer that service. Every time Google release an update to its search engine, there is ‘gold rush…

The <strike> html tag

Overview The <strike> HTML tag is mainly used to style text. 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 <strike> tag it is displayed as a strikethrough text. Basic Usage <strike>Some strikethrough text in here</strike> 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 <strike> tag, this is done by adding an attribute to after the strike in the opening <strike> tag Attributes allowed for the <strike>tag include :-class, dir, id,…

Anchor texts of backlinks

Overview Anchor text is a technical term to describe any text which is a link… There is also a version of this that applies to images links. Due to recent Google updates this technique is not as important as it once was, but it should still be looked at History of Anchor text Tim Berners-Lee, a former telecoms engineer is widely regarded as the person who invented the internet as we see it today. Amongst the technologies he created, the ability to navigate between documents was to become known as a hyperlink, and without it, it could be argued that the net would simply not function. Beyond being simply a technology to link documents, by ‘naming’ the link, it allowed people to get an idea of what a web page contained before going to it. When the Google search engine was released, one of the signals Google looked at was…

Adobes Flash in the pan

Adobe Flash, once the popular option for creating animations, websites and games on the net, has recently come under attack by Apple, Google and Microsoft. Is it time to start turning our backs on Adobe, or will the competition finally come unstuck? A short History Created in 1996 by a company called Macromedia, Flash was originally conceived to allow designers and programmers to bring animated graphics and interactive features to the web. As the web browser of the time (and also for many of the browsers today) did not support Flash directly, Macromedia created ‘Flash Player’, a virtual machine which allowed Flash Animations to be shown on all but a few non supported systems. Flash was not the only tool that gave this functionality and Java created a year earlier also brought interactive elements to the web, but due to coming from programming routes, meant Flash was used over Java…

© 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