Computer Science, asked by gauravgawali511, 11 months ago

Skill Set 2 - HTML 5
SOP1: Write a program using HTML with following specifications.
40 - The background colour should be green.
40-. The text colour should be red.
34-. The heading should be large in size as 'My First Web Page'.
- Display a horizontal line after the heading.
- Display your name in Bold, address in Italics and standard as 11th​

Answers

Answered by suskumari135
2

Write a program using HTML

Explanation:

HTML code

<!DOCTYPE html>

<html>

<head>

<title>Page Title</title>

</head>

<body style="background-color: green;">

<h1>My First Web Page</h1>

<hr>

<p style="color:red;"><b>Name : Nitin Sharma </b></p>

<p style="color:red;"><i>Address : Patel Nagar, Delhi</i></p>

<p style="color:red;">Standard : 11th </p>

</body>

</html>

The output is attached below:

HTML element can be set using the style tag.

The following syntax of style attribute:

<tag_name style="property_name:value;">

Attachments:
Similar questions