You can use various special characters in an HTML document to print special character strings.
For example, the string <HTML> would print <HTML> on the HTML page. A selection of special HTML characters follows.
Special HTML Characters
Character | Meaning |
---|---|
< | < |
> | > |
& | & |
" | “ |
| nonbreaking space |
® | ®, registered symbol |
© | ©, copyright symbol |
One of the major enhancements in HTML 4.0 versus 3.2 is the improved ability to make documents valid in different languages. The two attributes that can be used are lang and dir. The lang attribute defines the language, and dir defines the direction of the text flow. These attributes are on all relevant elements. More information, including a complete list of language and direction codes, is available at www.w3.org.
<!—U.S. English keywords —> <meta name="keywords" lang="en-us" content="color"> <!—Canadian English keywords —> <meta name="keywords" lang="en" content="colour">
Comments are text that you want to include in the HTML document but that you do not display on the page. You can add a comment to any HTML document by using the following format:
<!—your comment here—>
Comments should not be nested and should not span multiple lines.
Team-Fly |