What is the difference between the label
tag and the caption
tag. Could either be used when building forms? Why or why not? Thank you kindly!!!
The label
element associates some text (may be referred to as a ‘caption’) to a corresponding form control. Other than form
s, it doesn’t have a role in HTML.
caption
can be only be used in a table
element. The two semantic elements are not interchangeable, though both are important for accessibility.
40 Likes
Captioning Elements
The following are descriptive in one form or another, whether direct caption or context relevant. All are forms of captioning that aid the user in comprehending, thus reinforcing the goal of a call to action, as most marketers would put it.
12 Likes