Web Design Web Design Forum
Registration is free! Here you can view your subscribed threads, work with private messages and edit your profile and preferences Calendar Find other members Frequently Asked Questions Search
Home Web Design

Convenient web based access to our favorite web design Usenet groups

web design reviews

This is Interesting: Free Magazines for Graphics designers and webmasters  





  Last Thread  Next Thread
Author
Thread Post New Thread   

DOCTYPE declarations
 

ima




quote this post edit post

IP Loged report this post

Old Post  09-15-05 - 12:53 AM  
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



Post Follow-Up to this message ]
Re: DOCTYPE declarations
 

Arne




quote this post edit post

IP Loged report this post

Old Post  09-15-05 - 12:53 AM  
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/



Post Follow-Up to this message ]
Re: DOCTYPE declarations
 

Spartanicus




quote this post edit post

IP Loged report this post

Old Post  09-15-05 - 12:53 AM  
"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


Post Follow-Up to this message ]
Re: DOCTYPE declarations
 

ima




quote this post edit post

IP Loged report this post

Old Post  09-15-05 - 12:54 AM  
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.



Post Follow-Up to this message ]
Re: DOCTYPE declarations
 

ima




quote this post edit post

IP Loged report this post

Old Post  09-15-05 - 12:54 AM  
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.



Post Follow-Up to this message ]
Re: DOCTYPE declarations
 

Els




quote this post edit post

IP Loged report this post

Old Post  09-15-05 - 12:54 AM  
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


Post Follow-Up to this message ]
Re: DOCTYPE declarations
 

Spartanicus




quote this post edit post

IP Loged report this post

Old Post  09-15-05 - 12:54 AM  
"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


Post Follow-Up to this message ]
Sponsored Links
 





All times are GMT. The time now is 07:35 AM. Post New Thread   
  Previous Last Thread   Next Thread next
Stylesheets archive | Show Printable Version | Email this Page | Subscribe to this Thread

Popular forums

Adobe Photoshop forum Macromedia Flash Web Site Design
Dreamweaver FrontPage forum
JavaScript Forum XML forum
Style Sheets VRML
Forum Jump:
Rate This Thread:

 

XML RSS Feed web design latest articles Syndicate our forum via XML or simple JavaScript

Web Design archive  Database administration help  


Top Home  -  Register  -  Control Panel   -  Memberlist  -  Calendar  -  Faq  -  Search Top