Aligning Applet Display using align Attribute एप्लेट डिस्प्ले को align एट्रिब्यूट से संरेखित करना

The align attribute sets the alignment of the applet inside the HTML page.

align एट्रिब्यूट HTML पेज में एप्लेट को संरेखित करने का कार्य करता है।

Note: This attribute is not supported in HTML5.
नोट: यह एट्रिब्यूट HTML5 में समर्थित नहीं है।

✅ Syntax: प्रारूप:

<applet align="left | right | center | justify">

📌 Attribute Values: एट्रिब्यूट वैल्यू:

  • left: Aligns the applet to the left.
    left: एप्लेट को बाएँ संरेखित करता है।

  • right: Aligns the applet to the right.
    right: एप्लेट को दाएँ संरेखित करता है।

  • center: Centers the applet.
    center: एप्लेट को केंद्र में संरेखित करता है।

  • justify: Aligns the applet in both directions.
    justify: एप्लेट को दोनों दिशाओं में संरेखित करता है।


🧪 Example - Aligning Applet

<!DOCTYPE html>
<html>
<head><title>Applet Alignment</title></head>
<body>
<applet code="HelloStudents.class" width="200" height="100" align="right"></applet>

<h1>HTML applet align attribute</h1>
<h2>Hello Students</h2>
<p>It is a Java learning portal for you.</p>
</body>
</html>

Comments

Popular posts from this blog

What is a Web Browser? वेब ब्राउज़र क्या है?

Java's Support System जावा का सहयोगी तंत्र

The Internet and Java इंटरनेट और जावा का सम्बन्ध