1.

In an HTML page there are two <input> elements with default values; one is editable and the other one not editable. Add cyan as the background color for the input element which is not editable using CSS. [Hint: Use pseudo-class]

Answer»

The easiest way to draw a circle in CSS is using border-radius property. The code below will display a circle.

<!DOCTYPE html> <html>   <head>     <style>        #rcorners {         border-radius: 50%;         background: #73AD21;         border: 3px solid BLACK;         padding: 20px;         width: 200px;         HEIGHT: 200px;       }     </style>   </head>   <body>     <div id="rcorners"></div>   </body> </html>

OUTPUT:

Make sure you have the same width and height and have border-radius as 50% which will display a circle as SHOWN above.



Discussion

No Comment Found