HOME | DD

Published: 2013-01-24 03:09:27 +0000 UTC; Views: 157297; Favourites: 3245; Downloads: 0
Redirect to original
Description
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. ) 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</b> ➜ Bold Text
<strong>Bold text</strong> ➜ Bold Text
<u>Underlined text</u> ➜ Underlined Text
<i>Italicized text</i> ➜ Italicized text
<em>Italicized text</em> ➜ Italicized text
<s>Striked text</s> ➜ Striked text
<strike>Striked text</strike> ➜ Striked text
Text sizes
The following codes can be used to make the text larger. These codes can 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.
<h1>Large (Header 1) Text</h1> ➜
Large (Header 1) Text
<h2>Large (Header 2) Text</h2> ➜
Large (Header 2) Text
<h3>Medium (Header 3) Text</h3> ➜
Medium (Header 3) Text
There are also a few options to make the text smaller. All change the text to the same size, but 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.
<small>Small text</small> ➜ Small text
<sup>Superscript text</sup> ➜ Superscript text
<sub>Subscript text</sub> ➜ Subscript text
If you want even smaller text, you can add next multiple tags inside one of another. For example:
<sub><sub><sub>This text is even smaller</sub></sub></sub> ➜ This text is even smaller
Text positions
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 case the basic code is the same, and you simply swap the word show in bold to achieve the designed alignment.
<div align="Option">Text to be aligned
The for 'option's are:
- left
- center
- right
For example:
Right aligned text
Center aligned text
Left aligned text
Notes:
- 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.
- 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.
Multiple formatting
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
<b><u>Bold and Underlined text</u></b> ➜ Bold and Underlined text
The two sets of formatting don't have to start at the same time. For example, you can have all the text in bold, and only the end text underlined.
<b>Bold and <u>Underlined text</u></b> ➜ Bold and Underlined text
When using multiple tags you have to look out for the order you place the closing tags in. Closing an outer tag, will also end any open tags which are nested inside of it. This may close the tag prematurely. For example, you can't have all of the text below underlined. By closing the bold tag, the underlined tage is also stopped.
<b><u>Sample</b> text</u> ➜ Sample text
To prevent this issue, you may need to re-order the tags. For example:
<u><b>Sample</b> text</u> ➜ Sample text
Further HTML
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: help.deviantart.com/104/
Inserting links
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: ➜
<a href="http://www.facebook.com">Text link should be attached to ➜ 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 href="http://synfull.deviantart.com">My profile ➜ My profile
Inserting images
There a a number of methods which can be used to insert images into comments, journals and other sections of dA. For information on using thumbcodes, the emote legend etc, please see this tutorial:
However, one of the most useful html codes allows you to display any image. This could be one that is on dA, or hosted elsewhere (e.g. photobucket). Note: This cannot be used to insert pictures into artist comments, but will work in journals and on your profile page.
<img src="DirectLinkToImage" />
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). For example:
<img src="http://i971.photobucket.com/albums/ae198/syns-stuff/Avatars/63.png" />
This code can’t actually be used within the artist comments or regular comments. However, you can see examples in this journal .
Displaying code
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. ) 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></u>b>Sample Text<<u></u>/b> ➜ <b>Sample Text</b>
:<b></b>devsynfull: ➜ :devsynfull:
:<b></b>iconsynfull: ➜ :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 : 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.
:devsynfull: ➜ :devsynfull:
Other Tutorials
Related content
Comments: 1258
rainbow000pegasus In reply to ??? [2017-08-24 16:09:02 +0000 UTC]
Hello! I'm sorry, but do you know how to shift a picture to one side and the other side has text on it? So like two columns where one is text and the other is one whole picture. Thanks.
👍: 0 ⏩: 1
Synfull In reply to rainbow000pegasus [2017-08-25 22:04:40 +0000 UTC]
Sounds like this is what you're looking for:
👍: 0 ⏩: 1
Ravenscreation In reply to Synfull [2017-08-25 22:59:14 +0000 UTC]
Yep
It is
Thanks so so much
👍: 0 ⏩: 0
Ravenscreation In reply to ??? [2017-08-21 19:19:37 +0000 UTC]
None of this works on anything.
Descriptions, comments, journals, ect.
It just wont work >: /
👍: 0 ⏩: 1
Synfull In reply to Ravenscreation [2017-08-21 21:27:27 +0000 UTC]
All works for me. Are you copying and pasting it? or writing it from scratch?
Some people have issues when copying the examples as it includes hidden formatting which is designed to break things
👍: 0 ⏩: 1
SeraTheAdventurer02 In reply to ??? [2017-08-11 22:21:23 +0000 UTC]
I wanna know how I can add cover photos to my stories
How do I do it?
👍: 0 ⏩: 1
Synfull In reply to SeraTheAdventurer02 [2017-08-12 07:34:12 +0000 UTC]
I'm not sure if you can do that
👍: 0 ⏩: 1
SeraTheAdventurer02 In reply to Synfull [2017-08-12 07:43:03 +0000 UTC]
What do you mean? I saw some stories where there was a picture at the top
👍: 0 ⏩: 1
Synfull In reply to SeraTheAdventurer02 [2017-08-13 06:58:20 +0000 UTC]
Can you show me an example?
👍: 0 ⏩: 1
SeraTheAdventurer02 In reply to Synfull [2017-08-13 08:10:33 +0000 UTC]
Yeah, Here
Dual Love Poems
👍: 0 ⏩: 1
Synfull In reply to SeraTheAdventurer02 [2017-08-14 22:37:27 +0000 UTC]
Can't say I've ever seen that before. But I'm guessing it's the 'Preview image'.
When uploading the deviation, select the edit button to the right and there's an option to upload an image:
👍: 0 ⏩: 1
SeraTheAdventurer02 In reply to Synfull [2017-08-15 07:27:42 +0000 UTC]
Thanks! I already got the hang of it, but thanks anyway!
👍: 0 ⏩: 0
Ksureme In reply to ??? [2017-08-01 18:56:37 +0000 UTC]
Question:
Is it possible to flip an image via html?
Not as in rotate, but as in mirroring.
👍: 0 ⏩: 1
jadefeatherss In reply to ??? [2017-07-18 04:40:43 +0000 UTC]
Hi !
I've been teaching myself to code for like a few days ( with prior knowledge in technology ) and I've got a question ,, how do you / is it possible to change the size of an image ? ( sorry if you've stated this or it's a really easy and basic thing . ) Thank you !!
( I'm trying to figure it out so I might find out how to on my own )
👍: 0 ⏩: 2
Synfull In reply to jadefeatherss [2017-08-14 22:38:03 +0000 UTC]
Since I'm a month late, I'm guessing you have worked this out by now?
👍: 0 ⏩: 1
jadefeatherss In reply to Synfull [2017-08-15 08:47:58 +0000 UTC]
oops yeah, I figured it out the next day !! thank you for replying though !
👍: 0 ⏩: 0
jadefeatherss In reply to jadefeatherss [2017-07-18 04:46:58 +0000 UTC]
aaa never mind , I figured out how to !!
( also thank you for making this btw , it clears up a few things / actually shows me why stuff works / doesn't work
👍: 0 ⏩: 0
DarkDash67 In reply to ??? [2017-06-10 22:34:42 +0000 UTC]
I can't put the text in the center I read the instructions but It's still not working
👍: 0 ⏩: 2
Synfull In reply to DarkDash67 [2017-06-29 21:15:14 +0000 UTC]
Have you got an example somewhere so I can see what might have gone wrong?
👍: 0 ⏩: 1
rqotd In reply to DarkDash67 [2017-06-18 01:19:11 +0000 UTC]
it should be:
< div align = " center " >
text here?
< / div >
just take out the spaces and you should be fine //but don't take out the space b/w div and align. XD
👍: 0 ⏩: 2
rqotd In reply to DarkDash67 [2017-06-18 01:22:11 +0000 UTC]
Hm... where are you planning to use this HTML?
👍: 0 ⏩: 1
DarkDash67 In reply to rqotd [2017-06-18 01:22:45 +0000 UTC]
It works on everything else BUT not on my Deviantart ID :/
👍: 0 ⏩: 1
rqotd In reply to DarkDash67 [2017-06-18 01:24:55 +0000 UTC]
Huh... it should be working on there. I've got it on mine right now...
Can I get a little image or text of your code?
👍: 0 ⏩: 1
DarkDash67 In reply to rqotd [2017-06-18 01:26:47 +0000 UTC]
The code that u gave me? or
the code that I originally out???
👍: 0 ⏩: 1
DarkDash67 In reply to rqotd [2017-06-18 01:36:54 +0000 UTC]
I use this < div align="center ">Testing< / div >
👍: 0 ⏩: 1
rqotd In reply to DarkDash67 [2017-06-18 01:44:05 +0000 UTC]
it was originally like this, right? without the spaces and stuff?
👍: 0 ⏩: 1
rqotd In reply to DarkDash67 [2017-06-18 01:49:48 +0000 UTC]
AGHHH i'm sorry i can't be of more help! ;w; I've never had any problem with the html before.
I'm sorry TTnTT
👍: 0 ⏩: 1
DarkDash67 In reply to rqotd [2017-06-18 01:50:45 +0000 UTC]
It's okie Do u wanna try and use my account and put in the code?
👍: 0 ⏩: 1
rqotd In reply to DarkDash67 [2017-06-18 01:53:26 +0000 UTC]
...If you're alright with it, I'd be happy to help you! I won't do anything but help with your centering! ^^
👍: 0 ⏩: 1
DarkDash67 In reply to rqotd [2017-06-18 01:57:05 +0000 UTC]
Ok thank you and I'll note u my password
thank you for helping me ^^
👍: 0 ⏩: 0
SehiaSwirl In reply to ??? [2017-05-30 18:15:52 +0000 UTC]
thanks I've been wanting to know this for a long timeX3
👍: 0 ⏩: 1
LavandereFox In reply to LavandereFox [2017-05-26 18:52:05 +0000 UTC]
let's try this again
this is a test
👍: 0 ⏩: 1
LavandereFox In reply to LavandereFox [2017-05-26 18:52:34 +0000 UTC]
niiiiiice
you just need to write it yourself and not copy-paste for anyone wondering
👍: 0 ⏩: 0
KeepYourGoodHeart In reply to ??? [2017-04-17 22:42:24 +0000 UTC]
Thank you so much for this
👍: 0 ⏩: 1
<= Prev | | Next =>