70 likes | 243 Views
Including Comments in an HTML Document. On a new blank line in an HTML document, type the start code for a comment: <!-- Type the comment Type the end code for a comment: --> Press the Enter key. Using the Acronym and the Abbreviation Tags.
E N D
Including Comments in an HTML Document • On a new blank line in an HTML document, type the start code for a comment: <!-- • Type the comment • Type the end code for a comment: --> • Press the Enter key New Perspectives on Blended HTML, XHTML, and CSS
Using the Acronym and the Abbreviation Tags • To display a ScreenTip defining an acronym, use the <acronym> tag with a title attribute, as follows: <acronym title="acronym definition">ACRONYM</acronym> • To display a ScreenTip showing the complete form of an abbreviation, use the <abbr> tag with a title attribute, as follows: <abbr title="complete word or phrase">Abbreviation</abbr> New Perspectives on Blended HTML, XHTML, and CSS
Using the Acronym and the Abbreviation Tags New Perspectives on Blended HTML, XHTML, and CSS
Inserting Special Characters • Some characters in HTML cannot be created by using the keyboard • Special characters New Perspectives on Blended HTML, XHTML, and CSS
Tips for Typing HTML Code in a Text Editor • Type all code in lowercase • List codes separately as much as possible • Use white space • Insert a break code at the beginning of a line, not after it • Enter code between start and end tags • Don’t use deprecated tags • Format terminal punctuation properly • Beware of quotation marks from pasted text New Perspectives on Blended HTML, XHTML, and CSS
Working with Search Engines • When you view the source code for an HTML page, you often see one or more <meta> • tags within the <head> </head> tags • One use of <meta> tags is that they can help search engines, such as Google, find your site on the Web based on the keywords you have coded within the <meta> tags on the home page New Perspectives on Blended HTML, XHTML, and CSS