HTML CSS examples for CSS:Introduction
Multiple Styles in a Single Style Element
<!DOCTYPE HTML> <html> <head> <title>Example</title> <style type="text/css"> a {<!--from ww w . j av a2s . com--> background-color:grey; color:white } span { border: thin black solid; padding: 10px; } </style> </head> <body> <a href="http://java2s.com">Website</a> <p>I like <span>CSS</span> and HTML.</p> <a href="http://w3c.org">Visit the W3C website</a> </body> </html>