且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

HTML IF语句

更新时间:2022-10-19 13:21:41

不在HTML中。考虑使用 JavaScript 代替。


I just wanna know how to do an if-statement in simple HTML. Like the [if IE6] thingy

I'd like to do something like this

[IF 5>6]

How's the syntax? I can't seem to find anything but [If!IE6] and things like that, is that even possible?

Thanks a lot

Edit: I want to compare just scalar numbers, cause I have a dynamically created HTML. For example [If 4 == 6]. I DON'T WANT TO CHECK IE VERSIONS.

Not in HTML. Consider using JavaScript instead.