HTML CSS examples for CSS:Introduction
The following code adds style with the Style Element.
<!DOCTYPE HTML> <html> <head> <title>Example</title> <style type="text/css"> a {<!--from w w w .j a va 2 s . co m--> background-color:grey; color:white } </style> </head> <body> <a href="http://java2s.com">website</a> <p>I like <span>CSS</span> and HTML.</p> </body> </html>