Go to
Welcome.  This is a place to get user-to-user support, learn more, and share ideas.  If you can't find your answers here, feel free to ask by creating a new topic or visit the support ticket system at :)  Have fun here!

Main Menu

How To Use ALT Tags In BBCode

Started by Dynaweb, April 09, 2015, 12:14:43 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.


One criticism of BBCode is that it does not support alt tags for images (yes, properly the alt attribute, I know).  The alt is notoriously kind for SEO purposes and also for impaired visitors.

Well, I was toying around in the forum and discovered a way to make it work.  A bit of a little hack really.

Here is the format:

[img alt=here-is-the-alt][/img]

And here it is parsed below...


If you inspect the code of the page you will see the alt attribute is present.  Do not add quotes and use dashes or underscores (although you MIGHT be able to get away with spaces in some cases).  I can confirm this works on SMF BBcode, but have not tested elsewhere.