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

Related Questions

I just want to ask that how do i add html suffix to each
We have a website, unfortunately all the URLs have the .html suffix, its a
I've created an xpath expression as follows: /html/body/div[2]/div/ul[2]/li/a/node() It returns something like this: #01
I have an overload for LabelFor that can be used like this: @Html.LabelFor(i =>
I have a some.xhtml file with jsf libs in it. In <h:body> tag I
I have a table of rows and columns on an HTML-based entry form that
I am trying to add a .html suffix at the end of all strings
HTML <html xmlns=http://www.w3.org/1999/xhtml xml:lang=en lang=en> <head> <meta http-equiv=Content-Type content=text/html; charset=utf-8 /> <title>Jquery Grid</title> <link
html Tidy gives this as output for some reason: <?xml version=1.0 encoding=utf-16?> <?xml version=1.0
---HTML <div id=story> <div id=individual> <img src='uploads/1231924837Picture.png'/> <h2>2009-01-14</h2> <h1>Headline</h1> <p>stroy story etc stroy story

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.