Clean code means that your HTML coding follows all specifications, I personally don't use true clean code, but very close to it. Here are a few ways to keep your code clean:
If you are writing an HTML document, sometimes you may want to put little reminders to yourself with your code so that you will be able to interpret your coding better. A comment will not appear in a web browser when the page is displayed... it is only visible when the source code is viewed. You start commented text with <!-- and end it with -->.
In the Box below, type the following HTML code, then click "Check it Out!" The HTML document you made will be displayed in your browser. You may wish to change the words within the tags just to try it out.
Try typing this:
<html>
<head><title>TITLE HERE</title></head>
<body>
<!-- No one will see this really long comment I have typed right here unless they decide to view the source. -->
This page Copyright © davesite.com.
</body>
</html>
|
Hosting for $4.95/mo
Unlimited Space, Free Domain Name [ Get Details ] Don't worry, it'll open in a new window ;) |