HOME | DD

Published: 2013-01-24 03:09:27 +0000 UTC; Views: 157293; 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
blaine-rr In reply to ??? [2018-05-21 22:37:03 +0000 UTC]
How do you code for the dividers? Those lines to separate the page?
👍: 0 ⏩: 2
Synfull In reply to blaine-rr [2018-05-22 23:28:11 +0000 UTC]
Use the <hr> tag (stands for horizontal rule)
👍: 0 ⏩: 0
7thDeath In reply to blaine-rr [2018-05-22 09:41:35 +0000 UTC]
"hr"
And you don't need to close (>), just open it (<>).
👍: 0 ⏩: 0
CorginautCreations [2018-05-20 15:40:39 +0000 UTC]
First of all, Thank you very, very much for being an active help for the other commenters, I really appreciate peopple like you!
Secondly I was wondering if there is a coding tutorial for changing fonds?
<3
Thanks again
👍: 0 ⏩: 1
Synfull In reply to CorginautCreations [2018-05-20 21:44:51 +0000 UTC]
I'm assuming 'fonds' is a typo for 'fonts'. If that's the case, dA doesn't allow you to change fonts in comments etc. The only place is journals (which is done via CSS)
👍: 0 ⏩: 1
CorginautCreations In reply to Synfull [2018-05-20 21:53:38 +0000 UTC]
yeah, I mean fonts xD
I always confuse those two, sorry about that.
But I dont mean in comments, I totally get that.
I was actually talking about in, like custom boxes.
👍: 0 ⏩: 1
Synfull In reply to CorginautCreations [2018-05-22 23:29:13 +0000 UTC]
I'm not sure if you can use custom fonts in there. If you can I'd suggest finding a custom box tutorial as that might be able to tell you how
👍: 0 ⏩: 0
Melacc In reply to ??? [2018-05-17 17:50:12 +0000 UTC]
i have a problem
how can i put something like a deviant username in a image on my page :v ?
👍: 0 ⏩: 1
Synfull In reply to Melacc [2018-05-20 21:46:07 +0000 UTC]
I'm not quite sure what you mean. You'd like to put a usename on top of an image?
👍: 0 ⏩: 0
AdoptsSisters In reply to ??? [2018-05-15 20:22:00 +0000 UTC]
I still don't know how to centralise my text... oh poohie...
👍: 0 ⏩: 1
Synfull In reply to AdoptsSisters [2018-05-15 21:09:27 +0000 UTC]
It's explained in the "text position" section
👍: 0 ⏩: 1
AdoptsSisters In reply to Synfull [2018-05-15 21:19:09 +0000 UTC]
yes, I've finally see it XD (I kinda skidded through, so i couldn't see it for a moment )
👍: 0 ⏩: 0
Tych0x0 In reply to ??? [2018-04-24 19:46:42 +0000 UTC]
I come to this journal, like twice a week xD
👍: 0 ⏩: 1
IcebatRRBZ8 In reply to ??? [2018-04-05 10:33:21 +0000 UTC]
Can you place text on top of the image but next to it? Like in the Youtube video titles?
👍: 0 ⏩: 1
Synfull In reply to IcebatRRBZ8 [2018-04-06 23:42:33 +0000 UTC]
I'm not sure what you are asking. How can something be on top and next to it?
👍: 0 ⏩: 1
IcebatRRBZ8 In reply to Synfull [2018-04-06 23:46:25 +0000 UTC]
I already got it. But having space issues between them. It looks different on my IPhone where I screenshot that than on my PC.
👍: 0 ⏩: 0
SHRlNE In reply to ??? [2018-04-04 21:11:05 +0000 UTC]
Is there any coding I can add to the image one to be able to decide the sizing?
👍: 0 ⏩: 1
Synfull In reply to SHRlNE [2018-04-05 22:32:14 +0000 UTC]
Sometimes you can add a width/height value, but in some cases dA ignores it.
For example <img src="URL of image" width="150px"/>
👍: 0 ⏩: 1
bori03 In reply to ??? [2018-04-01 14:40:01 +0000 UTC]
inserting an image doesn't work, all i get is raw code being displayed. I used direct link to an image and inserted it in place, yet it still is as it is
👍: 0 ⏩: 2
Synfull In reply to bori03 [2018-04-05 22:30:00 +0000 UTC]
I don't seem to be having any issues with it. Do you have an example where it has gone wrong?
👍: 0 ⏩: 0
e-mancipate In reply to ??? [2018-03-26 14:21:53 +0000 UTC]
Thank your for this tut, I have a question tho, the image code doesnt seem to display the image on my journal, is it still working?
👍: 0 ⏩: 1
Synfull In reply to e-mancipate [2018-03-26 21:35:14 +0000 UTC]
I've just tried it in my journal and not had any issues. Can you send me a note with the code you are trying to use?
👍: 0 ⏩: 0
Troll--cat In reply to ??? [2018-03-24 16:27:02 +0000 UTC]
Question: how do i make the header stop including a link
ex:
magic-gems.deviantart.com/
👍: 0 ⏩: 1
Synfull In reply to Troll--cat [2018-03-26 21:30:53 +0000 UTC]
Hi. Could you give me an example of what you mean by header on that page? I can't see anything that immediately looks out of the ordinary.
👍: 0 ⏩: 1
Troll--cat In reply to Synfull [2018-03-27 14:33:34 +0000 UTC]
Sorry about that I meant like this. magic-gems.deviantart.com/ The continuing link
👍: 0 ⏩: 1
Synfull In reply to Troll--cat [2018-04-05 22:28:14 +0000 UTC]
Sorry but I'm still not sure I know what you mean
👍: 0 ⏩: 1
Troll--cat In reply to Synfull [2018-04-07 18:27:16 +0000 UTC]
Nevermind, sorry about that ^^
👍: 0 ⏩: 0
Synfull In reply to perrylegocity60134 [2018-03-26 21:40:32 +0000 UTC]
Glad you found it useful
👍: 0 ⏩: 0
perrylegocity60134 In reply to ??? [2018-03-09 06:15:10 +0000 UTC]
media1.giphy.com/media/EZELNss… ">
👍: 0 ⏩: 1
Synfull In reply to perrylegocity60134 [2018-03-14 19:06:20 +0000 UTC]
You won't be able to use the img src code in comments
👍: 0 ⏩: 1
perrylegocity60134 In reply to Synfull [2018-03-15 05:06:43 +0000 UTC]
thanks! dude you saved my life
btw that was an attempt to put a picture from another website in deviantart comments
👍: 0 ⏩: 0
the-last-jennicorn In reply to ??? [2018-02-23 18:48:02 +0000 UTC]
Any tips on how to link an image to a social media URL? I'd like a stamp I found on DA to a social media link within my "About Me" section, and all I get is this:
Is it impossible to do this in DA? I'm used the 'a href' and 'img src' codes, tried saving the images to my stash and same result
Help would be greatly appreciated! Thanks
👍: 0 ⏩: 1
Synfull In reply to the-last-jennicorn [2018-02-24 00:43:00 +0000 UTC]
Can you send me a note with the code you are trying to use? Seems like the code can't find the images
👍: 0 ⏩: 1
the-last-jennicorn In reply to Synfull [2018-02-24 01:19:56 +0000 UTC]
Oops! Sorry, I meant to mention that I figured it out. Rather than right clicking and copying the image link I was using the URL from the address bar instead. Now everything's perfect Thanks for your reply though!
👍: 0 ⏩: 0
F4ngtasia In reply to ??? [2018-01-31 13:59:52 +0000 UTC]
thank you! this was super helpful!
👍: 0 ⏩: 1
Mister-7 In reply to ??? [2018-01-29 07:21:51 +0000 UTC]
Is there by any chance a tag that disables emoticon shortcuts?
👍: 0 ⏩: 2
Synfull In reply to Mister-7 [2018-01-30 20:18:39 +0000 UTC]
I can't think of one that will disable the emotes all in one go. You can however add a tag somewhere in the middle of the emote shortcut (e.g. :hug: ) and that will stop it from working without showing the extra formatting (e.g. :hug: ).
👍: 0 ⏩: 0
Mister-7 In reply to Mister-7 [2018-01-29 07:26:41 +0000 UTC]
Never mind, I managed to do it by adapting your code breaking thing. I'm not sure how or why I managed to get it to work though...
👍: 0 ⏩: 0
<= Prev | | Next =>