Chapter 2

Fine-tuning Your Text

What You Will Learn in This Chapter

  • Fine-tuning your text with markup that defines importance and emphasis
  • Marking up text that describes the time, abbreviations, code, and more

Wrox.com Code Downloads for this Chapter

You can find the wrox.com code downloads for this chapter at www.wrox.com/remtitle.cgi?isbn=9781118340189 on the Download Code tab. The code is in the Chapter 2 download and individually named according to the names throughout the chapter.

Beyond the basic structural elements outlined so far, you can use a wide range of elements to mark up your text. The following chapter introduces these elements. After working through it, you’ll have all the elements you might need to mark up almost any kind of content you can dream up.

Elements That Describe Text-Level Semantics

This section introduces a number of elements, which will help you more precisely describe text. Starting with elements that help you describe the importance or emphasis of text and working through elements that describe structured data such as time or represent programmatic code, this chapter adds a much richer set of tools to mark up your web pages.

The <span> Element

The <span> element is a close cousin to the <div>. It’s a generic element with no semantic value that you can use to group inline elements. So, if you have a part of a sentence or paragraph you want to group, you can use the <span> element. Here you can see a <span> element added to indicate which content ...

Get Beginning HTML and CSS now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.