Italics in print is been used for a number of reasons including listing book and movie titles, foreign words, mathematical variable names and emphasis, but since italic text is often not as clear on the Web, many editors use bold face or a combination of bold and italics where italics would have been used in print. See examples below.
The book Le Petit Prince is considered to be poétique et philosophique in French literary culture (See French Wikipedia: Le Petit Prince).
The book Le Petit Prince is considered to be poétique et philosophique in French literary culture (See French Wikipedia: Le Petit Prince).
The book Le Petit Prince is considered to be poétique et philosophique in French literary culture (See French Wikipedia: Le Petit Prince).
Many accessibility experts recommend using STRONG instead of B for bold face text and EM instead of I for italic text. The reasons for this recommendation are
Screen readers are more likely to recognize STRONG, EM and pronounce them in a different voice or volume.
STRONG, EM are semantic tags meaning that they indicate that the author wishes to provide emphasis which is rendered as bold/italic on a visual browser or in different speaking styles on a screen reader.
It should be noted though that many authors specify bold or italics purely for visual reasons. In these cases, B or I may be better because having a screen reader switch voices without adding true emphasis may be distracting.
XHTML NOTE Both the B and I tags are included in the XHTML standard, and it is not currently a part of Section 508 policy that all B and I tags be replaced with STRONG and EM tags.
These items should definitely be tagged as STRONG and EM.
When bold face or italics is primarily visual and tied to a specific presentational use, it is often better to include a specification for bold face or italics. For instance if you want a CAPTION tag within a TABLE to always be bold or bold and italics, you can use a CSS declaration such as
caption {font-weight:bold}
caption {font-style: italic; font-weight:bold;}
However, there may still be times when using a B or I tag to indicate visual formatting is the most efficient solution. From a standards point of view, a stylesheet solution such as <span
class="bold">Bold Text</span> is just as semantically
vacuous as <b>Bold Text</b> and consumes many more ASCII characters in the HTML file.
There are some tags which are not commonly known which are designed to represent different semantic concepts which are normally indicated by italics or other formatting changes. These tags are supported by all browsers and can be restyled with CSS.
The CITE tag is semantically designated for short citations such as book titles. The default formatting is italics, but CSS can be used to make this tag both visually bold and italics.
The VAR tag is semantically designated to represent variables in computer code or mathematical equations.
The DEL tag is semantically designated to indicate text which should be removed and should be used as a substitute for the STRIKE tag.
The INS tag is used to indicate recently inserted text or text that replaces deleted text. The formatting is underline by default, but you can use CSS to change it to some other format (perhaps a new color or with a color background).
The CODE tag is semantically designated to spell out code such as HTML tags (e.g. <br /> to use or CSS specifications (e.g. {font-weight:bold}).