Embedded Style Sample : style « Tags « HTML / CSS






Embedded Style Sample

  

<!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>
</head>
<body>
    <h1>Welcome!</h1>
</body>
</html>

   
  








Related examples in the same category

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