in Computer Applications by (1.9k points)

Ronaldo, a web designer in a start-up company, wants to give headingsin a webpage through <h1> tag. Additionally, he wants to implement following styles on all the <h1> tag of the same webpage at one go.

  • Color-blue
  • Background color-yellow
  • border of the heading - 2px in red

He is not able to implement the above-mentioned additional styles of <h1> tag through regular html code. Suggest him a way out and also help him in writing the code for same. 

1 Answer

0 votes
by (17.5k points)
 
Best answer

Ronaldo should use css to implement extra styles in <h1> tag.

HTML Code:

<html>

<head>

<style>

h1 {color: blue;background-color:yellow;border: 2px solid

red}

</style>

</head>

.

<body>

<h1>Welcome</h1>

</body>

</html>

<style> tag should be placed inside <head> tag of a webpage.

...