Khamis, April 25

Chapter 1: Getting Started With HTML

Chapter 1: Getting Started With HTML

Viewing an HTML File

To view your own page in a browser, you must first save it. Because you've created an HTML document, you want to save your file with an .htm extension (first.htm, for example) so that you recognize it quickly.
You can preview any HTML file in your browser, even when that file is stored on your computer rather than on a Web server. In Internet Explorer, you can view your new file by selecting Open from the File menu. Below figure shows how Internet Explorer displays the first.htm file that you created in chapter1.1.
Notice that the Title bar contains the text between the <title> and </title> tags and the body of the browser contains the text between the <body> and </body> tags. Although you don't see them, HTML commands are sitting behind the scenes of every document that you open in your Web browser. You can see the HTML commands by selecting Source from the View menu of Internet Explorer. When you find a page on the Web that you like, you can view the source code to learn how you can use HTML to create something similar.

Click here to view a larger image.

Notice that the Title bar contains the text between the <title> and </title> tags and the body of the browser contains the text between the <body> and </body> tags. Although you don't see them, HTML commands are sitting behind the scenes of every document that you open in your Web browser. You can see the HTML commands by selecting Source from the View menu of Internet Explorer. When you find a page on the Web that you like, you can view the source code to learn how you can use HTML to create something similar.

Tiada ulasan:

Catat Ulasan