HTML and CSS Reference
In-Depth Information
not putting in enough CommentS
Do yourself a big favor and add a lot of comments to your HTML, CSS, and
JavaScript code. Use comments within the code to explain the relationship
of the markup to the content. Put comments at the beginning of every page
to explain the purpose of that page and to provide authorship information
and version history. You will thank yourself later, as will anyone else who
has to work on the code you let behind ater you move on to bigger and
betterĀ things.
Summary
Here are the important points to remember from this chapter:
.
Good websites are the result of good planning. here are many
approaches to building a website, and even more tools to help you do it.
Spending the time to analyze your requirements will help you choose the
best approach to putting your content online.
.
A website is essentially a directory of iles on a computer running web
server sotware. here are common conventions for naming the subdi-
rectories and iles in a website. Some important protocols require the
presence of iles with speciic names.
.
Good website organization and good navigation go hand in hand. here
are diferent techniques for providing navigation. Menu bars, drop
menus, buttons, imagemaps, and embedded hyperlinks all play a part.
.
Content can be hidden on a page and then later revealed in response to
a click, tap, or other user action. his provides a way to ofer more rich
content to search engine robots while avoiding clutter for humans.
.
You can add a large variety of information about a page to the head sec-
tion of an HTML document, including its relationships to other pages on
the Web. he head section is also where CSS styles are deined and other
resources are associated with the page.
.
Search engine optimization is an important part of most website proj-
ects. Good SEO starts with the proper use of HTML as a semantic
markup language.
 
 
 
Search WWH ::




Custom Search