|
Open a text editor and and type the following code My first HTML page. Save this file as firstpage.html or firstpage.htm
Open your web browser (Internet Explorer, Fir Fox etc). Select Open from file menu click the browse button and select firstpage.html and your browser will display the page. Explanation The tag tells your browser that this is the start of an HTML document. We have closed this tag at the end of the HTML document as . It tells the browser that this is the end of the HTML document. tag contain the header information. It starts with and ends with . Header information will not display in the browser window. . The title will be displayed in your browser's Title Bar. All the text between the and tags is the text that will be displayed in your browser. HTML Editors: You can use any text editor to edit HTML files like Notepad, WordPad etc. You can also use FrontPage or Dreamweaver, instead of writing your markup tags in a plain text file. HTML Tags HTML documents are text files that contains HTML elements and HTML elements are defined using HTML tags. HTML tags are enclosed with angle brackets < and >. Tags are used to mark-up HTML elements. We use HTML tags in pairs like and . The first tag is the start tag and the second tag is the end tag. The text between the start and end tags is the element contents.
|