HTML First Day
HTML (HyperText Markup Language) holo ekta basic language, ja diye website er structure toiri
kora hoy. Ekhane ami tomake HTML-er basic kichu jinis Banglaye bujhiye dichhi.
1. HTML-er basic structure:
<!DOCTYPE html>
<html>
<head>
<title>Amar Prothom Webpage</title>
</head>
<body>
<h1>Ei holo amar prothom webpage!</h1>
<p>HTML shikha khub moja.</p>
</body>
</html>
Bujhiye dichhi:
- <!DOCTYPE html>: HTML5 use korchi, seta declare korche.
- <html>: Shob HTML content er main container.
- <head>: Page er information thake ekhane (title, CSS, etc.).
- <title>: Browser e page er naam dekhabe.
- <body>: Main content, ja user dekhte pay webpage-e.
2. Kichu Important HTML Tag:
| Tag | Kaj |
|------------------|-----------------------------|
| <h1> theke <h6> | Heading (boro theke chhoto) |
| <p> | Paragraph likhte |
| <a href="URL"> | Link toiri korte |
| <img src=""> | Chhobi dekhate |
| <ul>, <ol>, <li> | List toiri korte |
| <br> | Line break dite |
| <strong> | Bold text |
| <em> | Italic text |
3. Udaharan:
<!DOCTYPE html>
<html>
<head>
<title>HTML Example</title>
</head>
<body>
<h1>Swagato!</h1>
<p>Ei holo amar prothom HTML page.</p>
<a href="[Link] e jaan</a><br>
<img src="[Link] alt="Demo Image">
<h2>Amar pasander list:</h2>
<ul>
<li>Boichitra</li>
<li>Porashona</li>
<li>Programming</li>
</ul>
</body>
</html>