If asked to build this component, which HTML would you probably write?
1
<div>
May
10
</div>
2
<div>
<p>May</p>
<p>10</p>
</div>
3
<div>
<h3 id="month">May</h3>
<h1 id="date">10</h1>
</div>
4
<div class="wrapper">
<div class="container">
<div class="month--outer">
<div class="month--inner">
<p id="month">May</p>
</div>
</div>
<div class="date--outer">
<div class="date--inner">
<p id="date">10</p>
</div>
</div>
</div>
</div>
5
<dl>
<dt id="month">May</dt>
<dd id="date">10</dd>
</dl>
Answers:
- Brand spankin' new
- Beginner
- Junior
- Junior who thinks you're coding like a Senior, but has a lot of bad habits to un-learn
- Senior
Top comments (4)
Cool, can you please explain those number 5 tags?
That's a Definition List and it's corresponding Definition Term and Definition Description tags. Lots more great info here: developer.mozilla.org/en-US/docs/W...
learn more html dd beginnerwebdeveloper.com/blog/html...
As a beginner, I'm happy to choose the answer of a junior. 😂❤️