CUTCODEDOWN
Minimalist Semantic Markup

Welcome Guest
Please Login or Register

If you have registered but not recieved your activation e-mail in a reasonable amount of time, or have issues with using the registration form, please use our Contact Form for assistance. Include both your username and the e-mail you tried to register with.

Author Topic: Handling Subheadlines  (Read 293 times)

romsen

  • Junior Member
  • *
  • Posts: 13
  • Karma: +0/-0
Handling Subheadlines
« on: 17 Sep 2022, 12:17:42 pm »
Hello,

I ask myself how to handle subheadlines in Sections.
Do I use a <span> inside the <h2> or do I use a separate <p> before the <h2>?

Code: [Select]
<section>
  <h2><span>Subheadline</span> Headline</h2>
  <p>...</p>
</section>

Code: [Select]
<section>
  <p class="subhead">Subheadline</p>
  <h2>Headline</h2>
  <p>...</p>
</section>

Jason Knight

  • Administrator
  • Hero Member
  • *****
  • Posts: 1049
  • Karma: +188/-1
    • CutCodeDown -- Minimalist Semantic Markup
Re: Handling Subheadlines
« Reply #1 on: 17 Sep 2022, 02:06:26 pm »
I think I need to see actual content for this, as I have more questions than answers. What makes the "subheading" a paragraph? If it's a SUB heading, why is it before the actual heading? Typically for logical document order the actual heading, the one you put into a H2, would be before any "sub heading". How is it a sub-heading or sub-headline if it's BEFORE the actual one?
We are all, we are all, we are all FRIENDS! For today we're all brothers, tonight we're all friends. Our moment of peace in a war that never ends.

romsen

  • Junior Member
  • *
  • Posts: 13
  • Karma: +0/-0
Re: Handling Subheadlines
« Reply #2 on: 18 Sep 2022, 01:21:10 pm »
As soon as I can upload a example screenshot, I'll do.
But you are right, I guess "subheadline" is the wrong term to describe, what I mean.

coothead

  • Sr. Member
  • ****
  • Posts: 390
  • Karma: +89/-0
  • I smile benignly
    • coothead's stuff ~ an eclectic collection
Re: Handling Subheadlines
« Reply #3 on: 18 Sep 2022, 04:15:59 pm »
Quote from: romsen
As soon as I can upload a example screenshot, I'll do.

I think Jason would really prefer that you uploaded your HMTL and included it's content.

coothead
~ the original bald headed old fart ~

GrumpyYoungMan

  • Hero Member
  • *****
  • Posts: 787
  • Karma: +8/-0
    • Grumpy Young Man
Re: Handling Subheadlines
« Reply #4 on: 18 Sep 2022, 05:02:45 pm »
You could use CodePen, or paste the actual HTML code using the code tag…
Trying to learn a new trick to prove old dogs can learn new ones...

Total Novice have-a go Amateur Programmer - not sure that is the right thing to say... but trying to learn...

 

SMF spam blocked by CleanTalk

Advertisement