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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T17:47:34+00:00 2026-05-11T17:47:34+00:00

The .html suffix on a filename implies that the document contains html , head

  • 0

The “.html” suffix on a filename implies that the document contains html, head, and body tags.

I have some files that each contains a div element or two, but no html or body tags. The file contents are well-formed HTML fragments in the sense that they could be inserted into a body tag of a compliant HTML document, and it would still be compliant. (They contain no “<% %>” markers, no PHP code, etc.) But a fragment file is not compliant HTML by itself, so I’d like to give it a different naming convention.

Several “file extension” sites include an entry for “.PHT” and describe it as “Partial Hypertext File.” That sounds promising, but I can’t find any additional explanation on the origin, expected file format, or applications that use it. Also, many of the same sites identify “.phtml” and “.phtm” (which appear to be longer versions of the .pht suffix) as PHP files — as noted, my files are not PHP files.

Should I use “.pht” as a suffix? Is there a more appropriate naming convention?

Edit:
I’d like to distinguish fragment files from the full HTML documents in the same directory.

  • 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-11T17:47:35+00:00Added an answer on May 11, 2026 at 5:47 pm

    I would use .inc (meaning include file) or .txt.

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

Sidebar

Ask A Question

Stats

  • Questions 189k
  • Answers 189k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer This is a fundamental part of sockets - or rather,… May 12, 2026 at 5:50 pm
  • Editorial Team
    Editorial Team added an answer The RSS feed is actually part of the API, so… May 12, 2026 at 5:50 pm
  • Editorial Team
    Editorial Team added an answer I do most of my local development in SQL Server… May 12, 2026 at 5:50 pm

Related Questions

For simplicity, i have the following file named test.jsp: <script language=javascript> alert(a$b.replace(/\$/g,k)); </script> I
I have the following HTML code: <tr id=1774 class=XXX><td> <span class=YYY> Element 1</span></td></tr> <tr
The Same Origin Policy Documentation says this: There is one exception to the same
Problem: My articles have the right urls: for example, newsite.com/article. However, by clicking an

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.