-
Book Overview & Buying
-
Table Of Contents
Web Developer's Reference Guide
By :
These are attributes that are available for every HTML element. However, you should note that just because the attribute is available, it does not mean that it will actually do anything.
The accesskey attribute creates a keyboard shortcut to activate or focus on the element:
<element accesskey></element>
The accesskey attribute allows you to create a keyboard shortcut. This can be a space-delimited list of characters. Most browsers on Windows will use Alt + accesskey and most browsers on Mac use Ctrl + Option + accesskey.
Here is an example using a textbox that can be focused on with the character q:
<input type="search" name="q" accesskey="q"/>
The class attribute is often used to help group similar elements for CSS selectors:
<element class></element>
The class attribute is one of the most used attributes. The class attribute allows CSS to target multiple elements and apply a style...
Change the font size
Change margin width
Change background colour