Embedded Style - HTML CSS CSS

HTML CSS examples for CSS:Introduction

Introduction

The following code adds style with the Style Element.

Demo Code

ResultView the demo in separate window

<!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>

Related Tutorials