HTML Entities (lt.4)

·

1 min read

HTML entities are a way to represent characters in HTML that cannot be easily typed on a keyboard.

Entities are special codes or sequences of characters used in HTML to display characters and symbols that have a special meaning in HTML. Entities are created by beginning with an ampersand (&) and ending with a semicolon (;)

you can read all html entities using the link :

https://developer.mozilla.org/en-US/docs/Glossary/Entity

Code for demonstrating html entities

lt3 link: https://hashnode.com/post/clnlage0000010ale8jk75s9p

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>html entities</title>
</head>
<body>
    <!-- for greater than -->
    <p> 5 &gt;  6</p>
    <!-- we can also use number for greater then -->
    <p> 5 &#62 80</p>
    <!-- // for space -->
    <p> Lorem ipsum dolor sit amet    consectetur &nbsp; adipisicing elit. Quos, voluptatibus?</p>
</body>
</html>