| Author |
DOCTYPE declarations
|
|
|
| I was having some problems co-ordinating floats and clearing them in a
way that multiple browsers would display them correctly. After getting
away from it for a while, I was able to come back and see *most* of the
problems needing fixing. It now works with all the browsers that I
have access to except N4 which I'm ignoring since I don't know where to
begin with that problem.
My current problem is "validators". I really would like to learn to do
this correctly so it bothers me that I can't seem to figure out what I
need to do to correct my first few lines of code. I think the
validator is giving me errors based on these declarations but I don't
understand them well enough to guess how to correct them. I started
with:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
Because my floats weren't working, it was suggested that I change them
to:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
I'm trying to link thumbnail images to larger versions of the same and
maybe that will determine with html doctype I need to declare. I can
only make guesses. Your advice would be welcomed the sample page is at
http://www.kencoffman.com/templates.htm
| |
|
| Once upon a time *ima* wrote:
> I was having some problems co-ordinating floats and clearing them in a
> way that multiple browsers would display them correctly. After getting
> away from it for a while, I was able to come back and see *most* of the
> problems needing fixing. It now works with all the browsers that I
> have access to except N4 which I'm ignoring since I don't know where to
> begin with that problem.
>
> My current problem is "validators". I really would like to learn to do
> this correctly so it bothers me that I can't seem to figure out what I
> need to do to correct my first few lines of code. I think the
> validator is giving me errors based on these declarations but I don't
> understand them well enough to guess how to correct them. I started
> with:
>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
>
> Because my floats weren't working, it was suggested that I change them
> to:
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
> "http://www.w3.org/TR/html4/strict.dtd">
> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
>
> I'm trying to link thumbnail images to larger versions of the same and
> maybe that will determine with html doctype I need to declare. I can
> only make guesses. Your advice would be welcomed the sample page is at
> http://www.kencoffman.com/templates.htm
>
Use the HTML 4.01 Stict, but without the "xmlns", "lang" and "xml"
things in the html tag as they are used with XHTML and not with HTML.
Just a simple <html> will do for HTML.
--
/Arne
You will be ignored if you top post, don't quote what
you are replying to and cut of only the signatures!
http://www.safalra.com/special/googlegroupsreply/
| |
| Spartanicus 2005-09-14, 7:53 pm |
| "ima" <imacoffman2@yahoo.com> wrote:
>My current problem is "validators". I really would like to learn to do
>this correctly so it bothers me that I can't seem to figure out what I
>need to do to correct my first few lines of code. I think the
>validator is giving me errors based on these declarations but I don't
>understand them well enough to guess how to correct them.
The validator's report couldn't be much simpler.
><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
> "http://www.w3.org/TR/html4/strict.dtd">
><html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
Change that last line to
<html lang="en">
then get rid of the width and height attributes on the <a> elements as
the validator points out.
--
Spartanicus
| |
|
| Spartanicus - Thanks for your help! If you happen to know of any place
online that explains these declarations, I'd be very interested in the
web address.
I guess this means there is no way to follow any set of html rules AND
be able to link my thumbnails to larger versions of the same images.
(Apparently not without creating a separate page for each larger image
and linking to that) Am I missing an obvious alternative? Thanks
again for the validator translation.
| |
|
| You will be ignored if you top post, don't quote what
you are replying to and cut of only the signatures!
Arne,
I would like to comply with your resonable request and include quoted
text but when I hit the reply button I get an empty box with no options
to quote text in sight. Maybe you'd be kind enough to explain the
correct way to accomplish this. In an attempt to comply, I've done a
copy and paste and hope that will suffice until I find a better way.
| |
|
| ima wrote:
> You will be ignored if you top post, don't quote what
> you are replying to and cut of only the signatures!
>
> Arne,
> I would like to comply with your resonable request and include quoted
> text but when I hit the reply button I get an empty box with no options
> to quote text in sight. Maybe you'd be kind enough to explain the
> correct way to accomplish this. In an attempt to comply, I've done a
> copy and paste and hope that will suffice until I find a better way.
There is hope!
http://www.safalra.com/special/googlegroupsreply/
--
Els http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -
Now playing: Girlschool - Race With The Devil
| |
| Spartanicus 2005-09-14, 7:54 pm |
| "ima" <imacoffman2@yahoo.com> wrote:
>If you happen to know of any place
>online that explains these declarations, I'd be very interested in the
>web address.
The specification: http://www.w3.org/TR/html4/
A short introduction to HTML:
http://www.w3.org/TR/html4/intro/intro.html
Or an HTML tutorial such as http://www.htmldog.com/ (easier to digest
than the spec).
>I guess this means there is no way to follow any set of html rules AND
>be able to link my thumbnails to larger versions of the same images.
>(Apparently not without creating a separate page for each larger image
>and linking to that) Am I missing an obvious alternative?
Link to the image: <a href="large_image.jpg"><img src="thumbnail.jpg"
width="width here" height="height here" alt="alt content"></a>
Btw, future queries on HTML should be posted in
comp.infosystems.www.authoring.html
--
Spartanicus
|
|
|
|
| Copyright 2003 - 2008 forum4designers.com Software forum Computer Hardware reviews |