Ivorygates (
ivorygates) wrote in
dw_docs2009-05-21 04:18 am
![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
![[site community profile]](https://www.dreamwidth.org/img/comm_staff.png)
Entry tags:
What HTML tags can I use on Dreamwidth?
Somebody who isn't me needs to go over this:
http://www.dreamwidth.org/support/faqbrowse.bml?faqid=155
http://www.dreamwidth.org/support/faqbrowse.bml?faqid=155
no subject
If your intent is in fact to explain how to use different tags, which it seems to be, then I think telling folks what the anchor tag is without a context example is rarely useful. Er: credential: I taught periodic html workshops for about 6 years starting before there were particularly usable WYSIWYG editors. The A tag is one that folks just never got without the whole link and the linked text. (e.g., <a> always gets an attribute explaining where the link is to, such as <a href="http://www.dreamwidth.org">Dreamwith</a>, which gets you Dreamwidth)
Also, your blockquote example is not, on my monitor, blockquotey.
Also also, while I agree that the h1-h6 tags are hierarchical headings, the description of them as largest to smallest and the example text are problematic because practically speaking, h5 and h6 look identical (on my monitor), so h6 doesn't look smaller than h5.
Uh, those last two could be style issues within the celerity site scheme, I suppose, in which case perhaps I should report them.
:)
no subject
B: i can't get most of these to show their attributes -- including the ones you mention -- and I'm using tropo. Maybe this is a bug?
no subject
no subject
no subject
Some of them (eg, address, span), I can't see any use for on DW. On the other hand, if you're listing all the possibly tags then I guess they should all be there. Might it be worth breaking the tags into sections? Say, tables, lists, formatting, links and images, advanced?
For some others (eg, font, img) it might be useful to give an example of how they work.
Big, blockquote, q, small, sub, sup are showing as regular text, and h3 to h6 all look identical, for me (Firefox, with the pink site scheme).
The angle brackets in the xmp example aren't showing corrctly.
no subject
I think the reason the angle brackets on the xmp example don't show correctly is because
I don't know why Big, blockquote, q, small, sub, and sup are showing as regular text. Really.
It might be useful to do a second entry containing only the text formatting tags, but I also think there may be a need for an exhaustive alphabetical list. Opinions?
no subject
For example, <span style="font-size:.8em"> a section of somewhat smaller text.</span>
It's used to style a line-level (as opposed to its block level counterpart, <div>) section of an element, either through inline styles, or an entry in an external stylesheet.
no subject
<img> has two required attributes: <src> and <alt>.
So <img><src><alt>? Nah. Why the <>? And what scr and alt are for anyway? You might as well explain these too. Especially alt.
If I already know some HTML, alphabetical sorting is good but scrolling isn't. What about listing the tags without the explanations but linking them to the explanations?
If I don't know HTML then this I'm not sure what I should do with this list. Let's say I'm just interested in styling my text. How can I do that? Couldn't the tags pertaining to that topic be grouped together? *whines* See what I mean? ;)
no subject
And what scr and alt are for anyway? You might as well explain these too. Especially alt.
Oddly, "scr" and "alt" aren't listed among the permitted tags. So I'm not sure what use "img" is going to be...
no subject
Can you tell me where? I don't see any list on Post an Entry, the Quick Reply text area or the Mini Bio in profiles or in the Custom Text module area.
But scr and alt aren't tags. They're attributes as you said.
no subject
Ah-HAH! Here it is! When you hit "Preview" they show up: Allowed HTML: [a] [abbr] [acronym] [address] [area] [b] [bdo] [big] [blink] [blockquote] [br] [caption] [center] [cite] [code] [col] [colgroup] [dd] [del] [dfn] [div] [dl] [dt] [em] [font] [form] [h1] [h2] [h3] [h4] [h5] [h6] [hr] [i] [img] [ins] [kbd] [li] [map] [marquee] [ol] [p] [pre] [q] [s] [samp] [small] [span] [strike] [strong] [sub] [sup] [table] [tbody] [td] [textarea] [tfoot] [th] [thead] [tr] [tt] [u] [ul] [var] [xmp]
(Angle brackets replaced with [ ] so they'll display...
no subject
P.S.
They're not tags, they're attributes to be inserted into the textarea tag.
The xmp example prints as:
This is an example of text formatted with <xmp> attributes
To complete others' reports:
Examples for small, big, blockquote and h3 to h6 look like normal text to me.
And I'm with matgb on removing deprecated tags from the list.
no subject
The <img> HTML example should probably be displayed as something like <img src="image.png" alt="This is an image!"/> so that the user knows how to put the tag together.
As for the standards questions by
I also agree with the grouping idea. The alphabetical list is only good for the "what's this do?" line of thinking, which is generally the opposite of how one thinks when learning (X)HTML. Generally speaking, the person looking this stuff up will be thinking more along the lines of "how can I do this?" Also, even as an experienced web developer who knows what all the tags do, I found the list to be getting to the point of too long and distracting that it started becoming painful to read through. There's not much to differentiate between entries.
As far as the <h> tags go, it might be useful to provide more detailed explanation on another page about them. The heading tags don't always show up different sizes (and can be styled to not change size at all), but their significance goes beyond just visual size. They actually help non-graphical utilities (browsers, web spiders, etc) differentiate between sections and subsections in a web document. It's like the "Table of Contents" tool in MS Word, which uses the headings to create an outline to use as the ToC.
Credentials: Web developer for a respected consulting company, Bachelor degree in Computer Information Systems specializing in web development, and freelance web developer since 2000.
no subject
No, it doesn't. That's the
title=""
attribute.no subject
no subject
Whether or not it's supposed to is a different story, but in IE, it does.
no subject
no subject
If nothing else, it's good to know what browsers have what quirks.
no subject
big — A font-style tag, used to format text within a document. The big tag will format text as larger than the base font.
The sample big text appears no larger than the rest of the text.
blockquote — A font-style tag, used to format text within a document. The blockquote tag defines a long quotation. The browser will insert white space before and after a blockquote element. It also inserts margins for the blockquote element.
The sample blockquoted text doesn't have any more of a margin than the rest of the text. No space appears before the blockquote, and two spaces are after it.
H3 through H6 - These heading sizes look exactly the same - just bolded text.
q — A tag used to format text within a document. The q tag defines a short quotation. The browser will automatically insert quotation marks around text marked with q.
The sample text does not have quotation marks on my screen.
small — A font-style tag, used to format text within a document. The small tag will format text as smaller than the default text.
The sample text does not appear small.
"sub — A font-style tag, used to format text within a document. The sub tag defines subscript text. Subscript text appears half a character below the baseline.
sup — A font-style tag, used to format text within a document. The sup tag defines superscript text. Superscript text appears half a character above the baseline."
The sample text appeared no different from the other text.
no subject
For example, it shouldn't be {BR}, it should be {BR /}, same for IMG (and encouraging defined height and width would be good given image placeholders &c) and HR.
You've also mentioned that SPAN can be used for Javascript—given that this is stripped out from DW posts, that's misleading. I'd suggest an example using a style, so people can see what/how it's used as a lot of people don't know the basics of putting CSS into posts.
But overall, fair, several codes in there I'd never heard of, not sure if that's my lack of knowledge or because they're deprecated.
no subject
no subject
no subject
no subject
preformat tags
no subject
I think that, for the formatting tags, instead of writing out what they do, perhaps just a list demonstrating their correct usage and then the affected text would be useful.
The thing where many of your examples of the formatting tags in use don't actually display correctly is a known bug, an effect of the extremely aggressive reset.css, see http://bugs.dwscoalition.org/show_bug.cgi?id=816 and http://bugs.dwscoalition.org/show_bug.cgi?id=1151.
no subject
But for most users, a grouped list will be much more useful. I suggest the following groups as useful for beginners: "Formatting", "Forms", "Images", "Links", "Lists", "Tables", "Other".
no subject
If it's that (a simple list, and it's very annoying that the bug won't let the font-formatting tags display properly) then is it most useful to have them in a "simple alphabetical" list for easy searching? Or should even the comprehensive list be separated by type, perhaps with an additional explanatory-and-introductory paragraph preceding each?
HTML FAQ
Also, it would be good to add a note that using em and strong is better than i and b for screenreaders users.
And seconding the stuff about a href being much more important than a.
no subject
2. I'm pretty sure I qualify as a "naive user" of HTML. For me, just having an alphabetic list of codes with brief descriptions of what they do (when it's not self-evident) is the most useful. If something interests me I tend to hack&slash my way to using it, so this is a great reference guide & learning tool for me. ;-)
3. As a variety of people above noted, some of the code examples don't look any different than plain text on my monitor. I'm sure it mostly has to do with individual PC & software settings, tho', so I'm not going to bother specifying what unless someone asks for details. Feel free to ask if you want the info!
Thanks for your hard work! *I* appreciate it!