<html> <head> <style> h1 {text-align: center;} p {text-align: center;} </style> </head> <body> <h1>This is a heading</h1> <p>This is a paragraph.</p> </body> </html>