Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
// Incorrect:
<div class="article">
<div class="title">Title</div>
<div class="content">Article contents goes here!</div>
</div>
.article {}
.article .title {}
.article .content {}
// Correct:
<article>
<h1>Title</h1>
<p>Article contents goes here!</p>
<ul>
<li>list item</li>
</ul>
</article>
article {}
article > h1 {}
article > p {}
article > ul {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment