WBP Practical No7 Answers
WBP Practical No7 Answers
r
VII Exercise
Si
1.Execute following HTML code and attached the output.
<html>
<body>
<p>I will display ∃</p>
<p>I will display ∅</p>
de
<p>I will display ∑ </p>
<p>I will display ↓</p>
<p><b>This text is bold</b></p>
</body>
a
</html>
Ans.
<!DOCTYPE html>
<html lang="en">
<head>
M
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Mathematical Symbols</title>
<style>
body {
font-family: Arial, sans-serif;
text-align: center;
margin-top: 50px;
}
.symbol {
font-size: 24px;
margin: 10px 0;
}
</style>
</head>
<body>
<h1>Mathematical Symbols</h1>
r
<div class="symbol">+ (Plus)</div>
Si
<div class="symbol">− (Minus)</div>
<div class="symbol">× (Multiplication)</div>
<div class="symbol">÷ (Division)</div>
<div class="symbol">√ (Square Root)</div>
</body>
</html>
a de
Answer in output
oh
XI Conclusion
Ans.
We have successfully implemented the use of special characters in a web page. By
utilizing HTML entities, we displayed various special symbols, such as
mathematical operators, currency symbols, and other unique characters. This
practical demonstrated the importance of using special characters for creating
user-friendly and visually appealing web pages.
It also highlighted how HTML provides a way to represent characters that are not
available on the keyboard or that have specific meanings in HTML syntax.
XII Practical Related Questions Note: Below given are few sample questions
for reference. Teachers must design more such questions so as to ensure the
achievement of identified
r
CO.
1. Write entity number and entity name to insert a copyright symbol on a
Si
browser page?
Ans.
Example in HTML:
a
<!DOCTYPE html>
oh
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Copyright Symbol</title>
M
</head>
<body>
<p>Using Entity Number: © 2025 Your Company</p>
<p>Using Entity Name: © 2025 Your Company</p>
</body>
</html>
Both methods will display the copyright symbol © on the browser.
2. What is the entity number and entity name for INDIAN RUPEE SIGN?
Ans,
The Indian Rupee Sign (₹) can be inserted in a browser using the following:
r
2. Entity Name: &rupee; (Note: Not supported in all browsers, so ₹
Si
is preferred.)
Example in HTML:
<!DOCTYPE html>
<html lang="en">
<head>
de
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Indian Rupee Sign</title>
a
</head>
<body>
<p>Using Entity Number: ₹ 1000</p>
oh
<p>Using Entity Name: &rupee; 1000 (may not work in all browsers)</p>
</body>
</html>
M
The ₹ entity number is widely supported and is the recommended way to
display the Indian Rupee sign.