Write an HTML program using the following specifications: a) The background color should be pink. b) The text color should be blue. c) The heading should be large in size as 'Physi... Write an HTML program using the following specifications: a) The background color should be pink. b) The text color should be blue. c) The heading should be large in size as 'Physical Style Tag'. d) Display a horizontal line after the heading in green color. e) Display your name in bold, address in italics, and standard as 11pt.

Question image

Understand the Problem

The question is asking to write an HTML program based on specific requirements, including colors and formatting styles for the background, text, heading, and name display.

Answer

Use HTML tags with CSS to style a page: pink background, blue text, large header, green line, bold name, italic address, 11pt text.
<style> body { background-color: pink; color: blue; } h1 { font-size: 2em; } hr { border-color: green; } .standard { font-size: 11pt; } </style>

Physical Style Tag


Your Name, Your Address, 11pt text

Answer for screen readers
<style> body { background-color: pink; color: blue; } h1 { font-size: 2em; } hr { border-color: green; } .standard { font-size: 11pt; } </style>

Physical Style Tag


Your Name, Your Address, 11pt text

More Information

This simple HTML program uses inline styles to apply colors and text formatting. CSS is used to control the presentation aspects according to the given specifications.

Tips

A common mistake is forgetting to use CSS for coloring or mixing up HTML tags (like using

instead of when bold is needed). Pay attention to each specification.

Sources

AI-generated content may contain errors. Please verify critical information

Thank you for voting!
Use Quizgecko on...
Browser
Browser