fishcuisine Posted December 8, 2010 Report Share Posted December 8, 2010 Hello, I am now going back to each webpage and attempting to tie the loose ends together. I am focusing on Website Optimization. In the video, "Six Essentail html Tags" in the WEB DESIGN 1 Series DOCTYPE and META tags are mentioned as being important and must be included in each page. i.e. following: <!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN”> <html> <head> <title>My Practice HTML Page</title> <meta http-equiv=”Content-type” content=”text/html; charset=iso-8859-1”>------------</head> <body> </body> </html> ------------------------------- Should these two lines be used in all webpages exactly as indicated. Any videos available on the subject? Regards Fishy Quote Link to comment Share on other sites More sharing options...
Wickham Posted December 8, 2010 Report Share Posted December 8, 2010 Should these two lines be used in all webpages exactly as indicated. Yes, lots of things can be put in the head section, or nearly none, but the title and the charset are essential. Note that your doctype is incomplete, you need the url to w3.org <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> from here:- http://www.w3.org/QA/2002/04/valid-dtd-list.html Try to use the Strict doctype if possible; use the transitional if you get validation errors here http://validator.w3.org/ that may pass the transitional doctype, like target="..." and some deprecated tags. Quote Link to comment Share on other sites More sharing options...
Andrea Posted December 8, 2010 Report Share Posted December 8, 2010 Keep in mind that a HUGE part of optimization is to have good code. That means semantic, validating code, not a bunch of pointlessly nested blockquote tags, empty p tags, or script tags nested inside the html. Quote Link to comment Share on other sites More sharing options...
fishcuisine Posted December 8, 2010 Author Report Share Posted December 8, 2010 Thanks for feedback. Actually, you are way over my head on this one. Is the following blurb what I should put in <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">'>http://www.w3.org/TR/html4/loose.dtd"> or is it this:? <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Strict//EN" "http://www.w3.org/TR/html4/loose.dtd"> “Try to use the "Strict doctype" if possible…” - Like for example what exactly, if I may ask? And what do these guys do? - http://www.w3.org/QA...d-dtd-list.html Tnks Fishy Quote Link to comment Share on other sites More sharing options...
falkencreative Posted December 8, 2010 Report Share Posted December 8, 2010 What Wickham means is this: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> Quote Link to comment Share on other sites More sharing options...
Andrea Posted December 8, 2010 Report Share Posted December 8, 2010 And what do these guys do? - http://www.w3.org/QA...d-dtd-list.html The page that link takes you to explains it all - actually, the one in your post is broken, but the one Wickham posted works: http://www.w3.org/QA/2002/04/valid-dtd-list.html Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.