W3C home > Mailing lists > Public > www-html@w3.org > October 2005

Re: xhtml and input width?

From: Chiaki <chiaki@dark-chiaki.net>
Date: Thu, 27 Oct 2005 09:39:38 +0200
Message-Id: <246129497@web.de>
To: HenryLee <hlee23@gmail.com>
Cc: www-html@w3.org


Like David Dorward, I wasn't able to reproduce your error with the input areas.

But, if you wish to use XHTML, you should use _correct_ markup,
since many browsers ignore non-vaild markup while parsing the source using a XML-related Doctype.

At first, you have to specify with type of style you are using:

<style type="text/css">

Second is to add a title into the head-section. Not for fun, it's just a role of XHTML.

<title> ...text... </title>

Next are the <br> and <input>, in XHTML you have to close empty tags with a "/"
or a complete closing-tag like <br></br> or <input ...></input> with no content between the tags.

<td>Name<br /><input type="text" name="Name" /></td>
<td>Name<br></br><input type="text" name="Name"></input></td>

To validate your final markup, go to <http://validator.w3.org/>
and copy your plain-text into the field labeled "Validate by Direct Input" and click "Check".

Hope this comments are helpfull.
Regards and a nice day, Chiaki~
Received on Thursday, 27 October 2005 07:39:59 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:06:11 UTC