Two Embedded Style : style « Tags « HTML / CSS






Two Embedded Style

  
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>Embedded Style Sample</title>
    <style type="text/css" media="screen">
    
    h1 {
        font: Arial;
    }
    
    </style>
    
    <style type="text/css" media="print">
    
    h1 {
        font: Times;
    }
    
    </style>

</head>

<body>

    <h1>Welcome!</h1>

</body>
</html>

   
  








Related examples in the same category

1.Declaring a style sheet in the header section
2.Embedded Style Sample
3.Styling text with CSS
4.The style attribute allows you to declare inline styles. Separate multiple styles with a semicolon.
5.'style' Example