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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What attribute allows you to specify tab order in a browser?

A

tabindex

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How do you associate a label with an input box?

A

Use the ‘for’ attribute

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly