it did help to understand what the "matches" means exactly. The line of code you suggested had issues with the "@s", I'm not sure why but it was not able to target the spiders. However, I was able to make some progress with the advice you gave
/execute as @e[type=spider] if score @s[type=spider] webtimer matches 5 run setblock ~ ~ ~ minecraft:cobweb
This line of code here is able to place at the players location when the webtimer is 5. Now I need to figure how to get it to target the spiders and place webs at their location
Thanks for all of your help