Computer Science, asked by dkoshy0, 6 months ago

write the html code to set the background color as pink. the text" this is pink background" should be in red , alligned towards the right of the webpage and the page margin from the top should be set as 60 pixels

Answers

Answered by faseelaandru
7

<html>

<head>

<title>My webpage</title>

</head>

<body background = "pink" style="top-margin: 60px">

<p style="color: pink; text-align: right">This is a pink background</p>

</body>

</html>

Answered by Anonymous
1

Answer:

<!DOCTYPE html>

<html lang="en">

<head>

   <meta charset="UTF-8">

   <meta name="viewport" content="width=device-width, initial-scale=1.0">

   <title>Document</title>

   <style>

       *{

           margin-top: 60px;

       }

       p{

           color:red;

           text-align: right;

       }

   </style>

</head>

<body bgcolor="pink">

   <p>This is pink background.</p>

</body>

</html>

Explanation:

  Here i used internal css .

thanks bro.

Similar questions