+ 1
Hello, Somebody know to use "if ... else" in HTML 5?
HTML
7 Answers
- 3
Yes, I know this.
if....else is a conditional statement.
if(condition){
statement 1;
statement 2;
}
else{
statement 3;
statement 4;
}
'if' is followed by condition. If the given condition satisfied then the statements under 'if' is executed.
Otherwise if the given condittion does not satisfy then the statements written under 'else' is executed.
+ 14
there is no "if...else" in html5. html5 is a web designing language, it doesn't require conditions
+ 4
HTML only tells the web browser what to
display on the web-browser. That is, it only
describes the data to the web-browser, then
the web-browser displays the data. It is
not a programming language, it doesn't
have programming logic . That's where
JS comes into the picture.
+ 4
yeah. HTML isn't a coding language, it's a mark up language which is different. html just names your web page look different like adds a little bit more character to your page, so it doesn't look so blah etc. there's no coding in html like Java with the if else statements, conditions etc
+ 3
Javascript for logic ... HTML for markup
+ 2
There is no if else in html
+ 2
I'am using the Sublime Text 3, in this program is posible to use JS and HTML 5 together, but I don't now to use. Somebody know?