I'm currently working on a piece of interactive fiction, and part of it requires the reader to look at the HTML document itself. I want to make it as readable as possible, especially for people who aren't used to looking at HTML documents. I already am using very specific class names to style certain elements (i.e. <span class="game_mechanic_A">
) but there are parts of the text that I want to "highlight"/draw attention to in a more streamlined manner.
I was thinking I could do This text is <foo>important</foo> for the story
instead of This text is <span class="foo">important</span> for the story
. In my own testing it seems to work fine, but I am absolutely not an expert on HTML so I don't know if there's something I'm missing. I have noticed that in the inspect pane/panel it formats it like so:
This text is
<foo>important</foo>
for the story
...which feels like a nice bonus, since it brings even more attention to what's in <foo>
. Would I be making a huge mistake if I do this? I don't actually want the tag to do anything, just be "formatting" in the HTML document.