Help - Search - Members - Calendar
Full Version: XHTML...help me please?
Invision Power Services > Community Forums > Community Web Design and Coding
primexx
ok i have two major problems:

1. in the header:
HTML
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link href="sitefiles/style.css" type="text/css" rel="stylesheet" />
<title>Title Here</title>
</head>

the validator doesnt like the two "/>" tags for the meta and link. how can i fix this???

2. what is a substute for the border tag, xhtml 1.1 doesnt like it, so i need something else to make sure that there are no borders around images that link to places.

Thanks wub.gif
lightsup55
QUOTE(primexx @ Mar 11 2005, 09:26 PM)
1. in the header:
HTML
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link href="sitefiles/style.css" type="text/css" rel="stylesheet" />
<title>Title Here</title>
</head>

the validator doesnt like the two "/>" tags for the meta and link. how can i fix this???
*

Did you add an XHTML <!DOCTYPE> declaration BEFORE the <html> tag?

Example:
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">

<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Title Here</title>
</head>

<body>
Body of document here
</body>

</html>






QUOTE(primexx @ Mar 11 2005, 09:26 PM)
2. what is a substute for the border tag, xhtml 1.1 doesnt like it, so i need something else to make sure that there are no borders around images that link to places.
*

Add this to your style.css file:
CODE
img { border: 0; }

OR

Add this in the header (<head></head):
HTML
<style type="text/css">
<!--
img { border: 0; }
--
>
</style>
primexx
yes this is what i have, and the validator doesnt like it:

HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN""http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link href="sitefiles/style.css" type="text/css" rel="stylesheet" />
<title>CS Net</title>
</head>
<body>
Stephen
you are missing the space in the doctype

CODE
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">


not

CODE
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN""http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
Cheule
And the following line:

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


does not require a space between the last quote and the end tag, as the HTML parameter does have it's own closing tag.
primexx
it worked! THANKS!
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.