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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T21:39:15+00:00 2026-05-15T21:39:15+00:00

I just found a page of web developer interview questions , and I’m not

  • 0

I just found a page of web developer interview questions, and I’m not sure what the answers are for two of them. For Q1, I pick answer e. For Q2, I pick answer b, but I’m not sure if there are better ways to do it.

  1. Which markup structure is most semantic for a title within a document body, considering that the title may be horizontally centered using a large, bold, red font?

    a. <h1>This is a Title</h1>

    b. <p align="center"><font size="+3"><b>This is a Title</b></font></p>

    c. <h1 style="font-weight:bold; font-size:large; text-align:center; color:red;">This is a Title</h1>

    d. <title>This is a Title</title>

    e. <h1 class="LargeRedBoldCenterHeading">This is a Title</h1>

    f. <span class="title">This is a Title</span>

  2. Are each of the following footer markup solutions acceptable? Why or why not? What alternate solution(s) would you propose?

    a. <div id="footer">
    Copyright 2010 My Company | This text is arbitratry.
    </div>

    b. <div id="footer">
    <p>Copyright 2010 My Company | This text is arbitratry.</p>
    </div>

  • 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-15T21:39:16+00:00Added an answer on May 15, 2026 at 9:39 pm

    The correct answer for 1. is a as you should only have one h1 tag on your page (so a class is probably unnecessary if it’s only for the h1) and because the class used in e is not semantic (e.g. “Title”) but instead describes a very particular styling so would be useless if you later changed the way you want to display the title.

    In fact you can rule out the other options like this:

    • b) Uses align attribute, uses a font tag, uses a b tag (this one is iffy but they would prefer you used em), uses a p tag for a heading.

    • c) Uses inline styles

    • d) Uses the title element in the body to try and render content. This belongs in the head and shouldn’t display anything on the page anyway even if it was incorrectly and invalidly placed in the body.

    • e) Uses a class which is poorly named. Classes should describe the meaning of the class (e.g. “EmphasisedHeader”, “HelpButton” etc. ) and not how the class is rendered. Think of them as a tag – would you like a <LargeRedBoldCenterHeading> tag or an <EmphasisedHeader> tag?

    • f) Invalid HTML

    For question 2. the answer is trickier. The p tag is unnecessary as a div is already a block element by default.

    In HTML 5 there is a footer element for this, and indeed one of the more attractive but abandoned proposals early on was to allow you to name any element you like (perhaps using your own “meta-doctype”) and just have them render like a div (e.g. you could have an <adbox> tag instead of <div class="adbox">).

    It could probably be argued that they should be in a <ul id="footer"> with each element in a <li>, but attempting to style that with a | divider would be painful to do in a compliant and cross-browser fashion.

    I would be happy with a.

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

Sidebar

Related Questions

No related questions found

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.