Exercise: alter the tutorial website so that access is not dependent on the use of colour

Exercise

View the contacts page on the tutorial site (either on your local copy or on the web).

Note the use of colour in the contacts page form to indicate compulsory fields.

View the page using the Vischeck website; the contact form instructions are unlikely to make sense to a person with the most common form of colour blindness.

Change the tutorial file so that the instructions about which fields are compulsory does not rely on the use of colour:

Look for the following markup in the contact.php file,

<p><font color="#A52A2A">Fields with red text labels are compulsory.</font></p>

Modify the text to indicate compulsory fields without the reliance on colour.

Compulsory fields are marked *

Modify the text and markup for the form field label from,

<font color="#A52A2A">Email address :</font>

to

* Email address :

Contributed by Jim Byrne



Add your comment