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 9292505
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T20:53:46+00:00 2026-06-18T20:53:46+00:00

Im writing a markup for Corpora – A Business Theme And have divided it

  • 0

Im writing a markup for Corpora - A Business Theme

And have divided it into main sections in this way:

<header>
    <div class="roof"></div>
    <nav></nav>
    <div class="slides"></div>
</header>
<div class="content">
    <div class="roof"></div>
    <aside></aside>
    <div class="main"></div>
</div>
<footer>
    <div class="roof"></div>
    <div class="credit"></div>
</footer>

Is that okay to name different sections of the page with the same class name .roof?
[Edit]
So, considering my .roof‘s have different styling I have to write

<header>
    <div class="roofHeader"></div>
    <nav></nav>
    <div class="slides"></div>
</header>
<div class="content">
    <div class="roofContent"></div>
    <aside></aside>
    <div class="main"></div>
</div>
<footer>
    <div class="roofFooter"></div>
    <div class="credit"></div>
</footer>

?

  • 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-18T20:53:47+00:00Added an answer on June 18, 2026 at 8:53 pm

    No issues naming different section with same Name like in your example(roof) until you want them to style them the same way or make them look the same way .

    for example

    <header>
    <div class="roof"></div>
    <nav></nav>
    <div class="slides"></div>
    </header>
    <div class="content">
    <div class="roof"></div>
    <aside></aside>
    <div class="main"></div>
    

    IN the above code the div in the header section will look exactly the same as a div in the content section .

    To add more into this – If you are writing a markup for a theme – The best practice would be to –

    1. write global style classes

    2. section specific style classes

    for example :-
    Section specific styling
    .header{
    width:100%;
    font-family:Ariel;
    font-size:12px;
    }
    Global styling
    .float-right{
    float:right;
    }

    Now the .header class will be used specific for the header section .And it will provide us with maximun control to change anything in there and wont effect other section until and unless we use it somewhere else in our markup .

    The .float-right class can be used anywhere in the html divs or section which you want to floated to the right side .

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

Sidebar

Related Questions

I'm writing markup extension. I have XAML like this <TextBlock Text={ui:Test SomeInfo} /> and
Im writing a markup and have a doubt at this part: And here is
here is my markup: <div> <h3>Title</h3> <ul class=eventslist> <li>This event would be discarded</li> <ul>
If I have markup like this: <li class=supress hidden></li> <li class=supress hidden></li> <li class=supress
I am writing markup for a restaurant review. This is what I’ve got so
I have some markup like this: <form id=ddlSelections runat=server> <asp:ScriptManager ID=ScriptManager1 runat=server EnablePartialRendering=true />
Writing a test app to emulate PIO lines, I have a very simple Python/Tk
Writing a python program, and I came up with this error while using the
I'm trying to make a meta-language for writing markup code (such as xml and
I'm writing a TemplateEngine that will allow me to use my own markup in

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.