+ 1

Hello, Somebody know to use "if ... else" in HTML 5?

HTML

11th Dec 2017, 6:58 PM
NĂ­colas Nascimento
NĂ­colas Nascimento - avatar
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.
11th Dec 2017, 7:12 PM
Harshita Jain
Harshita Jain - avatar
+ 14
there is no "if...else" in html5. html5 is a web designing language, it doesn't require conditions
11th Dec 2017, 7:13 PM
inactive instagrammer
inactive instagrammer - avatar
+ 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.
12th Dec 2017, 12:02 AM
Rick Zalman
+ 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
12th Dec 2017, 6:04 AM
Lindsay Presley
Lindsay Presley - avatar
+ 3
Javascript for logic ... HTML for markup
11th Dec 2017, 7:43 PM
Kirk Schafer
Kirk Schafer - avatar
+ 2
There is no if else in html
11th Dec 2017, 7:56 PM
The C0der
The C0der - avatar
+ 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?
11th Dec 2017, 8:02 PM
NĂ­colas Nascimento
NĂ­colas Nascimento - avatar