Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4625318
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T03:15:18+00:00 2026-05-22T03:15:18+00:00

I have a title and subtitle like so: The Programmer Saving the world with

  • 0

I have a title and subtitle like so:

The Programmer

Saving the world with bikesheds and perl hacks.

Which I’m representing like this:

<h1>The Programmer</h1>
<p><strong>Saving the world with bikesheds and perl hacks.</strong></p>

However perhaps this is more appropriate:

<h1>The Programmer</h1>
<p class="subtitle">Saving the world with bikesheds and perl hacks.</p>

But since it seem to make sense to put a subtitle class on the element wouldn’t this be better:

<h1>The Programmer</h1>
<h2>Saving the world with bikesheds and perl hacks.<h2>

Which would be more appropriate?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T03:15:18+00:00Added an answer on May 22, 2026 at 3:15 am

    Well i think it that using proper markup it’s more appropriate, if it’s an header (like the start of a chapter) you should definitly use <h2>. If it’s just a way of emphasize content i think it’s better to use the CSS class so that you explain what it is.

    If you use html 5 you may be intersted in teh <header> tag like in this example:

    <header>
        <h1>The most important heading on this page</h1>
        <p>With some supplementary information</p>
    </header>
    
    <article>
    <header>
        <h1>Title of this article</h1>
        <p>By Richard Clark</p>
    </header>
        <p>...Lorem Ipsum dolor set amet...</p>
    </article>
    

    here and here there are some quick info on the header tag in html5.

    You can also read this chapter of “Dive into html5” for more complete reference (read the whole book while you are at it, it’s good!)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a table sort of like this: TABLE BOOKS ID TITLE SUBTITLE ------------------------------------
I have a block of HTML that looks like this: <div id=header> <h1>title</h1> <h2>subtitle</h2>
I have an XML like this: <EXP> <TITLES> <SUBTITLE CL=AXT4 FL=1 NB=Text 1/> </TITLES>
I want to have my title tag look like this: My Website - Name
I have an XQuery return statement like: return <li> <h3>{ string($TELECAST/title/maintitle) }</h3> <h4>{ string($TELECAST/title/subtitle)
I have a 2x UILabels, 1 title 1 subtitle, Which are meant to change
I have a mapview, with a title and a subtitle for my annotations which
I have one html file like this one. <body class=iphone onLoad=doSomething()> <div id=title_wrapper><h2 id=title>[[[TITOLO]]]</h2></div>
I have a 'Title' column with abbreviations (Ceo, Cio,..) which I have to capitalize.
I have a text title that reads This User The Title Of The Post

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.