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 base ট্যাগ ও base ট্যাগের ব্যবহার

সাধারণত একটি ডকুমেন্টের সমস্ত ইউআরএল বা ঠিকানা গুলির জন্য এ্কটি ডিফল্ট URL ও এর টার্গেট ঠিক করা হয়ে থাকে base ট্যাগ দিয়ে  । base ট্যাগ ব্যবহার করা হয় head ট্যাগের মধ্যে। যদি base ট্যাগটি উপস্থিত থাকে, তাহলে এটিতে অবশ্যই একটি href অ্যাট্রিবিউট কিংবা একটি টার্গেট অ্যাট্রিবিউট অথবা উভয়ই থাকতে হবে। তো নিচের অংশে এর উদাহরন দেখে নেই base ট্যাগ ও base ট্যাগের ব্যবহার।


base ট্যাগ এর উদাহরন

<!DOCTYPE html>
<html>
 <head>
   <title>Base Tag</title>
   <base href="https://kivabe.com" target="_blank">
 </head>
 <body>
   <h1> Use of HTML Base Tag  </h1>
   <p>
     we will add some link in this page and that will get default
     link and default target. Please have a look on the below link.
   </p>
   <a href="code/try/">Live Code Editor</a> - <a href="about-us/">About Us</a>
   <p>
     Take your mouse upon the link above and see the url at the
     bottom left corner of your browser !! 
   </p>
   <p>
     And now for the image, we did not add https://kivabe.com at the a 
     beginning in src attribute, but it get from base tag. Now just 
     change the base url and you will that the image is not loading 
   </p>
   <img src="wp-content/uploads/2014/09/kivabe_com.jpg" alt="Image using base tag" />
 </body>
</html>

 Try it now

base ট্যাগ এর ব্যবহার

  • base tag একটি ওয়েব পেজের base url কিংবা target নির্ধানর করে দেয় ।  উপরের কোডে আমরা base url এ https://kivabe.com দিয়েছি আর নিচে a tag গুলোতে ব্যবহার করা হয়তি। তার পরও লিংক গুলোতে https://kivabe.com এড হয়ে যাবে ।
  • base tag সর্বোচ্চ এক বার ব্যবহার করা যাবে একটি ওয়েব পেজে এবং এটি অবশ্যই head tag এর ভিতরে হতে হবে ।
  • যদি ওয়েব পেজে বেইজ ট্যাগ থাকে তবে তাতে অবশ্যই href কিংবা target কিংবা দুটোই থাকতে হবে  attribute আকারে ।

 

You may also like...

Leave a Reply

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

error: Content is protected !!