|
Posted by Beauregard T. Shagnasty on April 17, 2008, 7:28 am
Please log in for more thread options
Steve Swift wrote:
> What sorts of things should I look out for if I'm designing a webpage
> specifically for use on mobile phones or PDA's? Obviously smaller is
> better (in terms of the overall page) but there's probably a lot more
> to this.
Yes, but it isn't rocket surgery.
> I have an example of my first attempt at:
> http://swiftys.org.uk/shopping.html
> This is simply a non-functioning capture of the page, showing how far
> I haven't got.
Oh my. 1995-style code! :-)
Did you write that by hand? Or use some kind of generator? I would
suggest visiting a good tutorial first. This one is recommended:
http://htmldog.com/
> Please note: I don't care if it is valid HTML or not;
Your browser will, though.
> the target audience is my wife's XDA, and *nothing* else. She puts the
> data *into* the live version of this sample, and I print it off
> before going shopping. My closing of table elements is sporadic at
> best, for example. My FORM is inside the table but not in any of the
> elements (it works better in most browsers).
First of all, I don't see any reason to have tables on the little page
at all. The <form> cannot be in between the <table> and the <tr>.
> The actual webpage that we're using comes from a CGI script, so I
> have control over the HTTP headers, if that helps (i.e. it doesn't
> have to be served as text/html if that helps)
Use a Strict DOCTYPE, and yes, server as text/html.
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
--
-bts
-Motorcycles defy gravity; cars just suck
|