main part of html এইসটিএমএল এর গুরুত্বপূর্ণ বিষয়

Today, I will discuss some essential topics related to HTML.

Let's start by looking at the example below:
<!DOCTYPE html>
<html lang="en">
    <meta content='width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1' name='viewport'/>
    <meta charset="utf-8">
    Hello World !!!
In this code, I've begun with the declaration `<!DOCTYPE html>`. Generally, when we write code, we omit it. However, when we use PHP within HTML, it becomes necessary. Additionally, certain browsers might not understand the file type without this declaration. Thus, by including `<!DOCTYPE html>`, all browsers can recognize it as an HTML file.

Next, I've used `<html lang="en">`. This tag informs the browser that the language of the HTML content is English.

Following that, I've used two `<meta>` tags:

1. The first tag `<meta content='width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1' name='viewport'/>` conveys to the browser that the width or dimensions of the content should match the device's width. The settings `initial-scale=1, minimum-scale=1, maximum-scale=1` indicate that the content will not be scaled. `name='viewport'` refers to the name of this viewport configuration.

2. The second tag `<meta charset="utf-8">` specifies that the character encoding is UTF-8, which encompasses a range of 256 characters.

Next Post Previous Post
No Comment
Add Comment
comment url