media='screen' in style tag : media « CSS « HTML / CSS






media='screen' in style tag

 


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
                      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns='http://www.w3.org/1999/xhtml' xml:lang='en'>
    <head>
        <title>print</title>
        <style rel='stylesheet'
              type='text/css'
              media='screen'
              >
p {
    width: 200px;
    height: 200px;
    padding: 10px;
    margin: 10px;
    border: 1px solid gold;
    background: yellow;
    font: 12px sans-serif
}              
        </style>      
    </head>
    <body>
        <p>
            Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec eu
            massa. Phasellus est eros, malesuada vel, tempus quis, pharetra at,
            lacus. Ut sit amet libero. Aliquam erat volutpat. Morbi erat. Nunc
            et purus vitae tortor sodales auctor. Nulla molestie. Pellentesque
            ante mauris, tristique ac, placerat sit amet, placerat nec, ante.
            Vestibulum interdum. Donec vitae tellus. Aliquam erat volutpat.
            Aenean dictum dolor ut sem.
        </p>
    </body>
</html>

 








Related examples in the same category

1.'media' Example
2.@media screen
3.@media print