I want to attach some kind of a keyword/tag to a line of code and reference that keyword throughout my HTML file instead of having to re-write the entire line of code each time.
For example, attach the tag TestPic1234
to the code of <img src="img_chania.jpg" alt="Flowers in Chania">
so that throughout my HTML file, TestPic1234
automatically means <img src="img_chania.jpg" alt="Flowers in Chania">
.
This is all mostly so I can avoid unnecessary clutter and to reduce total filesize (especially when working with Base64 images).
I've looked online and the only thing that came close to what I'm looking for was the id
/ class
tags but that still wasn't what I'm looking for (or maybe I misused them but I doubt it)