Internal Styles

Internal Styles are defined in the <head> section of the "current" web page. To define a style and apply it to many elements that belong to a web page, use a style sheet. The style can be placed inside the <style>..</style> element. Place the style sheet rules inside a <style>..</style> element and insert that element inside the <head>..</head> section of the web page. Add the "type" attribute of the <style> element. Set the type attribute value to "text/css"(the default value). For modern browsers no need to set the type attribute as it defaults to "text/css"
<html>
<head>
    <style>
        <!--
        	Style sheet rules
        -->
    </style>
</head>
</html>
snippet
<html>
<head>
    <style>
        a {font-style: underline;}
        p {style="color: red;}
        h2 {font-style:italic; color: #efefef;}
    </style>
</head>
<body>
    <h2>This is a Title</h2>
    <a href="http://quotefellas.com">Get beautiful inspiring quotes from Quotefells.com </a>
    <p> Hard work beats talent when talent doesn't work hard.</p>
</body>
</html>
Related Tutorial
Follow Us
https://www.facebook.com/Rookie-Nerd-638990322793530 https://twitter.com/RookieNerdTutor https://plus.google.com/b/117136517396468545840 #
Contents +