Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 11-25-2009, 08:33 AM   #1
Les Grossman
So Fucking Banned
 
Join Date: Sep 2009
Location: On your last nerve
Posts: 1,012
Help ----- <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>

When I validate my site, it is saying the trailing "/" at the end is invalid and shouldn't be there. However, all I see is code with this.

Can some code experts chime in here, I'm a little confused.

"The sequence <FOO /> can be interpreted in at least two different ways, depending on the DOCTYPE of the document. For HTML 4.01 Strict, the '/' terminates the tag <FOO (with an implied '>'). However, since many browsers don't interpret it this way, even in the presence of an HTML 4.01 Strict DOCTYPE, it is best to avoid it completely in pure HTML documents and reserve its use solely for those written in XHTML. "
Les Grossman is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-25-2009, 08:36 AM   #2
JamesK
hi
 
Industry Role:
Join Date: Jun 2002
Posts: 16,731
You need to specify the doctype. Add this to the top of your page:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
__________________
M3Server - NATS Hosting
JamesK is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-25-2009, 08:37 AM   #3
Nookster
Confirmed IT Professional
 
Industry Role:
Join Date: Nov 2005
Location: Hollywood, CA
Posts: 3,744
Maybe because it's missing a space before the trailing slash?
Code:
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
And yea of course you need to specify a doctype. Trailing slash is only required with xhtml versions.

Last edited by Nookster; 11-25-2009 at 08:42 AM..
Nookster is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-25-2009, 08:42 AM   #4
JamesK
hi
 
Industry Role:
Join Date: Jun 2002
Posts: 16,731
GFY timed out. Anyway, replace the HTML tag with this too:

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

More info here:

http://www.w3.org/QA/2002/04/valid-dtd-list.html
__________________
M3Server - NATS Hosting
JamesK is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-25-2009, 08:59 AM   #5
Les Grossman
So Fucking Banned
 
Join Date: Sep 2009
Location: On your last nerve
Posts: 1,012
Thanks guys, I'll give that a try.
Les Grossman is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.