IAmGrammy
06-11-2012, 02:19 AM
The site I've been working on is mostly all PHP files and has this DOCTYPE:
<!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" xml:lang="en-US" lang="en-US" dir="ltr" >I needed a registration/login feature and found one that works well. I incorporated it into my site but I notice that its native files have this DOCTYPE:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US">That's how the author intended it, apparently and so my question becomes: can these two DOCTYPEs co-exist or must one be conformed to the other? The files for the registration/login feature are in their own directory but my site's files do call for them in forms, etc.
Am I about to break something? :o
<!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" xml:lang="en-US" lang="en-US" dir="ltr" >I needed a registration/login feature and found one that works well. I incorporated it into my site but I notice that its native files have this DOCTYPE:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US">That's how the author intended it, apparently and so my question becomes: can these two DOCTYPEs co-exist or must one be conformed to the other? The files for the registration/login feature are in their own directory but my site's files do call for them in forms, etc.
Am I about to break something? :o