HTML and CSS Reference
In-Depth Information
Table 3.1 Escape Sequences (continued)
Escape Sequence
What It Represents
\n
Newline
\r
Return
\f
Form feed
\b
Backspace
\e
Escape
\\
Backslash
Special Escape Sequences
\XXX
The character with the Latin-1 encoding specified by up to
three octal digits XXX between 0 and 377.
\251 is the octal sequence for the copyright symbol.
\xXX
The character with the Latin-1 encoding specified by the
two hexadecimal digits XX between 00 and FF.
\xA9 is the hexadecimal sequence for the copyright symbol.
\uXXXX
The Unicode character specified by the four hexadecimal
digits XXXX.
\u00A9 is the Unicode sequence for the copyright symbol.
EXAMPLE 3.2
<html>
<head><title>Escape Sequences</title></head>
<body>
1
<pre>
<big>
2
<script type="text/javascript">
<!-- Hide script from old browsers.
3
document.write("\t\tHello\nworld!\n");
4
document.writeln("\"Nice day, Mate.\"\n");
5
document.writeln('Smiley face:<font size="+3"> \u263a\n');
//End hiding here. -->
</script>
</big>
</pre>
</body>
</html>
Search WWH ::




Custom Search