View Full Version : if statements

Dec 25th, 2009, 09:35 PM

im working on a new website. i know somewhat of java which they taught me in high school. im very interested in learning about if statements in html. is there any code i can use which will randomly pick a statement to display out of a list i create. im talking more specifically about arrays and arraylists and printing out these statements. is there any way i could do that in html?

Dec 26th, 2009, 05:44 AM
there is no "if statements" in html.

you can have them in javascript or in php, jsp, asp or any other programing language.


Dec 28th, 2009, 01:42 AM
HTML is just a markup language...not a programming language.

so control statements, operators, variables in html... only attributes and values necessary for formatting.