Sunday, March 28, 2010
Inline Elements: Markup for Characters
Posted by devlevis | Sunday, March 28, 2010 | Category:
free html course,
html tricks,
inline elements in html,
learn html,
markup for characters
|
The finest level of markup possible in HTML is at the character level; just as in a
word processor, you can affect formatting on individual characters. This section
covers the basics of inline formatting.
Basic inline tags
Inline formatting elements include the following:
✦ Bold ()
✦ Italic ()
✦ Big text ()
✦ Small text ()
✦ Emphasized text ()
✦ Strong text ()
✦ Teletype (monospaced) text ()
For example, consider the following sample paragraph, whose output is shown in Figure .
<html>
<body>
<p>This paragraph shows the various inline styles, such as
<b>bold</b>, <i>italic</i>, <big>big text</big>, <small>small
text</small>, <em>emphasized text</em>, <strong>strong
text</strong>, and <tt>teletype text</tt>.</p>
</body>
</html>
Note that several inline tags, such as strikethrough (<strike>) and underline (<u>)
tags, have been deprecated in the current specifications. Even the font tag (<font>)
has been deprecated in favor of spanning styles (see the Spanning section later ).
As for the strikethrough and underline tags, they have been replaced
by delete (<del>) and insert (<ins>), which are used for revisions (delete for
deleted text, insert for inserted text).
Subscribe to:
Post Comments (Atom)



Currently have 0 comments: