Please read over the following code and pointing out any errors.

<html>
<head>
<title>Paradise Video Maui</title>
</head>
<body bgcolor="baecff"><center><br>
<font size="+4" face="trajan pro">Paradise Video Maui</font><br><font size="+2" face="trajan pro">Maui’s Largest Video Selection</font><br><br><hr><br>
<br><table border="1" cellpadding="3" cellspacing="6">
<tr>
<td>Home</td>
<td>Membership</td>
<td>Updates</td>
<td>Services</td>
<td>Locations</td>
</tr>
</table>
<br>
<br>
<!–START EDITING HERE>
<p><font size="+2" face="trajan pro">About Paradise Video Maui:</font></p>
<!–STOP EDITING HERE>
<br>
<font size="3" face="Trajan Pro">&copy 2009 Paradise Video Maui</font>
</body>
</html>
What Doctype should I use?

Missing doctype.
Uses deprecated bgcolor attribute instead of CSS.
Uses deprecated font element instead of CSS
Uses deprecated center element instead of CSS
Uses br element instead of margin
Uses br element instead of block elements
Fails to use h1/h2/h3/etc for headings
Uses a table to describe an unordered list of data
Fails to terminate the copyright entity with a semi colon

New documents should generally use HTML 4.01 Strict.

If there is one Doctype you should not use, it is <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> — since this triggers Quirks mode in browsers, making them make deliberate errors and be inconsistent (in an effort to deal with 1997-era code).

http://opera.com/wsc/ has a decent tutorial.

Tags

2 responses


Do you want to comment?

Comments RSS and TrackBack Identifier URI ?

Missing doctype.
Uses deprecated bgcolor attribute instead of CSS.
Uses deprecated font element instead of CSS
Uses deprecated center element instead of CSS
Uses br element instead of margin
Uses br element instead of block elements
Fails to use h1/h2/h3/etc for headings
Uses a table to describe an unordered list of data
Fails to terminate the copyright entity with a semi colon

New documents should generally use HTML 4.01 Strict.

If there is one Doctype you should not use, it is <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> — since this triggers Quirks mode in browsers, making them make deliberate errors and be inconsistent (in an effort to deal with 1997-era code).

http://opera.com/wsc/ has a decent tutorial.
References :

January 27, 2010 8:40 am

you don’t have to have a Doctype, but you can almost always use:

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

However, you do have 2 errors in your HTML… at the "start" and "stop" EDITING HERE comments, neither comment has the "comment end" indicator (‘–>’)

so, change both (I’m showing the change to start here..)
<!–START EDITING HERE>
to
<!–START EDITING HERE>–>

Other than that, I put it on my webserver, and it came right up.
References :

January 27, 2010 9:14 am

You must be logged in to post a comment.

Trackbacks