January 22nd, 2014, 03:26 PM
Is this a bit outdated for HTML now or are you guys still including this in your web sites?
If you are curious my "web site" is at www.assistmewithit.com
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
As of now I update it every Friday and most of the content has just been hastily thrown together just trying to get a feel.
January 22nd, 2014, 03:45 PM
this is XHTML, not HTML. Unless you have a specific reason for using XHTML and understand the implications (it's not meant for standard browsers), this is not what you want.
The doctype for HTML is
If you need reliable info, use the Mozilla Developer Network or the W3C specs directly. This is usually much better than the stuff people teach in books or online tutorials.
January 22nd, 2014, 03:49 PM
Thanks for the quick reply. Yeah the book says it will include that specific header in all of the examples so I will probably adjust accordingly.. I knew HTML5 had reduced the HTML doctype but wasn't sure if everyone was using it yet or not...or even if it was 100 percent supported already.
Originally Posted by Jacques1
January 22nd, 2014, 04:10 PM
Contrary to popular belief, browsers do not care about HTML 4, HTML5 or whatever. They speak HTML – with a certain set of features.
The doctype above tells the browser to process the document as HTML in standard mode. Now you can use all HTML elements and attributes your browsers supports. What exactly those are depends on the browser.