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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T03:46:40+00:00 2026-05-28T03:46:40+00:00

I am just validating my webpage and working through the errors. the scenario I

  • 0

I am just validating my webpage and working through the errors. the scenario I have is that I have the structure where I import a header file, through <?php include ('header.php') ?> and also with my navigation file. Now in terms of seeing it in the browser this works, but when I validate with XHMTL1.1 strict it comes up with the error.

So I have an index.php which imports both the header.php and navigation.php – now as I am writing this I am realizing that the navigation.php does not get the css file imported into it, but does the validator not just read the html? so there it should pick it up and see that it gets the information?

Please let me know if I am on the right track with this, otherwise it seems that you sacrifice validation for a structured website??

Cheers Jeff PS Happy New Year:-)

EDIT CODE:

URI: http://thepalmsmarket.co.nz/index.php a
276 9 there is no attribute “id” a
276 24 there is no attribute “class” a
276 38 element “nav” undefined

I these are the last errors and they are related to this code:

index.php:

<?php include_once ("01includes/header.php"); ?>

</head><!--hmtl tag closes in the footer--> 

<body class="no-js"><!--The script here is to disable the class put into the body tag if javascript is enabled.--> 
<?php include_once ("01includes/navigation.php"); ?>

navigation.php:

<nav id="topNav" class="centeredmenu">  
<ul>
    <?php
        $subject_set = mysql_query("SELECT * FROM webMenu", $dbconnect);
        if (!$subject_set) {
        die("Database query failed: " . mysql_error());
        }
        while ($subject = mysql_fetch_array($subject_set)) {
        echo "<li class=\"{$subject["class"]}\"><a href=\"   {$subject["link"]}\" onclick=\"{$subject["javascript"]}\" title=\"{$subject["title"]}\">{$subject["menuItem"]}</a></li>"; }
    ?>
</ul>

The css is declared in desktop.css which is imported into header.php, but not into navigation.php as that would be a double up – hope that makes sense:-)

  • 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-28T03:46:40+00:00Added an answer on May 28, 2026 at 3:46 am

    Good news: nothing to do with PHP. You appear to be using the nav tag, which is new in HTML5, while validating against the XHTML 1.1 Strict. If you switch to an HTML5 declaration, so that you can use nav in a nice, valid, semantic way, then you’ll have to chase down a few other validation errors (mostly related to the meta tags, and then use of a deprecated border attribute further on in your code — the validation errors should be self-explanatory). If you want to keep on with XHTML, then drop the use of nav to be valid.

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

Sidebar

Related Questions

I have an XML file that is validating against a schema. However on our
I just tried validating a large css file and ended up with 89 errors!
I was just validating some of my html5 pages on W3C with forms (PHP)
For example, if I have a user with an email address that needs validating
I have a simple Silverlight project that is just getting a set of entities
I've just run across an annoying feature of the Client-Side Validation that I'm wondering
Just looking for the first step basic solution here that keeps the honest people
just a quick question: I am a CS undergrad and have only had experience
I created a custom Membership Provider which is now working in production just fine
I am working with someone else's code. The code was originally designed so that

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.