HTML: How to Markup Subtitle

By Xah Lee. Date: . Last updated: .

This page shows you the proper ways to markup subtitles, alternative title, taglines.

Using the right tag to markup is important, because otherwise search engine may not properly categorize your page. (aka SEO.)

Firsts of all, by W3C's recommendation, you should not use sub-section header such as “h2” to mark subtitle.

Here's proper ways that will be recognized by Google Search.

Using Colon in “h1” Tag

One simple way is to use a colon. Like this:

<h1>Lord of the Flies: on Human Nature</h1>

Using “span” in “h1” Tag

Another way is to use “span” tag for the subtitle. Like this:

<h1>Lord of the Flies <span>on Human Nature</span></h1>

Using “header” Tag

A more elaborate way is to use the “header” tag, like this:

<h1>Lord of the Flies</h1>
<p>on Human Nature</p>

Use CSS to style them.

[see Visual CSS]

HTML Basics

  1. HTML Basics
  2. HTML5 Tags
  3. Case Sensitivity
  4. Allowed Characters
  5. Charset and Encoding
  6. Self-Closing Tags
  7. Multiple Class Value
  8. HTML Entity List

HTML Table

  1. HTML Table Examples
  2. HTML Table, thead, tbody, tfoot
  3. HTML Table, colgroup, col
  4. Styling HTML Table with CSS
  5. CSS: 3 Columns Page Layout
  6. Pure CSS Table


  1. Viewport Meta
  2. the Root Element
  3. iframe
  4. video
  5. audio
  6. figure
  7. dl, dt, dd
  8. s strike del
  9. time
  10. meter
  11. progress
  12. q
  13. address
  14. canvas
  15. ruby
  16. HTML5 Custom Data Attribute
  17. Big Tag
  18. Image Maps
  19. Marquee, Scrolling Text
  20. How to Markup Subtitle
  21. Meta Language Tag Obsolete
  22. Browser Auto Refresh

HTML4 Frameset

  1. HTML: Split Windows; Frameset
  2. HTML Nested Frameset
Like it? Help me by telling your friends. Or, Put $5 at patreon.

Or, Buy JavaScript in Depth

If you have a question, put $5 at patreon and message me.

Web Dev Tutorials