4 ms·
Am I missing something or did everyone forget <s> is a thing in html?
by vukgr 6y ago
Am I missing something or did everyone forget <s> is a thing in html?
- franciscop 6y agoNope, could be made with <strike> as well, but swapping element tags takes more characters than toggling a class. In the case of UmbrellaJS I made a .wrap() method, but since there is no .unwrap() again it takes more than toggling classes.
- vukgr 6y agoAh, fair. The challenge itself didn't mention toggling (just crossing tasks off), so you could probably get away with it; But that's just the golfer in me talking I guess.
- rukshn 6y agoI also thought of using the <s> tag, but I didn’t use it because it is considered to be an outdated tag But yes that is totally possible