Holla Tech-Learn

The HTML File

HTML files are text files, so you can use any text editor to create your first webpage.

There are some very nice HTML editors available; you can choose the one that works for you. For now, let’s write our example in Notepad.  

NOTE
You can run, save, and share your HTML codes on Notepad; or better still, download an external code editor to your device. 

The HTML File
  

Add the basic HTML structure to the text editor with “this is a line of text” in the body section. 

<html> <head> </head> <body> This is a line of text. </bo0dy> </html>

in our first example, the file is saved as first.html 

when the file is opened, the following is displayed in the web browser; 

NOTE
Don’t forget to save the file. HTML fille names should end in either .html or .htm

The <title> Tag

To place a title on the tab describing the web bpage, add a <title> element to your head section: 

<html> <head> <title> first page </title> </head> <body> This is a line of text. </body> </html> 

This will produce the following result: 


NOTE
The title element is important because it describes the page and is used by search engines.

BACK NEXT

CLICK ON THE BUTTON BELOW TO GO TO THE HTML MAIN COURSE PAGE. 

HTML MAIN COURSE PAGE

 


© License: All Rights Reserved 


CONTACT HOLLA TECH – LEARN SUPPORT