• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Q&A

Q1: When I open the file in my Web browser, I see all the text including the HTML tags. Sometimes I even see weird gobbledygook characters at the top of the page! What did I do wrong?
A1: You didn't save the file as plain text. Try saving the file again, being careful to save it as Text Only or ASCII Text. If you can't quite figure out how to get your word processor to do that, don't stress. Just type your HTML files in Notepad or SimpleText instead and everything should work just fine. (Also, always make sure the filename of your Web page ends in .htm or .html.)
Q2: I have this HTML Web page on my computer now. How do I get it on the Internet so everyone else can see it?
A2: Hour 4, "Publishing Your HTML Pages," explains how to put your pages on the Internet as well as how to get them ready for publishing on a local network or CD-ROM.
Q3:I want "Fred's Fresh Fish" to appear both at the top of my page and on people's bookmark (or favorites) lists when they bookmark my page. How can I get it to appear both places?
A3: Make a heading at the top of your page with the same text as the title, like this:
<html><head><title>Fred's Fresh Fish</title></head>
<body><h1>Fred's Fresh Fish</h1>
…the rest of the page goes here…
</body></html>

Q4:I've seen Web pages on the Internet that don't have <html> tags at the beginning. I've also seen pages with some other weird tags in front of the <html> tag. You said pages always have to start with <html>. What's the deal?
A4: Many Web browsers will forgive you if you forget to put in the <html> tag and will display the page correctly anyway. Yet it's a very good idea to include it because some software does need it to identify the page as valid HTML.

In fact, the official standard goes one step further and recommends that you put a tag at the beginning that looks like this: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN//4.0">. This indicates that your document conforms to the HTML 4 standard. No software that I've ever heard of pays any attention to this tag, however. Nor is it likely to be required in the near future, since so few of the millions of Web pages in the world include it.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint