|
|
BOOK ![]() Joomla! Accessibility See More Search-engine optimization, or SEO, refers to the process of preparing your website to be spidered, indexed, and ranked by the major search engines so that when Internet users search for your keywords, your website will appear on their results page. Proper search engine optimization is a crucial step to ensure success and should be undertaken with care and diligence. This article by Brandon Dawson and Tom Canavan, takes a look at Search Engine Optimization and how it can be used in Joomla! to build a successful website. See More |
Creating Accessible Tables in Joomla!
Creating Accessible TablesTables got a bad review in accessibility circles, because they used to create complex visual layouts. This was due to the limitations in the support for presentational specifications like CSS and using tables for layout was a hack—that worked in the real world—when you wanted to position something in a precise part of the web page. Tables were designed to present data of all shapes and sizes, and that is really what they should be used for. The Trouble with TablesSo what are tables like for screen reader users? Tables often contain a lot of information, so sighted users need to look at the information at the top of the table (the header info), and sometimes the first column in each row to associate each data cell. Obviously this works for sighted users, but in order to make the tables accessible to a screen reader user we need to find a way of associating the data in each cell with its correct header so the screen reader can inform the user which header relates to each data cell. Screen reader users can navigate between data cells easily using the cursor keys. We will see how to make tables accessible in simple steps. There are methods of conveying the meaning and purpose of a table to the screen reader user by using the We will learn how to build a simple table using Joomla! and the features contained within the WYSIWYG editors that can make the table more accessible. Before we do that though I want you to ask yourself about why you want to use tables (though sometimes it is unavoidable) and what forms should they take. Simple guidelines for tables:
Time for Action—Create an Accessible Table (Part 1)In the following example we will build a simple table that will list the names of some artists, some albums they have recorded, and the year in which they recorded the albums.
For example, I filled in the following text: "A list of some funk artists, my favorite among their records, and the year they recorded it in". My table then looked as follows: ![]() What Just Happened?There is still some work to be done in order to make the content more accessible. The controls that the WYSIWYG editor offers are also a little limited so we will have to edit the HTML by hand. Adding the summary information is a very good start. The text that I entered "A list of some funk artists, my favorite among their records, and the year they recorded it in." will be read out by the screen reader as soon as it receives a focus by the user. Time for Action—Create an Accessible Table (Part 2)Next we are going to add a Caption to the table, which will be helpful to both sighted and non-sighted users. This is how it's done. Firstly, select the top row of the table, as these items are the table heading. Then click on the Table Row properties icon beside the Tables icon and select Table Head under General Properties. Make sure that the Update current Row is selected in the dialogue box in the bottom left. You will apply these properties to your selected row. If you wish to add a caption to your table you need to add an extra row to the table and then select the contents of that row and add the Caption in the row properties dialogue box. This will tell the browser to display the caption text, in this case Funky Table Caption, else it will remain hidden. ![]() What Just Happened?By adding caption to the table, you provide useful information to the screen reader user. This caption should be informative and should describe something useful about the table. As the Does it Work?What we just did using the WYSIWYG editor, TinyMCE, is enough to make a good start towards creating a more accessible table, but we will have to work a little more in order to truly make the table accessible. So we will now edit the HTML. The good news is that you have made some good steps in the right direction and the final step is of associating the data cells with their suitable headers, as this is something that we cannot really do with the WYSIWYG editor alone, and is essential to make your tables truly accessible.
Time for Action—Create an Accessible Table (Part 3)By selecting the table and pressing the HTML button in the editor you should see the following table code: <table border="2" cellspacing="5" cellpadding="5" width="350" Now we will add the This is how you make Give each header a unique id; in this example the In HTML code this will look as follows: <th id="Artist">Artist</th> It could just as easily be: <th id="header1">Artist</th> Or any other suitable naming convention that makes sense for your tables. Now that we have established the header and ids, we need to associate them with the cell contents of each row in the table body as follows. <tr><td headers = "Artist">James Brown</td> That takes care of the first row, now for the second and subsequent rows: <tr> Putting it All TogetherSo by looking at what we have done, can you see how the associations between headers and each data cell have been made? Look closely and you will see that it makes sense. <th id="Artist">Artist</th> So now you know what the correct accessible HTML should like. Now let's look at the code as it will appear in your WYSIWYG editor with the <table border="2" cellspacing="5" cellpadding="5" width="350" What Just Happened?The first two steps were a lot like creating any table, but we then took some extra steps with the HTML to make sure the table was really accessible.
By following this advice tables can be useful for both sighted and non-sighted users. Does Joomla! Have Good Table Manners?I found the capabilities of creating accessible tables limited. When I tested with a screen reader I could navigate around the table, but could not easily fi gure out what piece of cellular data was associated with what header. However, after tweaking the HTML, the table turned out just fine. I believe that the new version of TinyMCE (2.0) has the capability of adding the <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 //EN" While the
For more information, please visit: www.PacktPub.com/joomla-accessibility-websites-open-source-php-mysql/book About The AuthorJoshue O Connor is Senior Accessibility Consultant with CFIT (Centre For Inclusive Technology). CFIT is a part of the NCBI (National Council For The Blind of Ireland) and is a not-for-profit organization that provides expert advice and services to public and private sector organizations. These services include user testing, accessibility auditing and consultancy. Joshue has a creative background in Graphic Design, which lead to Web Development and New Media Training. After several years in the shark infested waters of the private sector, through IT training, he got to work teaching people with a wide range of physical and cognitive disabilities. This was an invaluable hands-on experience that brought him into contact with a diverse range of Assistive Technology users, who found technology a positive and enabling force in their lives. A natural gravitation towards Web Accessibility thus blossomed. Joshue is skilled in the design and development of accessible websites and has a deep understanding of the diversity of user requirements. He is a member of the Guild of Accessible Web Designers (GAWDS), the Web Standards Project ILG (WaSP ILG), the Irish Design For All E-Accessibility Network (Irl-Dean), the IIA User Experience Working Group (UEWG), EUAIN, and the HTML 5 Working Group. This is his first book, contributions to obscure academic papers notwithstanding. In his spare time he hangs out with his plants, studies computer science, plays Irish traditional music badly, and runs a small record label TechRecord. Books from Packt
|
TOP TITLES ![]()
See More |
| ||||||