Freedom1 Posted August 15, 2010 Report Posted August 15, 2010 I am using CoffeCup to edit html and when I create a new document, it defaults to the XHTML DOC TYPE, Transitional. What I am wondering is if I overwrite the doc type with the HTML 4.01 Strict information, which you suggest we use, is the rest of the information on the webpage then read correctly by browsers if I do that? I guess what I am asking is this: other than the DOC TYPE at the beginning, is the HTML and CSS that are used to construct the page exactly the same regardless of the DOC TYPE, or would simply over-writing the doc type cause problems with browsers interpreting the rest of the page? I hope this post makes sense. Quote
newseed Posted August 15, 2010 Report Posted August 15, 2010 (edited) Moving over to HTML 4.01 Strict will not break the site but it won't validate either. XHTML uses a self closing tags <img src="url" />. Also there are cases where no closing tags are required such a <p>, <li>, etc. Now I am not familiar with Coffee Cup but when using MS Expression Web, it determines which DocType is being used and so therefore it applies the correct formatting. Also, if I so happened to code a site in XHTML but later I want to covert it over to HTML all I have to do is change the DocType and then apply Reformat HTML. It will then apply the correct formatting thus removing the XHMTL formatting. So you might check to see if Coffee Cup has such a feature. Keep in mind that some programs require XHTML to parse information but it's rare. My suggestion is to make a backup copy of the original file first before making the transition. Edited August 15, 2010 by newseed Quote
Freedom1 Posted August 15, 2010 Author Report Posted August 15, 2010 Moving over to HTML 4.01 Strict will not break the site but it won't validate either. XHTML uses a self closing tags <img src="url" />. Also there are cases where no closing tags are required such a <p>, <li>, etc. Now I am not familiar with Coffee Cup but when using MS Expression Web, it determines which DocType is being used and so therefore it applies the correct formatting. Also, if I so happened to code a site in XHTML but later I want to covert it over to HTML all I have to do is change the DocType and then apply Reformat HTML. It will then apply the correct formatting thus removing the XHMTL formatting. So you might check to see if Coffee Cup has such a feature. Keep in mind that some programs require XHTML to parse information but it's rare. My suggestion is to make a backup copy of the original file first before making the transition. Quote
Freedom1 Posted August 15, 2010 Author Report Posted August 15, 2010 Thanks for the reply. The html code that CoffeeCup makes available all have the closing tags, ie, <p> </p>, and etc used in html. I hope I can afford Dreamweaver sometime soon, as it seems they have things figured out a bit better than some others. Unfortunately I already completed a free trial from Adobe, before finding this site! Thanks again for the help. Quote
Freedom1 Posted August 15, 2010 Author Report Posted August 15, 2010 I started using CoffeeCup because my Dreamweaver subscription has expired. I figure out how to begin a webpage in HTML, 4.01 Strict, although it defaults to XHMLT on open. Thanks. Quote
scorpion Posted August 16, 2010 Report Posted August 16, 2010 CoffeeCup has the facility to change the Initial DOCTYPE. Look in Tools > Preferences > General > Initial DOCTYPE. I had a play with CoffeeCup for awhile but returned to Notepad++. I do like the way I can upload from within Coffeecup - saved having to open Filezilla but it seemed to screw a few things up in background like changing single apostrophes to a form that required & # 1 8 0 ; to validate. I prefer to type ...don't... to don& # 1 8 0 ;t Gee I can't even type the code for the single apostrophe without it converting it! (Just remove the spaces to see what I mean!) Cheers Quote
Freedom1 Posted August 16, 2010 Author Report Posted August 16, 2010 CoffeeCup has the facility to change the Initial DOCTYPE. Look in Tools > Preferences > General > Initial DOCTYPE. I had a play with CoffeeCup for awhile but returned to Notepad++. I do like the way I can upload from within Coffeecup - saved having to open Filezilla but it seemed to screw a few things up in background like changing single apostrophes to a form that required & # 1 8 0 ; to validate. I prefer to type ...don't... to don& # 1 8 0 ;t Gee I can't even type the code for the single apostrophe without it converting it! (Just remove the spaces to see what I mean!) Cheers Quote
Freedom1 Posted August 16, 2010 Author Report Posted August 16, 2010 Thank you. I use FileZilla to FTP also. I found the same thing with CoffeeCup as you've mentioned, and it also does not always display accurately in the live preview either. Perhaps that is why. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.