The attribute/property duality

How to work with attributes and properties in custom elements.