I have a ul with 2 li in it and a ul with 3 li inside the 1st url. Clarification what this error from https://validator.w3.org means please. (Thanks David @AllMediaLab for introducing me to this great resource.)
<div class="pricing-box"><span class="price">Choose Your Option</span>
<h2>Tax Deductions</h2>
<ul>
<li>
<i class="far fa-arrow-alt-circle-right"></i>
Once-a-year membership donation.
</li>
<li>
<i class="far fa-arrow-alt-circle-right"></i> A particular Poetry.LA series or a single episode for screen credit:
</li>
<ul>
<li>
<i class="far fa-hand-point-right"></i> Poetry.LA Interview Series hosted by Mariano Zaro
</li>
<li>
<i class="far fa-edit"></i> A Poem By hosted by Lisa Grove
</li>
<li>
<i class="far fa-moon"></i> They Write by Night hosted by Suzanne Lummis
</ul>
</ul><a class="btn" href="#"><b>Sign Up</b></a>
My advice is keep things simple and use one list and if needed style parts of the <li>.with padding.
Ecstatically I think your better of Aligning your list text and icons left (default settings of a list), what looks nice on paper doesn’t always look good on the web!
<div class="pricing-box"><span class="price">Choose Your Option</span>
<h2>Tax Deductions</h2>
<ul>
<li>
<i class="far fa-arrow-alt-circle-right"></i>
Once-a-year membership donation.
</li>
<li>
<i class="far fa-arrow-alt-circle-right"></i> A particular Poetry.LA series or a single episode for screen credit:
</li>
<ul>
<li>
<i class="far fa-hand-point-right"></i> Poetry.LA Interview Series hosted by Mariano Zaro
</li>
<li>
<i class="far fa-edit"></i> A Poem By hosted by Lisa Grove
</li>
<li>
<i class="far fa-moon"></i> They Write by Night hosted by Suzanne Lummis
</ul>
</ul><a class="btn" href="#"><b>Sign Up</b></a>
This is what he means the nesting should be like that not like your example. But looking at what you want to achieve I would keep it simple. Don’t see a reason to use it for your example!
The <ul> is nested in the <li> but when you are a beginner it can be very confusing.
@kat, based on your screenshot, your “sublist” provides detail to the second item in the main list. The way you create that relationship in the code is to insert the sublist inside the second item, after the text of the second item. It doesn’t make sense to have a sublist that’s not associated with a parent item, so HTML doesn’t allow it. And neither does writing in general.
HTML lists are designed to be nested. Taking a shortcut like AllMediaLab suggested defeats the purpose of HTML, which is designed for defining the meaningful relationships between various chunks of content.
Styling is done separately using CSS. If you didn’t do any styling at all (used only HTML), the HTML should still show that the sublist provides detail for that item because it’ll be appropriately indented. Then you can use styling to fine-tune the precise look and position of the HTML elements.