Source Code:
(back to article)
Submit
Result:
Report an issue
<!DOCTYPE html> <html> <head> <title>Title of the document</title> <style> #grey { color: grey; } #purple { color: purple; } </style> </head> <body> <h1>Example of the HTML class attribute</h1> <p id="grey"> It is a some red paragraph. </p> <p>This is a some text.</p> <p id="purple"> It is a some yellow paragraph. </p> </body> </html>