Agyan
adda
Run
Reset
Copy
CSS Tutorial › CSS Syntax › Rule with several declarations
Back to tutorial
Code
Edit, then press Run or Ctrl+Enter
<style> p { color: white; background-color: #1f386b; padding: 12px; font-size: 18px; } </style> <p>One selector, four declarations.</p>
Result