Home | Computer Science


1. Example of inline <html> <body> <p style="color:red;">A Blue Heading </p > <p style="color:red;">A red paragraph.</p > </body> </html>

A Blue Heading

A red paragraph.

2. Example of Internal <html> <head> <style> p { color: red; text-align: center; } </style> </head> <body> <p>Hello World!</p> <p>These paragraphs are styled with CSS.</p> </body> </html>

Hello World!

These paragraphs are styled with CSS.