HTML file: | Displayed by browser: |
---|---|
<style>
p:last-of-type { background: #ff0000; } </style> <body> <h1>This is a heading.</h1> <p>The first paragraph.</p> <p>The second paragraph.</p> <p>The third paragraph.</p> <p>The fourth paragraph.</p> </body> |
This is a headingThe first paragraph. The second paragraph. The third paragraph. The fourth paragraph. |