LAB SESSION
Perfection Through Practice
write the HTML code to generate the following web page using the relevant tags and CSS properties
INSTRUCTIONS
1.Set the heading of the page as "Save the Earth". It should be in 'Arial' font and bold with size 60px and colour Yellow.
2.Background colour of the page should be "Green".
3.Type the subheading as given in the figure. The subheading should be in "Verdana" font, bold, size 30px,and colour Orange.
Answers
Answered by
8
<!DOCTYPE html><html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style type="text/css" media="all"> body { background: green; } h1 { font-family: Arial; font-weight: bold; font-size: 60px; color: yellow; } h3 { font-family: Verdana; font-weight: bold; font-size: 30px; color: orange; } </style> </head> <body> <h1>Save the Earth</h1> <h3>Some subheading</h3> </body></html>
Answered by
3
Explanation:
def colour(n):
if 5 <= n <=15:
return "green"
if 15 <= n <=25:
return "blue"
if 25 <= n <=35:
return "orange"
return "ALL COLOUR'S ARE BEAUTIFUL"
n = int(input("enter a number: "))
print(colour(n))
Similar questions