HTML Basic
HTML Entity
- HTML Entity
- HTML Alphabet Entity
- HTML Arrow Entity
- HTML Currency Entity
- HTML Math Entity
- HTML Number Entity
- HTML Punctuation Entity
- HTML Symbol Entity
HTML IndexedDB
HTML Reference
HTML Entity | Star
Photo Credit to CodeToFun
Quick Reference
Let's have a look at HTML Entity Star
in a Table View.
Name | Value |
---|---|
unicode | U+02605 |
hex code | ★ |
html code | ★ |
html entity | ★ |
css code | \02605 |
📄 Example
The following example will demonstrate how to use Star
using Hexa Decimal, HTML Code, HTML Entity and CSS Entity.
For a complete reference, go to our HTML Entities.
<!DOCTYPE html>
<html>
<head>
<style>
#point:after{
content: "\02605";
}
</style>
</head>
<body>
<p>Star using Hexa Decimal: ★</p>
<p>Star using HTML Code: ★</p>
<p>Star using HTML Entity: ★</p>
<p id="point">Star using CSS Entity: </p>
</body>
</html>
💻 Output
When you render the HTML code provided above, it will display the following output:
Star using Hexa Decimal: ★ Star using HTML Code: ★ Star using HTML Entity: ★ Star using CSS Entity: ★
✔ Conclusion:
Understanding and using HTML entities is fundamental for creating well-formatted, accessible web content. Whether you need to display special characters or ensure proper rendering of reserved symbols, HTML entities provide a standardized solution.
🤯 Fun Fact
Did you Know?
With over 1500 HTML entities available to date, please click here to explore the complete list of HTML entities.
👨💻 Join our Community:
Author
For over eight years, I worked as a full-stack web developer. Now, I have chosen my profession as a full-time blogger at codetofun.com.
Buy me a coffee to make codetofun.com free for everyone.
Buy me a Coffee
If you have any doubts regarding this article (HTML Entity | Star) please comment here. I will help you immediately.