23.01.2018 Views

MICROSOFT_PRESS_EBOOK_PROGRAMMING_WINDOWS_8_APPS_WITH_HTML_CSS_AND_JAVASCRIPT_PDF

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

FIGURE 4-2 Standard <strong>HTML</strong>5 text input controls with default “light” styles (the ui-light.css stylesheet of WinJS).<br />

Control Markup Common Option Attributes Element Content (inner<br />

text/<strong>HTML</strong>)<br />

Button (note that without type, the default<br />

is "submit")<br />

button text<br />

Button<br />

<br />

<br />

<br />

value (button text)<br />

n/a<br />

Checkbox<br />

<br />

value, checked<br />

n/a (use a label element<br />

around the input control to<br />

add clickable text)<br />

Drop Down List size=“1” (default), multiple,<br />

selectedIndex<br />

multiple elements<br />

Email value (initial text) n/a<br />

File Upload accept (mime types), mulitple n/a<br />

140

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!