HOME | DD

Published: 2013-01-24 03:09:27 +0000 UTC; Views: 157294; 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
4NGRY-D0GZ In reply to ??? [2017-12-26 18:14:04 +0000 UTC]
hey! is there a code for moving an image to the center of a custom box? and where should i place the code
👍: 0 ⏩: 2
Synfull In reply to 4NGRY-D0GZ [2018-01-13 12:36:58 +0000 UTC]
Hi. Sorry for the late reply. Have you worked this out or do you still need help?
👍: 0 ⏩: 1
4NGRY-D0GZ In reply to Synfull [2018-01-13 12:41:37 +0000 UTC]
No i figured it out. But thanks for the reply!
👍: 0 ⏩: 0
StarsIsHere In reply to 4NGRY-D0GZ [2018-01-05 15:26:04 +0000 UTC]
Here is the code, <div align="center"><img src="insertimagehere" /> and where to place the code is where ever you want in the text box.
👍: 0 ⏩: 0
Synfull In reply to partybugcreations [2017-12-22 00:06:42 +0000 UTC]
all work for me. Are you copying and pasting or writing the code yourself?
👍: 0 ⏩: 1
partybugcreations In reply to Synfull [2017-12-22 01:05:18 +0000 UTC]
copying and pasting, idk why it's not working all i want to do is make the text small, works on my page coding but not on my work strange
👍: 0 ⏩: 1
Synfull In reply to partybugcreations [2017-12-22 21:08:48 +0000 UTC]
What do you mean 'on my work'?
👍: 0 ⏩: 1
partybugcreations In reply to Synfull [2017-12-22 22:19:26 +0000 UTC]
Like when you post art, the info you put under it. Code normally works there but for some reason it wasn't anymore.
I've always used your coding <3
👍: 0 ⏩: 1
Synfull In reply to partybugcreations [2017-12-24 13:01:47 +0000 UTC]
If you are copying and pasting the examples, they include hidden formatting which breaks the code. Have you tried writing the code from scratch?
👍: 0 ⏩: 0
Dira234 In reply to ??? [2017-12-07 17:51:24 +0000 UTC]
This doesn't work, please help!:dira234.deviantart.com/art/Sai… " />
👍: 0 ⏩: 1
Synfull In reply to Dira234 [2017-12-10 11:55:28 +0000 UTC]
Somehow the link has got a bit messed up. Replace the bit between the quote marks with:
https://img00.deviantart.net/063b/i/2017/341/7/1/saitama_w_i_p_2_by_dira234-dbvqnen.png
👍: 0 ⏩: 1
WilllBe In reply to ??? [2017-11-25 15:00:49 +0000 UTC]
Is it possible to write the code in a way that makes the inserted image larger? The page doll on my profile has pretty thin lines, so as it is pretty small when inserted the lines are barely visible :c
👍: 0 ⏩: 2
Synfull In reply to WilllBe [2017-12-11 17:10:57 +0000 UTC]
Sometimes you can add dimensions to the image. For example:
Note that the values are in pixels. You don't have to include both a width and height - if you set only one value then dA will automatically scale the other.
👍: 0 ⏩: 0
FellFallow In reply to WilllBe [2017-12-04 22:50:45 +0000 UTC]
If you just want to make the image bigger than a thumbnail you can use : bigthumbXXXXXXXXX : (without spaces + X = thumb number). Otherwise you can put before the 'img src' (img width="xxx"). So it'd be
👍: 0 ⏩: 1
WilllBe In reply to FellFallow [2017-12-08 21:00:58 +0000 UTC]
I can't seem to get the img width to work? also, where and how do I put the : bigthumbXXXXXXXXX
👍: 0 ⏩: 1
FellFallow In reply to WilllBe [2017-12-08 22:27:42 +0000 UTC]
Screenshot me your code and I'll see if I can help. Also, should just work like this for the large thumbnail:
Code for that is just : bigthumb718339654 : (without the spaces between the . You can put it in any of the custom-box widgets (or anywhere you can add custom code really).
👍: 0 ⏩: 1
WilllBe In reply to FellFallow [2017-12-09 12:48:13 +0000 UTC]
Alright! I think the reason it didn't work was because I am using some custom boxes, because I tried changing the height as well, which worked, so I think it's just that because of how the box code I am using works, it may be locked to the width of the box?(It is not INSIDE a box I mean, but I put it between two boxes and I think it is still locked to their width, I just didn't realize until now) But this information will be really helpful for me regardless whenever I recode my page, so thank you so much!
👍: 0 ⏩: 1
ThatNSFWArtist In reply to ??? [2017-11-22 06:51:25 +0000 UTC]
Hi! I was wondering. Do you have the galleries within galleries HTML code?
I'd like to use it. ^_^
👍: 0 ⏩: 1
Synfull In reply to ThatNSFWArtist [2017-11-22 20:05:05 +0000 UTC]
I think the ability to have sub-galleries is a paid feature
👍: 0 ⏩: 1
ThatNSFWArtist In reply to Synfull [2017-11-23 00:09:49 +0000 UTC]
Oh okay that would make sense on why I can't get the HTML code when I use the "Inspect Element" feature on my FireFox web browser. Thank you for letting me know. ^_^;
👍: 0 ⏩: 0
Shadowfirez0 In reply to ??? [2017-11-08 03:08:03 +0000 UTC]
does the text alignment work in dA IDs?
👍: 0 ⏩: 2
Nyctoyo In reply to Shadowfirez0 [2017-11-11 19:46:59 +0000 UTC]
It does, I've tried it before.
👍: 0 ⏩: 1
Shadowfirez0 In reply to Nyctoyo [2017-11-11 22:36:18 +0000 UTC]
It doesn't seem to work for me if i use center.
👍: 0 ⏩: 0
Synfull In reply to Shadowfirez0 [2017-11-08 22:12:56 +0000 UTC]
I don't think so. I think dA puts special restrictures on that widget so the text is always left aligned.
👍: 0 ⏩: 0
Emocje In reply to ??? [2017-10-28 04:18:58 +0000 UTC]
It won't align text to the center in Group info box for groups?
👍: 0 ⏩: 1
Synfull In reply to Emocje [2017-10-29 10:25:19 +0000 UTC]
Sadly dA restricts the text formatting in that box so it will always be left aligned. If you really want it in the center, you'll have to use a custom box (if those are available for groups)
👍: 0 ⏩: 1
Emocje In reply to Synfull [2017-10-29 21:55:58 +0000 UTC]
Grr, thanks dA, lol..
Thank you though
👍: 0 ⏩: 0
Kiyopan In reply to ??? [2017-10-21 15:25:14 +0000 UTC]
I´ve tried adding a picture to a box but it turned out so huge that it the half got cut off
👍: 0 ⏩: 1
Synfull In reply to Kiyopan [2017-10-22 19:08:03 +0000 UTC]
Shrink the image down using a program like Paint and then use it
👍: 0 ⏩: 1
jadefeatherss In reply to ??? [2017-09-25 01:21:49 +0000 UTC]
hi,, would you be able to tell me what's wrong with this coding? I've used the exact same coding to do the rest of the images on my page,, and all the links have worked fine? the only difference between them is that I'm linking to an offsite page. ( I have gotten images from other websites before and had no problem coding those.
thanks !
pastebin.com/PQib1W5p
👍: 0 ⏩: 1
Synfull In reply to jadefeatherss [2017-09-25 17:26:04 +0000 UTC]
Hi. To fix it, add http:// to the start of the image links (e.g. http://i.imgur.com/5RyreHd.png).
👍: 0 ⏩: 1
jadefeatherss In reply to Synfull [2017-09-25 22:32:18 +0000 UTC]
I've tried that and it hasn't worked ? This is what happens when I add that,, and if I add quotation marks ( which I've seen some people do ) it does something else
imgur.com/a/QhWqW
👍: 0 ⏩: 1
Synfull In reply to jadefeatherss [2017-09-26 18:35:41 +0000 UTC]
I think the issue may be that there's slanted quote marks at the start of the link. I certainly got it working with the following code: pastebin.com/7LyNshRX
👍: 0 ⏩: 1
jadefeatherss In reply to Synfull [2017-09-26 21:38:03 +0000 UTC]
ah okay, thanks so much !!
👍: 0 ⏩: 0
positiivity In reply to ??? [2017-09-24 14:44:42 +0000 UTC]
Bless your soul this was very helpful *^*
👍: 0 ⏩: 1
cocoatwist In reply to ??? [2017-09-21 00:11:42 +0000 UTC]
t h a n k t h e d e v i a n t a r t g o d s
👍: 0 ⏩: 1
Lordofthehobbit In reply to ??? [2017-09-05 03:49:21 +0000 UTC]
sorry to ask, but how do you get that, line thingy.
👍: 0 ⏩: 2
<= Prev | | Next =>