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 “edit”, “vote”, or whatever)
If so should the action text be in the header cell with an icon in the actual column, or should that text be repeated on each cell (in the form of a button or link) and the header cell blank?
I think this would be fine.
If the action directly relates to the
tableand thetablecontains tabular data, then this would be fine.I would put a description of the action in the
headand then place an icon or abuttonin the cells.In order to make sure the
tablecan be used as widely as possible, make surenames,valuesoralttags.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.