HTML5 input elements and their data formats
A summary of the output formats is (any constant elements e.g. the “W” in week inputs and the “T” in datetime inputs are bolded):
- Search: String
- Number: String/Number
- Range: String/Number
- Tel: Unsupported at present
- URL: String (Opera requires an absolute URL e.g. http://www.example.com)
- Email address: String (The Email address format checks performed are minimal to day the least)
- Date: YYYY-MM-DD
- Month: YYYY-MM
- Week: e.g. YYYY-WWW (e.g. 2010-04 is week 4 of 2010)
- Time: HH:II:SS (e.g. 23:59:59)
- Datetime: YYYY-MM-DDTHH:II:SS (e.g. 2010-04-25T23:59:59)
- Datetime-local: YYYY-MM-DDTHH:II:SS (e.g. 2010-04-25T23:59:59)
|This entry was posted by Neil Craig on March 31, 2010 at 6:31 pm, and is filed under General Web-Development, HTML5. Follow any responses to this post through RSS 2.0. You can leave a response or trackback from your own site.|
No trackbacks yet.
about 1 year ago - No comments
This is a really quick post as i’ve been coding for a few hours and need to call it a day… So i was working on my new website which uses a lot of HTML5, CSS3 etc. and shows Youtube videos, so naturally I wanted to use the Youtube HTML5 embed method (which i still More >
about 2 years ago - No comments
about 2 years ago - 12 comments
I’ve just been creating the HTML for an Email to be sent out on behalf of a client and have found what appears to be a bug in Outlook 2007 & 2010 (which use the MS Word rendering engine) when using tall images in HTML Emails. My HTML Email was created from a JPEG designed More >
about 2 years ago - 2 comments
As every web-developer knows, testing your Web pages on the myriad of popular Web browsers can often be a horrible experience…and if there’s one thing which is even worse than testing web pages in different browsers, it surely has to be testing HTML Email layout in multiple Email clients!
about 3 years ago - 2 comments
HTML 5 offers 13 new form input element types but Browser support for these new input types is very scant at present. However, with JSH5F, you can use the new HTML 5 form elements right now in supporting Browsers without causing problems for people using non-supporting browsers.
about 3 years ago - No comments
This is my personal collection of FireFox extensions that I just can’t live without whilst developing websites.