Jump to content

Recommended Posts

Posted

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

Posted

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.

Posted

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.

Posted

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...