How to optimize website for touch devices

It sounds to me like you want to have a touch-screen-friendly option, to cover the following scenarios: iPhone-like devices: small screen, touch only Small screens, no touch (you didn’t mention this one) Large screens, no touch (i.e. conventional computers) Touch-screen-enabled large screens such as iPad, notebooks/pcs with touch screens. For case 1 and 2 you … Read more

What’s the “for” for in a label tag?

From w3schools.org: The tag defines a label for an input element. The label element does not render as anything special for the user. However, it provides a usability improvement for mouse users, because if the user clicks on the text within the label element, it toggles the control. The for attribute of the tag should … Read more

Delay HTML5 :invalid pseudo-class until the first event

http://www.alistapart.com/articles/forward-thinking-form-validation/ Since we only want to denote that a field is invalid once it has focus, we use the focus pseudo-class to trigger the invalid styling. (Naturally, flagging all required fields as invalid from the start would be a poor design choice.) Following this logic, your code would look something like this… <style> input:focus:required:invalid {background-color: … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)