Does html contian condition 开发者_运维百科statements like:::: 1.if else 2.while 3.for
No, HTML is a declarative markup language, not an imperative programming language.
Just a few VERY basic ones - especially for checking the browser:
http://en.wikipedia.org/wiki/Conditional_comment
I think you might need to look at JavaScript in order to do that. HTML is not a programming language. If it does, I wouldn't recommend neither.
精彩评论