Thursday, 5 February 2015

NOTE web publisging

 NOTE THAT THE <! DOCTYPE> tag in the previous example doesn’t appear in lowercase like the rest of the tags. This tag is an exception to the XHTML rule and should appear in  uppercase. This is explained in detail in lesson 17, “designing for the real world,” in fact, you don’t have to specify a DOCTYPE at all to get your pages to work. The purpose of the DOCTYPE is to tell validators and browsers which specification your page was written to. I’ll include them in all examples in the book, but you can leave them out if you like.
After you create you HTML file, save it to your hard disk. Remember that if you’re using a word processor like Microsoft word, choose save as and make sure that you’re saving it as “text Only”. When you choose a name for the file, follow these follow rules:
·         The filename should have an extension of. Html (.html on DOS or windows systems that support only three-character extensions)-for example, my file, html, text. Html, or index.htm. most web software requires us your files to have these extensions, so get into the habit of doing it now. (if you are using windows, make sure that your computer is configured to show file ex tensions. If it isn’t, you’ll find yourself creating files named things like my file. Html.txt, which your browse will not think are HTML files.)
·         Use small, simple names. Don’t include spaces or special characters (bullets, accented characters)-just letters and numbers are fine.
 Now that you have an HTML file, start your web browser. You don’t have to be connected to the internet because you’re not going to be opening pages at any other site. Your browser or network connection software might complain about the lack of a network connection. But you should be able to work offline.
After your browser is running, look for a menu item or button labeled open, open file, or maybe open page, choosing it enables you to browse your local disk. The open command (or its equivalent) opens a document from our local disk, parses it, and displays it.
By using your browser and the open command, you can write and test your HTML files on your computer in the privacy of your own home. (on most operating systems, you can just dag the icon from your HTML file into an open browser window if you prefer.)
If you don’t see something similar to what’s shown in figure 3.2 (for example, if parts are missing or if everything looks like a heading), go back into your text editor and compare your file to the example. Make sure that all your tags have closing tags and that all your <characters are matched by> characters. You don’t have to quit your browser to do so;  just fix the file and save it an under the same name.

No comments:

Post a Comment