Show Output
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Setting Line Height using CSS</title> <style> p { font-size: 14px; line-height: 20px; background-color: #f0e68c; } </style> </head> <body> <h1>Change the values to see how it works.</h1> <p>The <code>line-height</code> property sets the height between lines of text.<br> The line height of this paragraph is specified using pixels value.</p> </body> </html>