Elements can be focused by clicking on them, or by using the keyboard, for example the Tab key. When an element is focused, a dotted outline appears around it. If the element can accept input, like a text input field, the cursor will also start flashing inside the field. Depending on whether there are any Cascading Style Sheets (CSS) rules attached to the HTML element, it may also change color or other style attribute when focused.