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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T17:38:03+00:00 2026-05-30T17:38:03+00:00

I have two pages made using HTML and I use the following standards <!DOCTYPE

  • 0

I have two pages made using HTML and I use the following standards

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
        "http://www.w3.org/TR/html4/loose.dtd">

The two pages are index.html, the other is about.html. I create a logo inside the index page as the following

HTML markup of Index.html

<div class="logo"></div>

in CSS I do the following

.logo {
background: url ('../images/logo.png') no-repeat;
height: 300px;
width: 100px;
}

In about.html page I write the following html markup

<a href="index.html">
   <div class="logo"></div>
</a>

The above markup is working fine, but when I use the w3c validator it gives me warning as it’s not a standard markup.

My question is how can I make the html markup fits with the standards and gives the same result?

  • 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-30T17:38:04+00:00Added an answer on May 30, 2026 at 5:38 pm

    You should do this rather:

    <a href="index.html" class="logo"></a>
    

    And then your css will apply directly to the a instead of to a nested empty div. You’ll need to add display: block; to the CSS though because a has a different default display.

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

Sidebar

Related Questions

Ok, i have simple scenario: have two pages: login and welcome pages. im using
I have two html pages, when you click on something on the first html,
I have two PDFs that are made on the fly using Prawn PDF. The
I've made a two level menu using CSS and HTML (ul's etc). What I
I'm using php,html,javascript,mysql. My functionality goes like this. I have a division made in
I have a menu made with HTML, using a simple UL with lots of
I have made a web user control (.ascx) which consists of the two html
I have two pages of jQuery, Page1 and Page2, and I'm able to get
I have two pages, NonMember.aspx and Member.aspx. If a user comes to the site,
I have two pages, A and B. I want to echo a variable written

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.