Introduction to HTML
- HTML stands for Hyper Text Markup Language.
- An HTML file is a text file containing small markup tags.
- An HTML file can be created using a simple text editor.
- Every HTML document begins with the <HTML> tags followed by two sections.
- This section is used to specify the title of the document.
- It begins with <HEAD> tag and with </Head> tag.
- This is followed by the <TITLE> tag and end with </TITLE> tag.
- It is used to display the title of the document.
- This section contains the document itself.
- The body section begins with the <BODY> tag and end with the </BODY> tag. It is followed by the text of the documents.
Working with HTML
- Start your browser (Internet Explorer / Netscape Navigator).
- Select “open” in the file menu of your browser.
- Select “Browse” and locate the HTML file we have just created.
- Click OK, and the browser will display the page.
- The first tag in HTML document is <html>.
- This tag tells browser that this is the start of an HTML document.
- The last tag in your document is </html>. This tag tells browser that this is the end of the HTML document.
- The text between the <head> tag and the </head> tag is header information.
- Header information is not displayed in the browser window.
- The text between the <body> and the </body> tag is the text that will be displayed in your browser.
- The text between the <title> tags is the title of your document. The title is displayed in your browser’s caption which is in the control bar.
Code for First Web Page:
Output for First Web Page: