Computer Science, asked by paritapase, 8 months ago

Write the CSS code to get the following
output in
Page, Use internal
stylesheet.
a web
This heading has a line above it
This heading has # line #cross it​

Answers

Answered by mad210203
0

HTML code is given below.

Explanation:

<!DOCTYPE html>

<html>

<head>

<style>

h1 {

 text-decoration: overline;

}

h2 {

 text-decoration: line-through;

}

}

</style>

</head>

<body>

<text>a web</text>

<h1>This heading has a line above it</h1>

<h2>This heading has a line across it</h2>

</body>

</html>

Refer the attached image to check how the website looks if we use this code.

Attachments:
Similar questions