Sun May 27, 2012, 10:22 AM
Make7 (6,426 posts)
Unofficial DU3 Basic HTML Reference Lookup Table
This discussion thread is pinned. Unofficial DU3 Basic HTML Reference Lookup Table Special Tags HREF link with text display [link:URL|Text]
URL should include the "http://". Example: [link:http://www.democraticunderground.com|DU3] Text Formatting Bold [b]Text[/b] Italic [i]Text[/i] Underline [u]Text[/u] Strikethrough [strike]Text[/strike] Non-breaking space Line break [br /] Centering (in a post) [center]Text[/center] Centering (in a signature) [p class=post-sig style=margin-top:0px;text-align:center;]Text[/p] Subscript [sub]Text[/sub] Superscript [sup]Text[/sup] Highlighting [div style="display:inline; background-color:#FFFF66;"]Text[/div] Blockquotes and Post Formatting Create a styled, indented blockquote
(useful for posting excerpts from articles) [div class="excerpt"]Text[/div] Create an indented blockquote
(without color background) [blockquote]Text[/blockquote] Horizontal Line [hr] Font Tag Font [font color="color" size="size" face="face"]Text[/font] Links, Images, and Videos Hyperlink No tags needed - just type the URL starting with http:// Images No tags needed - just type the URL starting with http://
Images must be in gif, jpeg, or png format Video Embedding
(YouTube and Vimeo only) No tags needed - just type the URL starting with http://
Examples: http://www.youtube.com/watch?v=VyqzPu5pX6U http://youtu.be/VyqzPu5pX6U http://vimeo.com/8947397 Formatted List Unordered Lists with <li> [ul]
[li] [li] ... [/ul] Ordered Lists with <ol> [ol]
[li] [li] ... [/ol] Tables Sorry, tables are not allowed Suggested permalink to this post: http://www.democraticunderground.com/?com=view_post&forum=1256&pid=1674#html_lookup_table
|
30 replies, 6592 views
| Author | Time | Post | |
| Make7 | May 2012 | OP | |
| rocktivity | May 2012 | #1 | |
| Make7 | May 2012 | #3 | |
| muriel_volestrangler | May 2012 | #4 | |
| Make7 | Jun 2012 | #6 | |
| Scuba | May 2012 | #2 | |
| RainDog | May 2012 | #5 | |
| Ohio Joe | Jun 2012 | #7 | |
| Lugnut | Jun 2012 | #8 | |
| Lookz | Jun 2012 | #9 | |
| Egalitarian Thug | Dec 2012 | #10 | |
| Make7 | Dec 2012 | #11 | |
| annabanana | Dec 2012 | #12 | |
| Make7 | Mar 2013 | #13 | |
| muriel_volestrangler | Mar 2013 | #15 | |
| Make7 | Mar 2013 | #16 | |
| Agschmid | Mar 2013 | #14 | |
| Make7 | Mar 2013 | #17 | |
| Make7 | Apr 4 | #18 | |
| lumberjack_jeff | Apr 30 | #26 | |
| Make7 | Apr 30 | #28 | |
| lumberjack_jeff | Apr 30 | #29 | |
| Ptah | Apr 20 | #19 | |
| RainDog | Apr 21 | #20 | |
| Make7 | Apr 21 | #21 | |
| RainDog | Apr 21 | #22 | |
| Make7 | Apr 21 | #23 | |
| petronius | Apr 29 | #24 | |
| Make7 | Apr 29 | #25 | |
| petronius | Apr 30 | #27 | |
| TexasTowelie | May 27 | #30 |
Response to Make7 (Original post)
Sun May 27, 2012, 10:27 AM
rocktivity (36,684 posts)
1. I never thought I'd miss the marquee
|
Last edited Sun May 27, 2012, 11:43 AM USA/ET - Edit history (2) Anyhoo, here's how to link to a YouTube page: replace the "?" with "%3F".
http://www.youtube.com/watch%3Fv=VyqzPu5pX6U rocktivity |
Response to rocktivity (Reply #1)
Sun May 27, 2012, 10:53 AM
Make7 (6,426 posts)
3. In addition to linking to YouTube without embedding, I'll add how to for Vimeo...
|
As pointed out above, to post a link to a video on YouTube without embedding it replace the '?' with '%3F' (its URL encode character):
http://www.youtube.com/watch?v=VyqzPu5pX6U
http://www.youtube.com/watch%3Fv=VyqzPu5pX6U
This is also possible with videos on Vimeo by adding a '%3' before the video's number: http://vimeo.com/8947397
http://vimeo.com/%38947397
This works by creating a URL encode character of the first number of the video's id. I don't think there is a solution for the marquee tag on DU3 (thank goodness!). |
Response to Make7 (Reply #3)
Sun May 27, 2012, 01:40 PM
muriel_volestrangler (65,853 posts)
4. How to link to YouTube giving a start time
|
You can't, as far as I can tell, do this and get it to embed on DU, but this allows you to specify the point at which YouTube starts showing the video (useful for a particular point from a long one. To start at 1 minute 35 seconds:
http://www.youtube.com/watch?t=1m35s&v=VyqzPu5pX6U The "t=XmYs" must come before the "v="; if it comes after, DU embeds the video but starts at the beginning. |
Response to muriel_volestrangler (Reply #4)
Fri Jun 1, 2012, 03:49 AM
Make7 (6,426 posts)
6. There doesn't seem to be a way to embed while adding parameters.
|
Last edited Sat Jun 2, 2012, 04:54 AM USA/ET - Edit history (2) Which is unfortunate since there are quite a few useful parameters one can add to embedded YouTube videos. Here is a page on google that outlines them:
I could not seem to find any information on the parameters available in normal YouTube links. However, since we can't embed a video with extra parameters anyway, by using a different link format that goes to https://www.youtube.com we can use the embedded player parameters. As an example I am going to use the related, start, end, autoplay, autohide controls, and display fullscreen button parameters in a link: It will only work with https links in that format, it won't work as intended if the link is a regular http address. As luck would have it, DU3 seems to not like https links unless they are in a [link] tag. So this whole thing is perhaps more effort than it is worth - but it may come in handy for a long video where only the relevant portion could be shown by specifying start and end points. |
Response to Make7 (Original post)
Sun May 27, 2012, 10:28 AM
Scuba (27,211 posts)
2. Bookmarked. Thank you.
Response to Make7 (Original post)
Fri Jun 1, 2012, 11:23 AM
Ohio Joe (12,181 posts)
7. Excellent - This should get pinned - nt
Response to Ohio Joe (Reply #7)
Sun Jun 3, 2012, 01:40 AM
Lugnut (8,762 posts)
8. Yeah, it should be pinned.
|
This is good info that should be readily available.
|
Response to Make7 (Original post)
Wed Jun 6, 2012, 08:16 PM
Lookz (4 posts)
9. Was looking for this
|
+1 for pinning this
|
Response to Make7 (Original post)
Thu Dec 13, 2012, 01:55 PM
Egalitarian Thug (7,966 posts)
10. Would you expand this to include symbols and similar? n/t
Response to Egalitarian Thug (Reply #10)
Thu Dec 20, 2012, 09:06 PM
Make7 (6,426 posts)
11. I'm not sure precisely what you mean by symbols.
|
Most types of symbols that can be used here should be fairly easy to look up via a web search. I've posted the link to the w3schools standard html entity list numerous times and I recall MineralMan doing a post with accented vowels and similar language characters. There are additional pages at w3schools with those and more. If you mean something other than that, please clarify.
|
Response to Make7 (Original post)
Sat Dec 22, 2012, 01:49 PM
annabanana (45,799 posts)
12. Mmmph.. Thanks.(Bookmarked) I lost my old
|
link to this from before.
|
Response to Make7 (Original post)
Sun Mar 10, 2013, 10:53 AM
Make7 (6,426 posts)
13. The Meta version of this thread (which came first) at archive.org:
|
Last edited Sun Mar 10, 2013, 11:27 AM USA/ET - Edit history (1) http://web.archive.org/web/20120419091647/http://www.democraticunderground.com/124025017
Perhaps some of the replies in that version may also be useful (e.g. imitating the [pre] tag, issues with code in signatures). |
Response to Make7 (Reply #13)
Wed Mar 13, 2013, 10:06 PM
muriel_volestrangler (65,853 posts)
15. You're our saviour! I thought that had been lost, since you had to be logged in
|
to see Meta (or was that just in its latter days?), so that it wouldn't be archived.
|
Response to muriel_volestrangler (Reply #15)
Thu Mar 14, 2013, 04:04 PM
Make7 (6,426 posts)
16. Meta was viewable to the public for about half a year or so.
|
Some of the Meta forum (up through May 2012) is archived over there - after that it tries (and fails) to send you to a log in screen.
I remember there being another sub-thread in the Meta HTML Reference thread - but someone else provided the answer before I saw the question and now I can't recall what it was about (font sizes? maybe). There may have been more, but I thought the signature stuff and the [pre] code was worth a link. |
Response to Make7 (Original post)
Tue Mar 12, 2013, 12:44 PM
Agschmid (1,964 posts)
14. Kicked to the top! Very helpful. n/t
Response to Make7 (Original post)
Thu Mar 14, 2013, 04:09 PM
Make7 (6,426 posts)
17. Problems with links and the [link: | ] tag? What to do to fix them.
|
Hopefully the following thread will help:
|
Response to Make7 (Original post)
Thu Apr 4, 2013, 07:02 PM
Make7 (6,426 posts)
18. Bored with DU's plain gray excerpt boxes?
|
Here's one that can be useful for quoting a whole DU post with a title or a DU Mail:
TITLE GOES HERE [div class="excerpt" style="background-color:#dcdcdc; padding-bottom:5px; border:1px solid #bfbfbf; border-bottom:none; border-radius:0.4615em 0.4615em 0em 0em; box-shadow:3px 3px 3px #999999;"][b]TITLE GOES HERE[/b][/div][div class="excerpt" style="background-color:#f0f0f0; border:1px solid #bfbfbf; border-top:none; border-radius:0em 0em 0.4615em 0.4615em; box-shadow:3px 3px 3px #999999;"]MESSAGE GOES HERE[/div]
And this is what I'm using in my user style sheet (everyone's excerpts look like this in my browser): [div class="excerpt" style="margin-left:1em; border:1px solid #bfbfbf; border-radius:0.4615em; box-shadow:3px 3px 3px #999999;"][/div]
And I often use this in my own posts as a double check that my excerpt code is actually doing something (i.e. slightly different than my user style sheet excerpt code): [div class="excerpt" style="margin-left:1em; border:1px solid #bfbfbf; border-radius:0.4615em; box-shadow:-1px -1px 3px #999999 inset;"][/div]
Obviously there are too many possibilities for me to list what you can do by adding a little CSS to an div.excerpt element - for those wanting to try more, w3schools has a good CSS reference guide. |
Response to Make7 (Reply #18)
Tue Apr 30, 2013, 01:34 PM
lumberjack_jeff (24,737 posts)
26. What is "my user style sheet"? n/t
Response to lumberjack_jeff (Reply #26)
Tue Apr 30, 2013, 07:27 PM
Make7 (6,426 posts)
28. A 'user style sheet' allows you to customize the appearance of elements on a website.
|
Last edited Tue Apr 30, 2013, 07:41 PM USA/ET - Edit history (2) Most websites use style sheets to define how things will look (e.g. fonts, text size and color, borders, alignment and placement of elements, background colors, background images, etc.). For example in DU's main style sheet you can find the rule for excerpts (inserted in a post when you hit the excerpt button or type [div class="excerpt"] [/div] into your message):
div.excerpt {
display: block; background-color: #e6e6e6; margin: 0px 0px 0px 0px; padding: 10px; } A 'user style sheet' is a file that resides on your computer that will tell your browser that you want to substitute the website's style rule for a particular element with something you define yourself. Depending on the browser/platform implementing a user style sheet is very easy or virtual impossible. Some of the things I am doing on DU with my user style sheet are: hiding signatures, adding a rounded border and drop-shadow to excerpt boxes, right justifying and hiding most of the edit text message and changing the text color to light grey, hiding the post count and profile/mail/journal/ignore icons by the username in posts.... ETA: I guess I should take a screenshot to show what posts look like when I browse DU. This is what my post (before adding this image) looked in my browser: ![]() |
Response to Make7 (Reply #28)
Tue Apr 30, 2013, 08:13 PM
lumberjack_jeff (24,737 posts)
29. Cool! I didn't know that you could substitute a style sheet hosted locally for the site's.
|
You've given me a great jumping off point to do some additional learning. Thanks!
|
Response to Make7 (Original post)
Sat Apr 20, 2013, 06:30 PM
Ptah (25,160 posts)
19. Thanks for this thread, Make7.
|
|
Response to Make7 (Original post)
Sun Apr 21, 2013, 06:08 PM
RainDog (24,553 posts)
20. embedded links
|
I know basic html - but when I try to embed using the DU way, the link doesn't show. help.
I put in the http (supplied by DU, don't use /a, as is not done in the sample, to close the link... |
Response to RainDog (Reply #20)
Sun Apr 21, 2013, 08:53 PM
Make7 (6,426 posts)
21. There are some issues with links and the [link] tag.
|
The main problem seems to be the inability of the DU3 software to handle certain characters in the web address and/or text portion correctly - that and it acting a little differently than it did on DU2 (e.g. here you should include the http:// part, there you were supposed to omit it).
I posted a thread about the issues that I know about here. If you give me an example like this (with a space in the web address so it shows up as text)... URL = http ://www.democraticunderground.com/ ... I'll see if I can determine what the issue might be - and get it to look like this: DU3's Home Page. If the problem is just trying to get the link button to put the proper code into your post, there are two ways to use it:
[link:http://www.example.com|custom text] (Of course you can always just type the code in instead of using the buttons, that's what I usually do.) |
Response to Make7 (Reply #21)
Sun Apr 21, 2013, 09:02 PM
RainDog (24,553 posts)
22. here's the post
|
http://www.democraticunderground.com/1120231
where I tried to link. It was supposed to say Book Savoury. It disappeared when I did the embedded link, so I just posted it "raw." |
Response to RainDog (Reply #22)
Sun Apr 21, 2013, 10:03 PM
Make7 (6,426 posts)
23. The plus signs in the web address are making it not work right.
|
You can replace them with %2B (as explained here in my other thread):
[link:http://www.abebooks.com/servlet/SearchResults?sts=t&tn=THIRTY+WAYS+OF+LOOKING+AT+HILLARY&vci=53462510&x=56&y=19|Book Savoury]
[link:http://www.abebooks.com/servlet/SearchResults?sts=t&tn=THIRTY%2BWAYS%2BOF%2BLOOKING%2BAT%2BHILLARY&vci=53462510&x=56&y=19|Book Savoury] To give you: For that particular link, you could also use %20 for spaces instead of the plus signs: [link:http://www.abebooks.com/servlet/SearchResults?sts=t&tn=THIRTY%20WAYS%20OF%20LOOKING%20AT%20HILLARY&vci=53462510&x=56&y=19|Book Savoury]
To give you: |
Response to Make7 (Original post)
Mon Apr 29, 2013, 12:10 AM
petronius (19,798 posts)
24. Excellent thread, thank you! And now a question:
|
Is there any way to enter line breaks into the "About Me" box on the user profile?
|
Response to petronius (Reply #24)
Mon Apr 29, 2013, 02:37 AM
Make7 (6,426 posts)
25. I haven't been able to get any type of line break to work within the 'About Me' text.
|
This has been asked in the past a few times and I usually try every way I can think of to get it to work each time someone raises the issue and have yet to succeed.
Maybe post in ATA to see if they'll add some code to recognize line breaks in the 'About Me' text and have the software insert <br> tags to the html source - just like the software will in a regular post. It can't hurt to ask... |
Response to Make7 (Reply #25)
Tue Apr 30, 2013, 02:42 PM
petronius (19,798 posts)
27. Thanks! Here's the ATA thread I started:
Response to Make7 (Original post)
Mon May 27, 2013, 06:35 PM
TexasTowelie (3,859 posts)
30. Placing code to resize images here to avoid opening more windows.
|
Last edited Mon May 27, 2013, 06:38 PM USA/ET - Edit history (1) |div style="width:20%;"| URL |/div|
Substitute braces for vertical pipe, no spaces before or after URL. |


