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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T08:43:09+00:00 2026-06-08T08:43:09+00:00

I have three files. header.php index.php footer.php The header file contains from <html> to

  • 0

I have three files.

header.php
index.php
footer.php

The header file contains from <html> to <div id='content'>
The index file contains page content
The footer file contains </div> to </html>
Together they contain a normal HTML file with PHP

When I use Tidy HTML to tidy up my php files’ HTML, it does something wrong.
When I tidy header.php, it adds closing tags to my div called content and it shouldn’t. The div is continued through index.php and closed in footer.php to specify the content’s of the file.

Is it possible to make HTML Tidy ignore missing end tags?

  • 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-08T08:43:10+00:00Added an answer on June 8, 2026 at 8:43 am

    It can be solved this way:

    <html>
    <head>
      <?php include "head.php" ?>
    </head>
    <body>
      <?php include "header.php" ?>
      <?php include "index.php" ?>
      <?php include "footer.php" ?>
    </body>
    </html>
    

    And the files index.php, head.php, header.php and footer.php now should have starting and closing tags. The program does that because it thinks you missed the closed tags. I saw Tidy HTML and it puts the close tags automatically.


    Source: My experience doing sites this way

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

Sidebar

Related Questions

If I have three files index.php file.php and fns.php First example (it works): index.php
I have a header.php and a footer.php file. My HTML header is in header.php
I have three files: movie.h (header); movie.cpp (implementation file); lab9.cpp (driver file using movie
I have three files in a folder 'test' one.php two.php print.html And i have
i have a problem, can't understund anyway. i have three files - index.php ,
I have a bunch of static html files that share same header and footer.
I have the simplest code that I want to separate in three files: Header
Suppose that I have those three files: a.h //a.h header #include <stdio.h> int int_variable;
I have three files: one called sql.php witch has a class db that I
I have three files, a main .cpp file: #include <stdio.h> #include myClass.h int main()

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.