Contents
Definition and Usage
A form element may contain both a label for its data value, and the data value itself. For such elements, the ::value pseudo-element selects the representation of just the data value itself, in order to style its appearance.
Syntax
element:value { style properties }
Examples
1 | <input> |
2 | <label>Zip code<label> |
3 | <input::value/> |
4 | </input> |
1 | input { border:dashed } |
2 | label { border:dotted } |
3 | input::value { border:solid } |







