What is Embedded Style Sheet?

What is Embedded Style Sheet?

Default Asked on June 3, 2018 in CSS.
Add Comment
1 Answer(s)

    Embedded style sheets allow you to define styles for the whole HTML page in one place.Use the HTML <style> element to define Embedded style sheets.

    <html>
    
    <head>
    
    <style>
    
    h1 {
    
    color: red;
    
    font-family: verdana;
    
    font-size: 24px;
    
    }
    
    p {
    
    color: black;
    
    font-family: courier;
    
    font-size: 16px;
    
    }
    
    </style>
    
    </head>
    
    <body>
    <h1>Welcome to my website.</h1>
    
    <p>Thank you so much.</p>
    </body>
    
    </html>
    

     

    Default Answered on December 1, 2018.
    Add Comment

    Your Answer

    By posting your answer, you agree to the privacy policy and terms of service.