Write coding in html ,to print name of your five friends in diff colours in diff lines
Answers
Answered by
0
Answer:
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title> HTML Sample </title>
</head>
<body>
<style>
#one{
color: blue;
}
#two{
color: red;
}
#three{
color: green;
}
#four{
color: yellow;
}
#five{
color: orange;
}
</style>
<p id='one'>Name 1</p>
<p id='two'>Name 2</p>
<p id='three'>Name 3</p>
<p id='four'>Name 4</p>
<p id='five'>Name 5</p>
</body>
</html>
Similar questions