0% found this document useful (0 votes)
39 views

Experiment No. 1: Alignment

The document describes 13 experiments conducted using WML (Wireless Markup Language) to demonstrate various tags and features. The experiments cover text formatting, images, tables, forms, timers, and radio buttons. The goal is to learn basic WML features for designing mobile webpages and applications.

Uploaded by

vishant61089
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
39 views

Experiment No. 1: Alignment

The document describes 13 experiments conducted using WML (Wireless Markup Language) to demonstrate various tags and features. The experiments cover text formatting, images, tables, forms, timers, and radio buttons. The goal is to learn basic WML features for designing mobile webpages and applications.

Uploaded by

vishant61089
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 26

EXPERIMENT NO.

1
AIM: Program to print the text in a card and show left, right and center alignment.
<?xml version="1.0"?> <!-- created by WAPtor (http://www.waptop.net/) --> <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml"> <wml> <card id="MainCard" title="This is a first card"> <big> <p align="center"> Parveen Parmar </p> <p align="left"> Roll No : 0901482708 </p> <p align="right"> Group: CSE-2 </big> </p> </card> </wml>

OUTPUT

EXPERIMENT NO. 2
AIM: Program to use <br> tag in the text.

<?xml version="1.0"?> <!-- created by WAPtor (http://www.waptop.net/) --> <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml"> <wml> <card id="MainCard" title="To show br tag"> <big><p align="left"> Parveen Parmar <p align="center"> <br> <br> 0901482708 </br> </br></p> <p align="right"> <br> <br> CSE-2 </br> </br></p></big> </card> </wml>

OUTPUT

EXPERIMENT NO. 3
AIM: Program to print the text in bold using <b> and </b> tags.

<b><big><?xml version="1.0"?> <!-- created by WAPtor (http://www.waptop.net/) --> <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml"> <wml> <card id="MainCard" title="To show bold tag use."> <big> <p align="left"> <b> This line is Bold</b> <p align="center"> This line is not Bold </p> </big> </card> </wml>

OUTPUT

EXPERIMENT NO. 4
AIM: Program to underline the text using <u> and </u> tags.
<?xml version="1.0"?>

<!-- created by WAPtor (http://www.waptop.net/) --> <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml"> <wml> <card id="MainCard" title="Use of Underline Tag."> <big><p align="left"> <u>This Line is Underlined</u>. <p align="center"> This Line is not Underlined </p> <p align="right"> <u>Parveen Parmar</u> </p></big> </card> </wml>

OUTPUT

EXPERIMENT NO. 5
AIM: Program to print the text in italics using <i> and </i> tags.
<?xml version="1.0"?>

<!-- created by WAPtor (http://www.waptop.net/) --> <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml"> <wml> <card id="MainCard" title="To show italic tag use."> <big><p align="left"> <i>Hello my name is Parveen Parmar and this is how we use italic tag.</i> <p align="center"> Above line is in Italic. This line is not in italic </p> <p align="right"> <i>This is again in italics</i> </p></big> </card> </wml>

OUTPUT

EXPERIMENT NO. 6
AIM: Program to set an image as wallpaper.
<?xml version="1.0"?>

<!-- created by WAPtor (http://www.waptop.net/) --> <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml"> <wml> <card id="MainCard" title="To set wallpaper as background."> <body background="E:\apple2.jpg" > <big><br/><br/><br/><br/><br/><b><p align="center"> RiP Steve Jobs </p></b></big> </body> </card> </wml>

OUTPUT

EXPERIMENT NO. 7
AIM: Program to use alt tag in case image address is invalid.
<?xml version="1.0"?>

<!-- created by WAPtor (http://www.waptop.net/) --> <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml"> <wml> <card id="MainCard" title="To show use of alt attribute in img tag"> <big> <img height="200%" width="200%" src="E:\my fav\flower.jpg" alt="Image not available or Image URL invalid"/> <br> This imaage is present. <p> <img height='100' width='100'src="C:\Users\tarungv\Documents\waptor\Sky.jpg" alt="Image not available or Image URL invalid"/> <p align="center"> The second image is either not present or URL invalid </p></big> </card> </wml>

OUTPUT

EXPERIMENT NO. 8
AIM: Program to connect two cards.

<?xml version="1.0"?> <!-- created by WAPtor (http://www.waptop.net/) --> <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml"> <wml> <card id="MainCard" title="To show use of alt attribute in img tag"> <big> <img height="200%" width="200%" src="e:\my fav\flower2.jpg" alt="Image not available or Image URL invalid"/> <br> This image is present. <p> <img height='100' width='100'src="C:\Users\tarungv\Documents\waptor\Sky.jpg" alt="Image not available or Image URL invalid"/> <p align="center"> The second image is either not present or URL invalid </p> Do you want to see second image?? <br/><p align="center"><b><u> <anchor> <go href="card.wml"/> Click Here!! </anchor> </u></b></p></big> </card> </wml> Connected Card Code: <?xml version="1.0"?> <!-- created by WAPtor (http://www.waptop.net/) --> <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml"> <wml> <!-- THIS IS THE FIRST CARD IN THE DECK --> <card id="MainCard" title="This is a first card"> <img height="250%" width="250%" src="e:\my fav\flower.jpg" alt="Image not available or Image URL invalid"/> <p align="center"> <b> You are on a linked Card.</b></card></wml>

OUTPUT
Card 1:

Connected Card:

EXPERIMENT NO. 9
AIM: Program to create a table.

<?xml version="1.0"?> <!-- created by WAPtor (http://www.waptop.net/) --> <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml"> <wml> <card id="MainCard" title="To create table in wml."> <body bgcolor=white> <br/><br/><br/><br/><br/><br/><p align="left"><h2>CSE Students List</h2><p><big> <table border="5"> <tr> <td>Name</td><td>Roll No.</td><td>Branch</td> <td>Batch</td> </tr> <tr> <td>Parveen Parmar</td> <td>090</td> <td>CSE</td> <td>C-2</td> </tr> </table> </p></big> </card> </wml>

OUTPUT

EXPERIMENT NO. 10
AIM: Program to create a form .
<?xml version="1.0"?>

<!-- created by WAPtor (http://www.waptop.net/) --> <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml"> <wml> <!-- THIS IS THE FIRST CARD IN THE DECK --> <card id="MainCard" title="This is a first card"> <body bgcolor="white"> <img src="C:\Users\Pearl\Downloads\images.jpg" width="100%" height="100%"/> <br/><br/> <h3>Sign Up<h3>It's free and always will be<h3><br> <table border="5"> <h3><tr> <td> First Name: </td> <td> <input type="text" name="fname"/> </td> </tr> <tr> <td> Last Name: </td> <td> <input type="text" name="lname"/> </td> </tr> <tr> <td> Your Email: </td> <td> <input type="text" name="mail"/> </td> </tr> <tr> <td> I am: </td> <td> <input type="radio" name="gender"/>Male </td> <td> <input type="radio" name="gender"/>Female</td> </tr> </table> <br> <p align="center"> <input type="submit" /> <input type="reset" /> </card> </wml>

OUTPUT

EXPERIMENT NO. 11
AIM: Program to create a form with Password.

<?xml version="1.0"?> <!-- created by WAPtor (http://www.waptop.net/) --> <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml"> <wml> <!-- THIS IS THE FIRST CARD IN THE DECK --> <card id="MainCard" title="This is a first card"> <body bgcolor="white"> <img src="C:\Users\Pearl\Downloads\images.jpg" width="100%" height="100%"/> <br/><br/> <h3>Sign Up<h3>It's free and always will be<h3><br> <table border="5"> <tr> <td> First Name: </td> <td> <input type="text" name="fname"/> </td> </tr> <tr> <td> Last Name: </td> <td> <input type="text" name="lname"/> </td> </tr> <tr> <td> Your Email: </td> <td> <input type="text" name="mail"/> </td> </tr> <tr> <td> I am: </td> <td> <input type="radio" name="gender"/>Male </td> <td> <input type="radio" name="gender"/>Female</td> </tr> <tr> <td> New Password: </td> <td> <input type="password" name="pass"/></tr> </table> <br> <p align="center"> <input type="submit" value="Sign Up" /> </card> </wml>

OUTPUT

EXPERIMENT NO. 12
AIM: Program to create a timer.

<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml"> <wml> <card ontimer="card1.wml"> <timer value="20"/> <p>This Program to show timer. This will link to card1 in given time!! </p> </card> </wml>

OUTPUT

EXPERIMENT NO. 13
AIM: Program to create Radio Button and show Selected Button.

<?xml version="1.0"?> <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml"> <wml> <card id="card1" title="School"> <do type="accept" label="Answer"> <go href="#card2"/> </do> <p> <select name="name"> <option value="fname">First Name</option> <option value="mname">Middle Name</option> <option value="lname">Last name</option> </select> </p> </card> <card id="card2" title="Answer"> <p> You selected: $(name) </p></card> </wml>

OUTPUT

You might also like