css, The triangle🔺 is probably the most popular CSS shape and I still see old and obsolete methods to create it.
⚠️ STOP DOING THIS ⚠️
Here is a collection of CSS-only triangles made with modern CSS:
👉 https://css-generators.com/triangle-shapes/
✅ Only one element
✅ Optimized code with no magic numbers
✅ Border-only & rounded corners variationsShowing the triangle shapes collection from the provided links