Inline style : Inline Style « Style Basics « HTML / CSS






Inline style

  
<!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>
        <meta http-equiv='Content-Type' content='text/html; charset=UTF-8' />
        <title>Selectors and Grouping</title>

    </head>
    <body style='font-family: sans-serif; color: maroon;'>
        <h1 style='border-bottom: 1px solid rgb(200, 200, 200);'>
            Style Sheet
        </h1>
        <h2 style='border-bottom: 1px solid rgb(200, 200, 200);'>
            Rule
        </h2>
        <h3 style='border-bottom: 1px solid rgb(200, 200, 200);'>
            Selector
        </h3>
        <h4 style='border-bottom: 1px solid rgb(200, 200, 200);'>
            Declaration
        </h4>
        <h5 style='border-bottom: 1px solid rgb(200, 200, 200);'>
            Property
        </h5>
        <h6 style='border-bottom: 1px solid rgb(200, 200, 200);'>
            Value
        </h6>
    </body>
</html>

   
    
  








Related examples in the same category

1.inline style demo
2.Inline style for header