HTML (General) Flashcards
1
Q
If a user hovers a cursor over an input field, a text box may appear that can have directions on what should go into the field. Which attribute do you add this to?
A
In the input element, use the title attribute
2
Q
What attribute allows you to specify tab order in a browser?
A
tabindex
3
Q
How do you associate a label with an input box?
A
Use the ‘for’ attribute
4
Q
How can we normalise some of the styling on input boxes between say safari and firefox?
A
Use
-webkit-appearance: none
-moz-appearance:none
will turn off the clever rounding of buttons that make them look different between browsers.