Customize Consent Preferences

We use cookies to help you navigate efficiently and perform certain functions. You will find detailed information about all cookies under each consent category below.

The cookies that are categorized as "Necessary" are stored on your browser as they are essential for enabling the basic functionalities of the site. ... 

Always Active

Necessary cookies are required to enable the basic features of this site, such as providing secure log-in or adjusting your consent preferences. These cookies do not store any personally identifiable data.

No cookies to display.

Functional cookies help perform certain functionalities like sharing the content of the website on social media platforms, collecting feedback, and other third-party features.

No cookies to display.

Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics such as the number of visitors, bounce rate, traffic source, etc.

No cookies to display.

Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.

No cookies to display.

Advertisement cookies are used to provide visitors with customized advertisements based on the pages you visited previously and to analyze the effectiveness of the ad campaigns.

No cookies to display.

html এ DOCTYPE html কেন ব্যবহার হয়

শুরুতেই বলে রাখা ভালো  <!DOCTYPE> কে সম্পূর্ন ট্যাগ বলা হয় না।  <!DOCTYPE> ব্যাবহার করা হয়ে থাকে  html এর কোন ভার্সন সেইটাকে বোঝাতে।  এইচটিএমএলে প্রথমেই <!DOCTYPE> ব্যাবহার করা হয়, এইটি গুরুত্বপূর্ণ জিনিস। যা একটি ওয়েব ব্রাউজারকে নির্দেশনা দিয়ে থাকে এটি html এর কোন ভার্সন ।


doctype html

doctype html

আসলে Document Type থেকে এসেছে doctype আর অনেকেই এটিকে লেখে DOCTYPE আকারেও । <!DOCTYPE html>  এর প্রধান কাজ হচ্ছে ওয়েব ব্রাউজার কে বলে দেয়া যে ওয়েব পেজটির Document Type HTML5 Standard.

<!DOCTYPE > html  ট্যাগের আগে আপনাকে অবশ্যয় ব্যাবহার করতে হবে।  নিচে উধাহরণ স্বরূপ দেখানো হল।

<!DOCTYPE html>
<html>
   <head>
      <title> html doctype </title>
   </head>
   <body>
      <p>Some text inside a p tag </p>
   </body> 
</html>

উপরের মার্কআপে ভালো ভাবে লক্ষ করুন। সেখানে প্রথম অংশে <!DOCTYPE html> ব্যাবহার করা হয়েছে। এরপর
পর্যায়ক্রমে <html>,<head>,<title> tag ব্যাবহার করা আছে।

HTML 4.01 ( HTML5 এর আগের ভার্সন ) এ DOCTYPE বোঝাচ্ছিল document type definition (DTD), কারন  এটি ছিল SGML (Standard Generalized Markup Language)  এর উপর নির্ভরশীল । আর আসলে DTD বলে দিচ্ছিল ওয়েব ব্রাউজার কে মার্ক আপ ল্যাংগুয়েজের বৈশিষ্ট্য গুলো  যাতে ওয়েব ব্রাউজার ওযেব কন্টেন্ট গুলোর সাথে ভালোভাবে কাজ করতে পারে ।

কিন্তু HTML5 SGML নির্ভর না হওয়ার DTD  এর প্রয়োজন এখন হয়না ।

Note :

  • HTML এ সবার আগে <!DOCTYPE html> ব্যাবহার করুন।
  • <!DOCTYPE html> Case sensitive না , অর্থৎ আপনি চাইলে <!DOCTYPE html> কে <!doctype html> আকারেও লিখতে পারেন ।

You may also like...

1 Response

  1. sadikul islam says:

    good job

Leave a Reply

Your email address will not be published. Required fields are marked *

error: Content is protected !!