Jump to content

DOCTYPE, META TAGS and web page optimization


fishcuisine

Recommended Posts

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...