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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T21:05:48+00:00 2026-05-22T21:05:48+00:00

I have created this piece of code. <a href=#> <!– BEGIN #btnBox .btnBox –>

  • 0

I have created this piece of code.

<a href="#">
  <!-- BEGIN #btnBox .btnBox --> 
  <div id="btnBox2" class="btnBox">
    <div class="btnleft"></div> <!-- BEGIN & END .btnleft -->
      <!-- BEGIN .btncenter --> 
      <div class="btncenter">
        <div id="btnText2" class="btnText">Want more? - check out my recent work</div>
      </div>
      <!-- END .btncenter -->            
      <div class="btnright"></div> <!-- BEGIN & END .btnright -->
  </div>
  <!-- END #btnBox .btnBox -->   
</a>

And when I validate the code under W3 HTML validation, it’s giving me an error:

Line 163, Column 41: document type does not allow element "DIV" here; missing one of "OBJECT", "MAP", "BUTTON" start-tag

I am using

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
  • 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-22T21:05:49+00:00Added an answer on May 22, 2026 at 9:05 pm

    A division <div> is a block level element while an anchor <a> is an inline element. From the w3c web site:

    Generally, block-level elements may contain inline elements and other block-level elements. Generally, inline elements may contain only data and other inline elements. Inherent in this structural distinction is the idea that block elements create “larger” structures than inline elements.

    Chances are you’re using divisions because you need block-level behavior, like width and height.

    Without changing your DOCTYPE, you can use the CSS property display to make <span> elements behave like <div> elements:

    HTML

    <a href="#" class="forMuzammil">
    <!-- BEGIN #btnBox .btnBox --> 
    <span id="btnBox2" class="btnBox">
        <span class="btnleft"></span> <!-- BEGIN & END .btnleft -->
        <!-- BEGIN .btncenter --> 
        <span class="btncenter">
            <span id="btnText2" class="btnText">Want more? - check out my recent work</span>
        <!-- END .btncenter -->    
        </span>
        <span class="btnright"></span> <!-- BEGIN & END .btnright -->
    <!-- END #btnBox .btnBox -->     
    </span>
    </a>
    

    CSS

    a.forMuzammil {
        display:block;
    }
    a.forMuzammil span {
        display:block;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this piece of code where a server socket is created and is
I have this piece of code. I want to remove the rows created with
I have created this code, and when I run it, don't get any errors
I have dialog created like this $('#add_error').click(function(e) { $('<div>') .load('/someaction/format/html/') .dialog({ title: 'Some title',
I have this piece of code and it's causing NullPointerException private List<Player> playerList; private
Am getting errors in this piece of code; I have placed the error messages
I have written this piece of code here and I have linked it alright
Hey guys, I have this piece of jquery code: <script type=text/javascript > $(function() {
I have this piece of code that is supposed to work on Firefox 3.6
I have this piece of code in a model that sets a start date

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.