HTML - goatandsheep/goatandsheep.github.com GitHub Wiki
DOM
Document Object Model
Element Characteristics
- Attribute: HTML, constants
- Property: representation of an attribute in the HTML DOM tree. Once the browser parses an HTML element, the corresponding DOM node will be created which is an object thus having properties. Properties can be modified and
Compatibility
<input pattern="regex" title="Error message instructing user about proper input format">
Lazy-Loading Images
- Generate a low-res version of your image that is
- Blur
- Convert image to Base64
- WIP
UX
- Show form fields that have been modified
- Use content placeholders
Inputs
label: Name of fieldname: attribute name for response objectplaceholder: use an example or show default valuetitle: descriptions and restrictions on your input. Display under the input
Custom components
- Easy star ratings
- If you're making a number or date picker and don't want the built-in styles, don't use
type="text", usetype="tel"