HTML/CSS/Style Basics/entity
Содержание
A browser interprets only the following characters as whitespace: space ( ), tab ( ), newline ( ), and return (
).
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
</head>
<body>
<h2>Embedding Space Entities</h2>
space ( ), tab (	), newline (
), and return (
)
</body>
</html>
Bottom ↓
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<style type="text/css">
</style>
</head>
<body>
<h1>Inline Box</h1>
<span class="box">Bottom ↓ </span>
</body>
</html>
Copy sign
<?xml version = "1.0"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns = "http://www.w3.org/1999/xhtml">
<head>
</head>
<body>
<p>All information on this site is <strong>©</strong>
</body>
</html>
Display Quote
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>Phrase elements</title>
<style type="text/css">
</style>
</head>
<body>
<p><code>#!/usr/local/bin/perl<br />
print "<var>Content-type: text/html\n</var>";<br />
print "<var>Hello World\n</var>";</code>
</p>
</body>
</html>
Embedding Space Entities
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
</head>
<body>
<h2>Embedding Space Entities</h2>
<code>&zwnj; </code>A‌A
<code>&thinsp; </code>Athinsp;A
<code>&nbsp; </code>A A
<code>&ensp; </code>A A
<code>&emsp; </code>A A
</body>
</html>
¼
<?xml version = "1.0"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns = "http://www.w3.org/1999/xhtml">
<head>
</head>
<body>
<p>Note: <strong>< ¼</strong> of the information
presented here is updated daily.</p>
</body>
</html>
← Left
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<style type="text/css">
</style>
</head>
<body>
<h1>Inline Box</h1>
<span class="box">← Left </span>
</body>
</html>
Right →
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<style type="text/css">
</style>
</head>
<body>
<h1>Inline Box</h1>
<span class="box">Right → </span>
</body>
</html>
& sign
<?xml version = "1.0"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns = "http://www.w3.org/1999/xhtml">
<head>
</head>
<body>
<p><strong>&</strong> Associates, Inc. 2002.</p>
</body>
</html>
Special Characters
Symbol Description Entity Name Number Code
& Ampersand & &
< Less than < <
> Greater than > >
" Double quote " "
Non-breaking space  
↑ Top
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<style type="text/css">
</style>
</head>
<body>
<h1>Inline Box</h1>
<span class="box">↑ Top </span>
</body>
</html>