With semantics, the general page should be studied; without it, it is difficult to recommend an approach. This is how I see it:
You can consider H1-H6 as a hierarchy of importance of headings, ask yourself if the value changes from "name" to "job title" - if so, then dividing them into h2 and h3 is a semantic way.
In my opinion, a more accurate representation is the definition list approach:
<dl> <dt>[Name]</dt> <dd>[Job Title]</dd> </dl>
You can still add the <h2> and <h3> elements, but I believe that they are enough to represent the data, they can be created accordingly and contain more information via <dd> .
source share