Can't Save in .XHTML with Coffeecup?

3 replies
  • WEB DESIGN
  • |
I've been using Coffeecup to make a new webpage. I get the page and the css file working the way I want in Coffeecup and I can preview it and bring it up in the default browser (Firefox) okay. It's the way I want it - and I'm happy.

When I save it - I can't seem to save it with the .xhtml extension? Coffeecup won't save it that way automatically. I have to add the .xhtml. It will do that but then when I try to preview it in Coffeecup it gives me an 'XML Parsing Error: not well-formed...'.

If I save the file as a plain .html it saves okay and it then works okay in Coffeecup.

It seems kind of weird that Coffeecup won't save in .xhtml? I have the free version - is that the problem? I thought that xhtml is the preferred way to go presently?

The top lines of my markup for the page are:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

Isn't that what is required for an .xhtml file? I would go with .html but the problem is my website is all .xhtml and I want all webpages to have the same extension.

What am I doing wrong?

Thanks,

Tim
#coffeecup #save #xhtml
  • Profile picture of the author Karen Blundell
    html and xhtml docs all get saved in .html format
    Signature
    ---------------
    {{ DiscussionBoard.errors[2072869].message }}
  • Profile picture of the author Lloyd Buchinski
    Yep, just to add a second opinion, Karen is right. You just save it as .html, or .htm if you want. You could also save it as .php, there's another thread on this board about that, but you probably don't want to do that.

    Just amazing how many things can go wrong isn't it?

    best wishes, keep plugging away.
    Signature

    Do something spectacular; be fulfilled. Then you can be your own hero. Prem Rawat

    The KimW WSO

    {{ DiscussionBoard.errors[2073263].message }}
  • Profile picture of the author ninal
    They're right all files are saved as .html regardless of doctype (xhtml strict, html, xhtml transitional)
    Signature
    Hello
    {{ DiscussionBoard.errors[2073380].message }}

Trending Topics