Codewars is where developers achieve code mastery through challenge. Train on kata in the dojo and reach your highest potential. Code Kata / Code Dojo Code Challenge / Code Practice practice programming, practice javascript, practice ruby, practice coffeescript, practice coding. For Companies. Perbedaan,tabel,dan penjelasan tentang ASCII,EBCDIC, & SBCDIC. ASCII (American Standard Code For Information Interchange) merupakan kode standar yang digunakan dalam pertukaran informasi pada Komputer. Kode ASCII ini seperti Hex dan Unicode tetnamunapi ASCII lebih bersifat universal. (Line Feed) Kode 13(Carriage Return) Kode 8(Tab).
Active7 months ago
I know that the entities
<
and >
are used for <
and >
, but I am curious what these names stand for.Does
Steven M. Vascellaro<
stand for something like 'Left tag' or is it just a code?7,5811212 gold badges5555 silver badges117117 bronze badges
Michiel PaterMichiel Pater15.8k44 gold badges3535 silver badges5050 bronze badges
9 Answers
<
stands for the less-than sign ( < )>
stands for the greater-than sign ( > )≤
stands for the less-than or equals sign ( ≤ )≥
stands for the greater-than or equals sign ( ≥ )
Community♦
biscuitstackbiscuitstack8,11611 gold badge1515 silver badges2828 bronze badges
Thomas Vos4,92744 gold badges1818 silver badges5353 bronze badges
James GoodwinJames Goodwin
5,87833 gold badges2121 silver badges3838 bronze badges
They're used to explicitly define less than and greater than symbols. If one wanted to type out
<html>
and not have it be a tag in the HTML, one would use them. An alternate way is to wrap the <code>
element around code to not run into that. They can also be used to present mathematical operators.
meder omuralievmeder omuraliev147k5959 gold badges348348 silver badges417417 bronze badges
Mārtiņš BriedisMārtiņš Briedis14.1k55 gold badges4242 silver badges6565 bronze badges
Greg TreleavenGreg Treleaven3,13977 gold badges2525 silver badges2828 bronze badges
> and <
is a character entity reference for the >
and <
character in HTML.It is not possible to use the less than (<) or greater than (>) signs in your file, because the browser will mix them with tags.
for these difficulties you can use entity names(
>
) and entity numbers(<
).KathirKathir
Others have noted the correct answer, but have not clearly explained the all-important reason:
- why do we need this?
What do < and > stand for?
<
stands for the<
sign. Just remember: lt less than>
stands for the>
Just remember: gt greater than
Why can’t we simply use the <
and >
characters in HTML?
- This is because the
>
and<
characters are ‘reserved’ characters in HTML. - HTML is a mark up language: The
<
and>
are used to denote the starting and ending of different attributes: e.g.<h1>
and not for the displaying of the greater than or less than symbols. But what if you wanted to actually display those symbols? You would simply use<
and>
and the browser will know exactly how to display it.
15.8k66 gold badges6363 silver badges5151 bronze badges
shilovkshilovk5,5121414 gold badges4545 silver badges5858 bronze badges
<
stands for lesser than (<) symbol
and, the >
sign stands for greater than (>) symbol
.For more information on HTML Entities, visit this link:
Hope my answer was helpful to you...Have a great day ahead...
tejasguptatejasgupta
protected by Community♦May 18 '15 at 10:04
Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead?
Would you like to answer one of these unanswered questions instead?