HTML5 수학 연산자는 HTML 문서에서 수학 및 기술 연산자의 표현에 사용됩니다. 따라서 이러한 연산자를 웹페이지에 사용하기 위해 HTML 엔티티 이름을 사용합니다. 엔티티 이름이 없으면 10진수 또는 16진수 참조인 엔티티 번호를 사용할 수 있습니다.
구문
다음은 구문입니다 -
&operatorName;
또는
&#operatorHexcode;
또는
&#operatorHexadecimalcode;
HTML5 수학 연산자의 예를 살펴보겠습니다. -
예시
<!DOCTYPE html>
<html>
<style>
body {
color: #000;
height: 100vh;
background-color: #8BC6EC;
background-image: linear-gradient(135deg, #8BC6EC 0%, #9599E2 100%);
text-align: center;
}
</style>
<body>
<h1>HTML5 Mathematical Operator Demo</h1>
<p>Some Mathematical Symbols</p>
<p>− -- minus sign</p>
<p>° -- degree sign</p>
<p>∑ -- sigma sign</p>
<p>> -- greater than sign</p>
<p>≥ -- greater than or equal to sign</p>
<p>< -- less than sign</p>
<p>≤ -- less than or equal to sign</p>
<p>∫ -- integration sign</p>
</body>
</html> 출력
