I need to code the following text in HTML:
Data:
We collect...
- a
- b
Aditional data:
We collect...
- c
- d
Is it correct to do the following in html?
<ul>
<li>
<p>Data:</p>
<p>We collect...</p>
<ul>
<li>a</li>
<li>b</li>
</ul>
</li>
<li>
...
</li>
</ul>
It's valid HTML, but without knowing more about your content, it's hard to determine if it's semantically correct. It seems like it may be more correct in this instance to use sections with headings instead: