CBSE BOARD X, asked by sumangupta8742, 8 months ago

write HTML code to display a horizontal ruler with red colour and 50% in width​

Answers

Answered by tanvisindhu678
2

Explanation:

Following is the code to show the horizontal line red color :

<html>

<head>

<title>My Basic Question</title>

</head>

<body>

</br>

<hr color="red"></hr>

</body>

</html>

Answered by tanmaykhati68
0

Answer:

<!DOCTYPE html>

<html lang="en">

<head>

<meta charset="UTF-8" />

<meta name="viewport"

content="width=device-width,

initial-scale=1.0" />

<meta http-equiv="X-UA-Compatible"

content="ie=edge" />

<title>

Document

</title>

<style>

div {

width: 300px;

}

h1,

h3 {

color: green;

}

hr {

position: relative;

top: 20px;

border: none;

height: 12px;

background: black;

margin-bottom: 50px;

}

</style>

</head>

<body>

<center>

<div>

<h1>

GeeksforGeeks

</h1>

<hr />

<h3>

A Computer Science Portal

</h3>

</div>

</center>

</body>

</html>

Explanation:

Please mark me the Brainliest..

Similar questions