Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

HTML character entity references for maximize and minimize

Is there anything like × for maximizing or minimizing?

× outputs an X. Likewise, is there anything built in available for maximize and minimize?

like image 491
Ajey Avatar asked Jan 07 '14 12:01

Ajey


People also ask

What is &nbsp in HTML?

A commonly used entity in HTML is the non-breaking space:   A non-breaking space is a space that will not break into a new line. Two words separated by a non-breaking space will stick together (not break into a new line). This is handy when breaking the words might be disruptive.

What is the format for character entity reference?

What is the format for character entity reference? Explanation: The format for character entity reference is &name; name is case-sensitive alphanumeric string and semicolon is necessary.

What is HTML character entity?

An HTML entity is a piece of text ("string") that begins with an ampersand ( & ) and ends with a semicolon ( ; ). Entities are frequently used to display reserved characters (which would otherwise be interpreted as HTML code), and invisible characters (like non-breaking spaces).


1 Answers

Unicode's Miscellaneous Symbols And Pictographs provides some window button glyphs:

🗕︎ 🗖︎ 🗙︎
🗕︎ 🗖︎ 🗙︎

🗕︎ 🗗︎ 🗙︎
🗕︎ 🗗︎ 🗙︎

However, these will not display well on all platforms. You should use SVG if you can.
(Or, include and use a font that specifically defines these.)

The ︎ is to prevent display as emoji. It's not guaranteed tho, and for instance my phone doesn't support it and will show emoji for all four of these glyphs.

like image 143
1j01 Avatar answered Oct 24 '22 08:10

1j01