Conditional Formatting in HTML Tags

前端 未结 7 1307
挽巷
挽巷 2020-12-31 12:23

Is there any option for using IF-ELSE conditioning in HTML tags

   do something     
      do something            


        
7条回答
  •  悲哀的现实
    2020-12-31 12:52

    Not to be pedantic, but HTML is a markup language, and isn't useful for conditional logic.

    That being said, it sounds like what you're looking for is a bit of javascript. If you could add a bit more detail to your question, I could elaborate on how you could use javascript to do tasks with conditional logic.

提交回复
热议问题