Design a webpage that make use of Cascading Style Sheets with (css)

In this HTML tutorial we are learning about how to make a web page attractive using css (Cascading Style Sheets).

In the css backgrount-color is a property which is used to insert color in the background of a web page.


syntax :


<style> h1{

        background-color:pink;

                }

            body{

                background-color:coral;

                }

    </style>


Write a css program to change background color using.


<html>

<head>

    <style> h1{

        background-color:pink;

                }

            body{

                background-color:coral;

                }

    </style>        

</head>

<body>

    <h1>the form element</h1>

    <form>

    <label for="fname">first name:</label>

    <input type="text" id="fname" name="fname"><br><br>

    <label for="lname">last name:</label>

    <input type="text" id="lname" name="lname"><br><br>

    <input type="submit" value="submit">

    </form>

    </body>

</html>


output:

Write a css program to change background color using.

Post a Comment

0 Comments