Topic: Simple request: support for 'title' tag in a href links on menu etc
This is a simple request to enhance the accessibility and usability of PunBB, at least in one small way.
At the moment no links in the standard PunBB forum menu, or any links anywhere else in punBB for that matter, support the 'title' variable in their href code.
The 'title' variable in HTML is very handy for enabling information about the link to be displayed when, for example, you hover the mouse over a specific link.
So for example in the main menu of punBB at the moment you get a link with HTML like this:
<a href="userlist.php">User list</a>
whereas if you had a link that used the 'title' variable like this:
<a title="Search or browse a list of forum users" href="userlist.php">User list</a>
you would have a much more informative link which displayed 'Search or browse a list of forum users' when the mouse hovered over it, or when a text only screen-reader encountered that link. It is the same concept as using 'alt' tags for images, and is very standard HTML.
I can only add the 'title' element to those links I manually add via HTML inserted into the menu via the Administration > Options page.
But it would be better if we had some way of modifying the code behind the main menu links to include this 'title' information. Short of hacking the PHP pages directly, there seems no way of getting that 'title' tag into the main menu items.
Or am I just betraying my ignorance of CSS here?
Can I get the same result by playing with the CSS defined for each menu item ID, like the id="navindex", id="navuserlist" etc CSS IDs used in the menu, and somehow do something with punBB style sheets to achieve the same thing? :
On a related note, punBB also doesn't seem to set any alt text for any images anywhere, for eg here, for the avatar displayed in a post:
<img src="img/avatars/2.gif" width="64" height="80" alt="" />
You should at least populate that alt tag with something like 'avatar image', I think. Improves accessibility and usability a bit.