WDW LAB File Format
WDW LAB File Format
(ag,
S$ Use document.vrite command 10 print the name of book wing
xmldoc.getElementsByTagName("NAME" fi}.childNodes[0] nodeValue command.
© scanned with OKEN Scanner9. Use document.write command to print the name of author _ using
xmldoe. getElementsByTagName("AUTHOR" [i] childNodes{1].nodeValue
command.
10. Use document.write command to print the name of Publisher using,
xmldoc.getElementsByTagName("PUBLISHER")[i].childNodes[ |].nodeValue
command,
11,Use document.write command = to—print =the ~— Price using
xmldoe.getElementsByTagName("PRICE" [i] childNodes{ 1].nodeValue command
12. Use document.write command!'to Add button “Add to cart”.
13. Prepare abook.xml'file that contain tags
3. Add four table tow withi
tag with book name,p:
quatityand amount.
5, In second fow , use data tag to.add name'of Book.price , quantity and amount.
6. The same is repeated for third and forth row.
In the same way ecechecklist. HTML ceechecklist. HTML and civilchecklis HTML is
prepared
© scanned with OKEN ScannerOUTPUT:
‘CARTPAGE: The cart page contains the details about the books which are added to the cart. The cart page should
ook ike this:
Logo ‘Web Site Name
Home Login Registration Catalogs | Cat
CSE | Bockname Pace ‘Quantity “Amour
ce | Java 955 2 $7
HEE | XML bible $05 1 sos
Civ | Totalamount —-$1305
Post Experiment Questions:
1. Explain the ATTRIBUTES of table in HTML?
2. Diffirence between HTML. and XML?
© scanned with OKEN ScannerEXPERIMENT NO.-05
Aim: Create a registration form" with the following fields
1)Name (Text field)
2)Password (password field)
3) E-mailid(text field)
4) Phone Number(text field)
5) Sex(radio button)
6) Date of birth(3 select boxes)
7) Languages known(checkboxes“English, Telugu, Hindiy’Tamil)
8) Address(text area
Descriptio
tag
Name:
Email:
Password:
Phone Number: i
Gender, Male: © Female: © Other: O
language Select language ©
1. Explain the components of from?
2, Diffrence between textarea and text?
© scanned with OKEN ScannerEXPERIMENT NO.-06
Aim: Write JavaScript to validate the following fields of the above registration page.
1, Name (Name should contains alphabets and the length should not be less than 6
characters),
2. Pa
Description:
JavaScript is a simple scripting language invénted spécifically-for use.in web browsers to
word (Password should not be less than 6 characters length),
make websitesmore dJnamic. On its own? HTML:is capable of outputting more-or-less static
pages. Oneé you load them, up your yiew'doesn't change much until yourlick a link to go to a
new page. Adding JayaScriptt0 your code allows yottto change how the document looks
completely, from changing text, to” changing colors, to changing the Options available in a
drop-down list. JavaScript is a client-side language.
Pre Experiment Questions:
1. Diffrenee betweeri client side and server side programming.
2, Write the main features of Java script.
INPUT & OUTPUT:
INPUT:
Input form that contaiit'name and abtopn of the form.