For several years I have been writing web applications and this line:
<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
Always confused me. What exactly? What are the consequences if I remove it?
I understand w3c conventions on nested elements, etc., but what really happens, why is the declaration where browsers fail or something if I take it out?
Cheers, Pete
source
share