Throughout my tutorials and news articles on deviantART I use a variety of methods to help format my text and insert images. It’s becoming quite common that people ask me how I have achieved one or more of these effects, so I thought that I would write a quick guide as it allows me to quickly and clearly pass on the information each time.
This tutorial covers basic HTML tags available on deviantART, as well as a number of site specific features. It is mainly designed for those unfamiliar with HTML or those new to the site, as none of it is particularly complicated once you find the necessary code and understand how to use it.
Basic text formatting
The majority of the text formatting on dA is done through HTML tags. A ‘tag’ has angular brackets with some text inside which corresponds with a certain function. Each command has an ‘opening tag’ (e.g <
b>) which says when the formatting should start, and a closing tag (e.g. <
/b>) which states when it should finish.
In some cases there may be multiple tags which do the same formatting. You can find these instances grouped together.
/b> -> Bold Text
/strong> -> Bold Text
/u> -> Underlined Text
/i> -> Italicized text
/em> -> Italicized text
h1>Large (Header 1) Text<
Large (Header 1) Text
h2>Large (Header 2) Text<
Large (Header 2) Text
h3>Medium (Header 3) Text<
Medium (Header 3) Text
h2> etc codes only work in certain areas of dA. For example, they cannot be used in normal comments. They can however be used in journals and the artist comments sections of deviations.
/small> -> Small text
/sup> -> Superscript text
/sub> -> Subscript text
The options for small text differ in their positioning within a line of text. Superscript will place it at the top the line of text, where as Subscript will align it with the bottom. Small will keep it in the normal position and simply shrink the text size.
HTML also allows you to alter the position of text making it line up with the left, right or centre of the page. In each code the basic code is the same, and you simply swap the word show in bold to achieve the designed alignment.
">Text to be aligned<
The for 'option's are:
Left aligned - (default option) Text aligns with the left of the text area
div align="left">Left aligned text<
Center aligned - Text aligns with the centre of the text area
div align="center">Center aligned text<
Right aligned - Text aligns with the right of the text area
div align="right">Right aligned text<
1) This HTML only works in limited places on dA such as journals and custom boxes. It doesn't work in normal comments, the dAmn chatrooms etc.
2) The option to centralise text uses the American spelling of 'Center'. For those that use the British spelling, this is a common mistakes which stops the code working.
It is possible to apply multiple formats to a single piece of text. This is achieved by nesting the tags inside each other. For example
u>Bold and Underlined text<
/b> -> Bold and Underlined text
sub>Sup and Sub tags can be nested for even smaller text<
/sub> -> Sup and Sub tags can be nested for even smaller text
However, when doing so you have to look out for the order you place the closing tags in. If Tag 2 is nested inside Tag 1, closing Tag 1 before Tag 2 (e.g.<t1><t2>Text</t1></t2>) will also result in Tag 2 being closed. For example:
/u> Text -> Sample
The underlined text ends at the same time as the bold, as closing the outer bold tags will also close the inner underlined tags. If you wanted all text to be underlined you would either need to swap the bold and underlined tags over to the order <t2><t1>Sample</t1> Text</t2> or place the remaining text in its own set of underlining tags e.g. <t1><t2>Sample </t2></t1> <t2>Text></t2>.
deviantART supports a number of other HTML tags which can be used to help format text within deviations, comments and journals. However, as these are generally less used I have left them out of this tutorial.
If you wish to find out more then you can find an official FAQ on the subject here
Using a mixture of HTML and deviantART codes it is possible to link to web pages and dA profiles using the following methods. In all cases, the bold text should be replaced with the appropriate link or text you wish to insert.
devsynfull: -> `Synfull
iconsynfull: -> (Shows the user’s icon, but also links to their profile)
">Text link should be attached to<
/a> -> Text link should be attached to
This method can be used to link to a dA profiles, but should only really be used if you want custom text to appear instead of the deviant’s username. If just the username is required then you should use the :
devusername: version shown above.
/a> -> My profile
The majority of methods including The Emote Legend, Thumb Codes and Plz Accounts are explained in the tutorial below. Whilst it focuses mainly on emotes, the latter 2 methods can be applied to normal images as well.
In addition, if you wish to link to an image off dA, or display dA images at in a large size, then you can use the following code:
The ’DirectLinkToImage’ part should be replaced with the URL (web page address) of the image. However, you need to use the direct link
to the image. The direct links will lead to a web page where the image is shown on a plain background. These links can be acquired by right clicking on the image and selecting 'copy image URL/Location/Address
'. (Dependant on web browser).
Unfortunately the end result of this piece of code cannot be shown here as the code can’t be used in the artist comments or regular comments. However, you can see examples in this journal
From time to time it is useful to display the actual code that you are typing and prevent deviantART from formatting. For example, each time I have explained how a code works above I have given a sample piece of code which normally would produce specified effects. This is much better than adding in spaces at it allows people to see exactly how something should look.
To stop a piece of code from formatting, simply place a complete set of HTML tags (e.g. <
/b>) somewhere inside the formatting. From a coding point of view, it breaks the code/tags up so dA does not register that one has actually been used. For example:
/u>/b> -> <
/b>devsynfull: -> :
/b>iconsynfull: -> :
Alternatively, in the cases where a colon is used (i.e. :dev: and :icon: links) you can replace one of the colons with the ASCII code for a colon &
#58; When posted in a comment or journal it will appear as a colon, but won't cause the dev or icon links to be created.
#58;devsynfull: -> `Synfull