World Languages, asked by moinshaikh6007, 3 months ago

Write a program using html with following CSS specifications a) The background color of the College name should be in red color. b) The text color of the College name should be yellow color c) The description of the college should be paragraph with right align.​

Answers

Answered by namanpro30
17

Answer:

<html>

<head>

<style>

#heading {

background-color: green;

color: red;

font-family: comic sans ms;

}

#description {

color: blue;

}

</style>

</head>

<body>

<h1 id="heading"> company_name </h1>

<p id="description"> ' description_ ' </p>

</body>

</html>

Attachments:
Answered by sarahssynergy
3

Given below is the program using HTNL with CSS specifications.

Explanation:

  • let the college name be specified under headings tags "<h1></h1>" and have the id as 'head'
  • let the college description be specified under paragraphs tag "<p></p>" and have the id as 'desc'
  • Now the CSS specifications for them are written under '#{id_name}' in style tags "<style></style>.
  • PROGRAM:
  • <html>
  • <head>
  • <style>
  • #head{
  • background-color: red;
  • color: yellow;
  • }
  • #desc{
  • text-align: right;
  • }
  • </style>
  • </head>
  • <body>
  • <h1 id="head">College Name</h1>
  • <p id="desc"> College Description</p>
  • </body>
  • </html>

Similar questions