Is It Semantically Correct To Have An Action Button Column In An Html Table?
Say you have some tabular data you want to display, as well as allow the user to perform some action on a row. Is that semantically correct to have an 'action' column? (could be
Solution 1:
I think this would be fine.
If the action directly relates to the table
and the table
contains tabular data, then this would be fine.
I would put a description of the action in the head
and then place an icon or a button
in the cells.
In order to make sure the table
can be used as widely as possible, make sure
- it retains its tab structure
- the columns and rows are plainly marked
- the buttons are given
names
,values
oralt
tags.
Also, I would say remember that semantic markup is not the goal... it is only a tool to achieve the best possible product. In some cases, semantics may need to be subjugated to need.
Post a Comment for "Is It Semantically Correct To Have An Action Button Column In An Html Table?"