Thursday, 7 January 2021

Write a code to set up background color as yellow text as red heading as"This is my html

 Write a code to set up background color as yellow text as red heading as"This is my html

you can make a html web page with given condition 
1.set background color is yellow 
2.text color is red 
3.also making a red color heading "this is my html "

solution of this question is
<html>
<head> 
<title> yellow color background</title>
</head>
<body bgcolor="yellow">
<!---yellow color using font tag and heading color--->
<font color="red" ><h1>this is my html</h1></font>
<!-- using by css------>
<h1 style="color:red;">this is my html </h1>
</body>
</html>

0 comments:

Post a Comment