CodePen

HTML

            
              <div>
  <p>I'm the only paragraph element in this div.</p>  
  <ul>
    <li>List Item</li>
    <li>List Item</li>
  </ul>  
</div>

<div>
  <p>There are multiple paragraphs inside this div.</p>  
  <p>Yes there are.</p>  
  <ul>
    <li>List Item</li>
    <li>List Item</li>
  </ul>  
</div>
            
          
!

↑ Insert the most common viewport meta tag

CSS

            
              div {
  border: 1px solid #ccc;
  margin: 20px;
  padding: 10px 10px 10px 30px;
}

p:only-of-type {
  color: red;
}
            
          
!
? ?
? ?
Must be a valid URL.
+ add another resource
via CSS Lint

JS

            
              
            
          
!
Must be a valid URL.
+ add another resource
via JS Hint
Loading ..................