The HTML code that underpins all the content in our Library Guides can really affect their accessibility. We need to be careful about what we add when we're adding content, to make sure we don't introduce problematic code that will make things difficult for our users.
How can you tell?
If you open the HTML window on one of the boxes in your guide, it can be tricky to tell which code is fine, and which code is a problem. Some of the information below will help you identify specific HTML elements that might cause accessibility problems.
Also, most of our code should be reasonably simple and straightforward. If the code in your HTML window is complex to the point that you can't find or read the page content (ie the parts you wrote), this could be an indicator that something is wrong.
If you don't feel confident fixing it yourself, please contact the LibGuides team.
HTML lingo
A single piece of HTML code is called an element. An element consists of two tags: a start tag like this <tagname>,and an end or close tag like this </tagname> The start tag is placed before the content you intend to change, and the end tag after.
For example, to make bold content in a paragraph, you place start and end tags around the text you'd like to bold. The bold element is <strong> so it looks like this:
The text I'd like to <strong>bold</strong> in this sentence has tags around it.
You need to remember to close the tags, or the rest of your content will be affected by whichever style you're applying.