Html -step1-3

Step 1 - starting a HTML file:
At first you're going to define in which language you're going to start programming. You do this as follows:
Type this in Notepad:
<HTML>
</HTML>

With <HTML> you start your document. With </HTML> you end your document. Anything that's written in between will be read as HTML by the browser.


Step 2 - head:
An HTML document has two parts. A Head and a Body. The Head usually contains a title, that appears at the top left of a browser. The body contains tags that determine the lay out. This shapes the website that becomes viewable in the browser.
We'll add a Head to our document. Make sure your document will look like this. The red color is being used here to show what's been added to the document. The text that's printed italic, is variable. You can change this to your own text:
<HTML>
<HEAD>
<TITLE>my own homepage</TITLE>
</HEAD>
</HTML>

With the above codes you have told the browser to print your TITLE in the HEAD of the browser. The text that's printed within the title-tag will show on the top left of the browser. You can test this.
- Go to File
- Save as
- Set "Save as" to All files
- Fill out "index.html" at File name
- Click OK
Open your browser and open the file index.html. The body will be empty, but way at the top of the browser you can see your title.
As you can see you open and close HTML tags. In this case, you open the header first, place the title within and then close both.
What you may have noticed is that the HTML tags are written in CAPITOLS. This is not required. The browsers read the tags even without the capitols, but you will notice with maintenance that it saves you a lot of time when you write HTML tags this way. By writing tags in capitols you will easily find your way around the file. You can easily recognise the tags and the texts written within.

Step 2 - head:
An HTML document has two parts. A Head and a Body. The Head usually contains a title, that appears at the top left of a browser. The body contains tags that determine the lay out. This shapes the website that becomes viewable in the browser.
We'll add a Head to our document. Make sure your document will look like this. The red color is being used here to show what's been added to the document. The text that's printed italic, is variable. You can change this to your own text:
<HTML>
<HEAD>
<TITLE>my own homepage</TITLE>
</HEAD>
</HTML>

With the above codes you have told the browser to print your TITLE in the HEAD of the browser. The text that's printed within the title-tag will show on the top left of the browser. You can test this.
- Go to File
- Save as
- Set "Save as" to All files
- Fill out "index.html" at File name
- Click OK
Open your browser and open the file index.html. The body will be empty, but way at the top of the browser you can see your title.
As you can see you open and close HTML tags. In this case, you open the header first, place the title within and then close both.
What you may have noticed is that the HTML tags are written in CAPITOLS. This is not required. The browsers read the tags even without the capitols, but you will notice with maintenance that it saves you a lot of time when you write HTML tags this way. By writing tags in capitols you will easily find your way around the file. You can easily recognise the tags and the texts written within.

Leave a Comment

0 comments:

একটি মন্তব্য পোস্ট করুন

Popular Posts

Recent Comments