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

Java program to implement file input stream class to read binary data from image file.

Java program to find length of given string and convert it in to upper or lower case.

Java program to read a text file and displays it's contents on screen.

Java program to check marks out of Bound exception.

Java program to calculate area and perimeter of circle using interfaces.

Java program to check greatest among three numbers where input numbers are given by user.

Java program to merge two text files in to third file.

Java Applet program to draw rectangle and right-aligned oval of orange color.

Concatenating and Buffering Files in Java जावा में फ़ाइलों को जोड़ना और बफर करना