Welcome! Log In Create A New Profile

Advanced

<!DOCTYPE> element

Posted by gouwem-77858204 
Announcements Last Post
Announcement SoC Curricula 09/30/2017 01:08PM
Announcement Demarcation or scoping of examinations and assessment 02/13/2017 07:59AM
Announcement School of Computing Short Learning Programmes 11/24/2014 08:37AM
Announcement Unisa contact information 07/28/2011 01:28PM
<!DOCTYPE> element
March 14, 2013 10:00AM
Hi Mac

When am I supposed to use the <!Doctype> tag? Also can I asked what is it for and does it apply to my assignments?

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

Thanks
M
avatar
Mac
Re: <!DOCTYPE> element
March 14, 2013 03:42PM
Here is some background information

http://reference.sitepoint.com/html/doctypes
http://www.w3schools.com/tags/tag_doctype.asp
http://www.htmlcodetutorial.com/document/_33nDOCTYPE.html

In essence, it is all about conformance to rules of writing HTML code. You can get away with not having any declaration, but as you add more advanced stuff, the declaration plays more and more of a role. As you get more proficient, you are likely to use a web authoring tool, which adds these declarations by defaulst.

I quote from the first link:

The doctype contains a lot of information, none of which you will be likely to find yourself being tested on in a job interview, so don’t worry if it all seems too difficult to remember.
Re: <!DOCTYPE> element
March 14, 2013 05:03PM
Thanks Mac.
Sorry, only registered users may post in this forum.

Click here to login