I read this one and I am GENERAL using spacing or strengths to describe “text labels”. Is this true for best practices? This seems to be also a semantic path, but why is it limited only to form elements?
What if I want to display the information as follows:
Name: FOo Bar Age: 27 Weight: 151 kg
etc.?
name, age and weight can be described as labels, but since the elements they describe are not input tags, they are not semantically correct (at least for html and w3c). I usually use
<span class="label"> or <span class="description"> or <span class="person-detail"> etc
but, as a rule, there should also be a tag for labels that do not belong to input fields. Since this might be a bit subjective, I don't mind turning into a wiki community or something like that
source share