1 / 6

Including Comments in an HTML Document

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.

merv
Download Presentation

Including Comments in an HTML Document

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 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

  2. 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

  3. Using the Acronym and the Abbreviation Tags New Perspectives on Blended HTML, XHTML, and CSS

  4. Inserting Special Characters • Some characters in HTML cannot be created by using the keyboard • Special characters New Perspectives on Blended HTML, XHTML, and CSS

  5. 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

  6. 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

More Related