Presentation is loading. Please wait.

Presentation is loading. Please wait.

Adding Comments. XHTML Comments: Are useful for making notes to yourself (or future web designers working on your page.) Can function as reminders to.

Similar presentations


Presentation on theme: "Adding Comments. XHTML Comments: Are useful for making notes to yourself (or future web designers working on your page.) Can function as reminders to."— Presentation transcript:

1 Adding Comments

2 XHTML Comments: Are useful for making notes to yourself (or future web designers working on your page.) Can function as reminders to yourself when you redesign the page again, e.g. why you set something up the way you did. Are not visible when the page is viewed in a web browser but are visible when a page source is viewed by a visitor.

3 Comment Syntax: <!-- This is another comment. It is not visible when the web page is shown in a browser. --> Everything between the will be considered part of the comment by the browser and therefore ignored. Comments can span multiple lines. Line breaks and white space make no difference.

4 Example Comment: Comments can be very helpful to us as web designers, as they can prevent us from making harmful updates to our website in the future. <!-- This next link was set up to open in a new window because some visitors could not find their way back to my website. --> Yahoo! Never forget that these comments can be viewed by anyone who chooses to "View Source Code" in their browser. So be careful what you write!


Download ppt "Adding Comments. XHTML Comments: Are useful for making notes to yourself (or future web designers working on your page.) Can function as reminders to."

Similar presentations


Ads by Google