Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Proper code for all html files...
Old 11-27-2006, 03:00 AM Proper code for all html files...
Skilled Talker

Posts: 64
Name: Timothy Nerbonne
Trades: 0
Does anyone know a resource that shows all the code every html or php file should have? I see alot of recommendations in the forum, such as the no odp tag, and here is what I gather so far. Please let me know if I missed anything.

Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html dir="ltr">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
 
<meta http-equiv="Content-Language" Content="en-US">

<meta name="generator" content="Dreamweaver 8" />
 
<meta name="keywords" content="keywords here" />

<meta name="description" content="description here" />
 
<meta name="robots" content="NOODP">
 
</head>
 
<body bgcolor="ffffff">
 
</body>
 
</html>
So far I've set the document type, the direction of the text, the content type, the language, the generator, the keywords, the description and the no odp tag. Is there anything else that should be in most html documents?
nerbonne is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 11-27-2006, 12:13 PM Re: Proper code for all html files...
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
The Generator is unnecessary.
Which meta tags you put into your HTML files is completely up to you, I don't think you can say there are any 'standards' that every file MUST have, except maybe the Language, content and keywords, even though keywords are not as important as they once were. The "noodp" seems to have mixed results with some people seeing their sites drop on Google.

This: body bgcolor="ffffff" should in no way be a 'standard' tag. All presentational elements like this should be in a CSS file. In addition, the proper notation is #ffffff.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Proper code for all html files...
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.92369 seconds with 12 queries