Download presentation
Presentation is loading. Please wait.
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 a comment. --> <!-- This is another comment. It is not visible when the web page is shown in a browser. --> Everything between the <!-- and 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: <!-- This next link was set up to open in a new window because some visitors could not find their way back to my website. --> <a href=" target="_blank">Yahoo!</a> 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. 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! Yahoo!
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.