|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
regarding DOCTYPE declaration to help optimize FP site
To optimize my FP page, I am working in WYSIWYG but still need to include proper DOCTYPE declaration code first.
What is the difference between: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" and <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> Is there any real difference, or will either one work? I'll hand code either one first, then start building the rest in WYSIWYG. Any feedback anyone? Thanks! Dan |
|
#2
|
|||
|
|||
|
The Doctype Declaration tells the browser what version of the HTML specifications you are writing your page according to. In general, there is little point in using XHTML, not least of all because IE doesn't recognise it unless you tell it that it is actually HTML anyway.
The second DTD you have there I don't recognise at all. For a new page, in most cases the HTML 4.01 Strict DTD is most appropriate: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> |
|
#3
|
|||
|
|||
|
BTW: I can't see the DTD written above unless I look at the source for the page. Anyone know a way around this?
Also, you need to be very careful using FP to write your site - much better to hand-code it, or at least use a program that allows you more control over your code. FP tends to rewrite your code for you, very badly. |
![]() |
| Viewing: SEO Chat Forums > Other > HTML Coding > regarding DOCTYPE declaration to help optimize FP site |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|