To see what HTML looks like and learn the most basic HTML tags, let's look at a very simple HTML document. Figure 2.1 shows a simple Web page in Microsoft Notepad. You can type the same text in your own editor to follow along with the lesson. Figure 2.1. The <html> and </html> tags are all you need to identify your file as an HTML file.Every HTML document must begin with the <html> tag and end with its complement, the </html> tag. In addition to the <html> tag, this document includes three other pairs of tags that should be included in any HTML document:
All HTML documents are separated into two parts: the head and the body. Because the title contains information about the document, the <title> and </title> tags are placed within the <head> and </head> tags. One More PageIf you were to create another simple HTML page, you would see that the same four tags are present in this document as well. Only the text that appears between tags is changed. <html> <head> <title>My Second Web Page</title> </head> <body> <p>This is my second Web page.</p> </body> </html> Tip
|