Reputation: 4371
How do I display this ► Play (Forward) or Solid right arrow symbol in html?
Upvotes: 83
Views: 208781
Reputation:
Bootstrap glyphicons is a reliable library for icons:
https://getbootstrap.com/docs/3.3/components/
<span class="glyphicon glyphicon-play"></span><br>
<span class="glyphicon glyphicon-play-circle"></span><br>
<span class="glyphicon glyphicon-triangle-right"></span><br>
Remember to also include Bootstrap and jQuery in the <head>
element.
<head>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js">
</script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/js/bootstrap.min.js"></script>
</head>
JSFiddle explaining this: https://jsfiddle.net/canada/dfr90pac/
Upvotes: 0
Reputation: 977
Well, you could use an image and display it in the <img>
tags. On their click event, you could write some JavaScript code. You could search the images in Google.
Upvotes: -9
Reputation: 618
I tried using the ascii code but didn't like it as it always looked stretched.
Instead, I found an ingenious easily customizable solution online, that uses css and only manipulates the border property:
.play {
border-top: 10px solid white;
border-bottom: 10px solid white;
border-left: 20px solid black;
height: 0px;
}
<div class="play"></div>
Upvotes: 12
Reputation: 621
If you need to use it in CSS, as in
li:before {
content: '\25BA';
}
This is the CSS conversion of ►
A helpful tool for these conversions: evotech.net/articles/testjsentities.html
Upvotes: 40
Reputation: 10523
Here's a long list of what you can use:
http://brucejohnson.ca/SpecialCharacters.html
Upvotes: 11