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

  • SEARCH
  • Home
  • 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 9186609
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T19:34:16+00:00 2026-06-17T19:34:16+00:00

HTML5’s new outlining structure causes user agents to render headings using the same tag

  • 0

HTML5’s new outlining structure causes user agents to render headings using the same tag at different sizes as you descend through sections. Is there a way to control this, preferably through a CSS selector?

I like to use the “h1 for everything” approach, since I can move sections in and out of the outline without re-tagging the headings, but I can’t think of a way to control exactly what styles the user agent uses for each level.

Ideally I would be able to say something like h1:level1{ font-size: 18pt }, which would only change the section headings and h1:level2 to select the sub-section headings. Granted, I could just as easily use section h1 and section section h1, but I’m wondering if there is something cleaner than repeating “section” for as deep as my outline goes.

  • 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-06-17T19:34:17+00:00Added an answer on June 17, 2026 at 7:34 pm

    Set your font size in ems, then set your section‘s font-size to be anything under 1em.

    For example:

    section {
        font-size: .9em;
    }
    
    h1 {
        font-size: 1.8em;
    }
    

    Here’s the fiddle: http://jsfiddle.net/LLhFc/

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

Sidebar

Related Questions

HTML5 will be next super star. So~~~How to using new idea to implement AJAX
I want use html5's new tag to play a wav file (currently only supported
HTML5 introduces new tag datalist , which connected to <input list=datalistID> provides autocomplete functionality.
Using HTML5 Canvas and Javascript I need to display different values (represented by a
HTML5 draft contains an API called EventSource to stream data (notifications) trough javascript using
In HTML5 there is a new input type, 'search'. On most browser it's just
In HTML5, name is no longer a valid attribute of the anchor tag (
Is html5 <time> tag well supported by browsers? (What browsers) Any Javascript function to
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
Html5 has new attributes like the novalidation attribute for the form element and the

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.