body {font-family: Tahoma;font-size: 12px;}p + p {margin-left: 10px;}
<div><p>Header paragraph</p><p>This is a paragraph</p><p>This is another paragraph</p><p>This is yet another paragraph</p><hr><p>Footer paragraph</p></div>
body {font-family: Tahoma;font-size: 12px;}p ~ p {margin-left: 10px;}
<div><p>Header paragraph</p><p>This is a paragraph</p><p>This is another paragraph</p><p>This is yet another paragraph</p><hr><p>Footer paragraph</p></div>
p+p{//styling the code}
p+p{} simply mean find all the adjacent/sibling paragraphs with respect to first paragraph in DOM body.
<div><input type="text" placeholder="something"><p>This is first paragraph</p><button>Button </button><p> This is second paragraph</p><p>This is third paragraph</p></div>
Styling part<style type="text/css">p+p{color: red;font-weight: bolder;}</style>
It will style all sibling paragraph with red color.