Monthly Archives: October 2015

Looping Statements in Java Script

Control Statements(continuation) Looping statements:-For and while loops are called Looping Statements.These are also called iterative statements. Syntax for For loop:-for loop executes until the condition is true. for(initialization;condition;increment/decrement) { Logic; document.write(“…..”); } Syntax for while loop:-while loop executes as long … Continue reading

Posted in Uncategorized | Leave a comment

Control statements and loops in Java script

Java script supports control statements.They are: Conditional Statements(If,if …else,if…else…if,switch) Loop statements/Iterations(For loop,While loop) Syntax for If statement: if(condition) { document.write(“statement”); } Syntax for if…else statement: if(condition) { document.write(“statement”); } else { document.write(“statement”); } Syntax for else if statement: if(condition) { … Continue reading

Posted in Uncategorized | Leave a comment

Variables and Data types in Java Script

Variable: Variable is nothing which can hold a value.Variables in Java Script can be of type: 1)Number->It can be a integer or real numbers both are just numbers.–>12,12.345 2)String–>”abc” 3)boolean–>true or false 4)Null–>null. Conditions to specify variable: –>Variable name starts … Continue reading

Posted in Uncategorized | Leave a comment

Hello world programme and comments in Java Script

Requirements to run the programme: –>Notepad++/Notepad –>any browser same as HTML. Embedding Java Script in HTML:- –>Java Script is case sensitive. –>Use tag. –>To put the Java Script in HTML use as below –>To print any statement we will use … Continue reading

Posted in Uncategorized | Leave a comment

Introduction to Java Script

What is Java Script? –>Java Script is a scripting language. –>Java script is used put dynamic content in HTML for client side validation. –>HTML is just used to design the webpage.In the webpage there is no interactivity of client. For … Continue reading

Posted in Uncategorized | Leave a comment

Forms in HTML

Form is an area that contain form elements. Form elements is allow the user to enter the information. Form elements text,text area,check box,radio button,file selector,password,hidden,button,submit.reset. <input type=”text/checkbox/radio/file/password/hidden/button/submit/reset”> <textarea> tag Programme to explain above form fields Output:

Posted in Uncategorized | Leave a comment

Links in HTML

–>Hyperlink access sources of Internet. –>we will use anchor tag<a> 1)Connecting to website 2)sending mail(use “mailto:” toput the subject “subject=” toadd Cc and bcc (&Cc,&bcc)) 3)connecting to other webpage 4)using target attribute. above 4 is explained in the following programme … Continue reading

Posted in Uncategorized | Leave a comment

Lists in HTML

There are four types of lists <li> present in HTML.They are:- 1)Ordered lists<ol> 2)Un ordered lists<ul> 3)Directory list<dir> 4)Glossary list <dl> Example to know about LISTS Output:

Posted in Uncategorized | Leave a comment

Nested tables in HTML

–>A cell contains another table. output:

Posted in Uncategorized | Leave a comment

Controlling borders in HTML

->we can control the “Borders with in the table” by using the attribute called “Rules” ->we can control the “Outside borders of the table”by using the attribute called “Frame” ->Use both attributes with the conjunction of “border” attribute. –><table border=”1″ … Continue reading

Posted in Uncategorized | Leave a comment