How to Comment Out HTML
To make a comment tag is really easy. See the examples below. Comments can be added into the document. They are usually notes about the document. Your comments will not be viewable to your website visitor, meaning it will not show up on your web page. Comment can help make reading the html code easier. They are great for taking note explaining about an element or tag function, but will help you and other designers when updating the code.
Example 1
<!-- This is a comment, your visitors will not see this on their displays-->
Example 2 Find the comment in example 2 below.
Indentation
When writing your HTML code, do you use the tab or space bar for indentation? I'm not sure which is the right or wrong choice. I haven't been able to get a clear answer on the subject.
I use a text editor like Brackets, Notepad++, or even Notepad, believe it or not. I use them because it takes the guess work out of where to indent, it a great feature to have. When I first started off in web designing I used notepad, I was on a lower budget and needed any editor; The low feature Notepad did the job.
Well anyway, it's important to make sure that when you are writing your HTML codes, they are readable, not only to you, but, to others that may want to read your sources codes. You will learn more about source codes in another tutorial.
Example 1 Nicely Written HTML Document This document is legible
Example 2 Badly Written HTML Document
If you have any questions about using HTML, CSS, or Javascript please use the dussicion group or send me an PM here at Wealthy Affiliate. If you like this tutorial, please click on the like button and tell me how I can make it better.
UP NEXT - HTML Code: On The Job Training
I like it that way.
Cheers