Basic Structure

(Basic Structure of an HTML File)

  • একটা HTML document begins with <html> (মানে এইটা দিয়ে শুরু হয়) and ends with </html>.

  • The visible part(দৃশ্যমান অংশ) of the HTML document is between <body> and </body>
.....................................................
<!DOCTYPE html>
<html>
    <head>
        <title>ওয়েব পেজের টাইটেল </title>
    </head>
    <body>
        <p>Hello This is a paragraph</p>
    </body>
</html>
.............................
  • Here The <html></html> element is the main element of the document.
And there are two elements inside it.
These are <head></head> and <body></body>.
These are called the child element of <html></html> element.
Like:
<title><title> is the child element of head element.

and

  • p is a child element of body element.
(<p></p> element stands for paragraph.
When you have to display some texts on webpage
simply you will write the texts inside that element:
<p>Your writing goes here </p>)

  • The head element works like the head(মাথা) of the document.
The things it contains are not visible to us.
But these are mandatory.
These control the behavior of the webpage.

Like it can contain the designs of the page.
Here it has child element(title).
It defines the title of the page.
(there is a picture of webpage title in the comment box. You can check it)

  • এইখানে body element আছে। আর body র ভিতর যা যা থাকবে তাই ব্রাউজারে দেখা যাবে।
<body> All the visible part of a webpage</body>
Basic Structure Basic Structure Reviewed by Dibya Jyoti Roy on 1:52 AM Rating: 5

No comments:

USD Blog - 2018 . Powered by Blogger.