RSS

Quick & Dirty HTML Primer

Display mode:
Dragonchilde
9322 words so far

Unlike many forums on the web, we do not use the [BB CODE] specification. Here, we use good old-fashioned HTML.

This... can be confusing. So, I'm going to do a quick primer of the tags you'll be using most often, and hopefully this will help you post signatures, add emphasis to your posts, and overall look REALLY cool.


Links

First, is the link. In web designer speak, we use an anchor tag for this... what it means to you is that you can format your links prettily.
You can just post the link like so: http://www.nanowrimo.org and the forum will automatically convert it for you. However, you might want to make it clickable, and pretty, so that it doesn't ugly-up your post!
Like So.

Here's how you do this:

<a href="URL">Clickable Text</a>

It's important to remember to "close your tag", that is, add a </a> at the end of the text, otherwise everything after it will be clickable. Not pretty at all. ;)

You can also do a clickable email link the same way, only instead of using a URL, you'll use the following within the quotation marks: mailto:EMAIL ADDRESS

Be wary of this one, though, as any email address you may post on the forum may be harvested by spam bots. It's generally not a wise idea to post your email address unless absolutely necessary.

Italics

Italics were updated with the new XHTML specifications. The technical term for this is "deprecated". The old tag, <i>, is no longer valid, so it doesn't work. The arcane deity known as the "W3C" decided this is so, so it is. ;)

What does this mean to you? Well, it means that to make it work, you have to get with the program, and use their new, approved tag.

Italicized Text

To do this:
<em>Italicized Text</em>
Easy-peasy! This one also needs to be closed, or your whole post will be italicized.

Bold Text

Sometimes, you just gotta shout! Like the italics, the old <b> tag was deprecated. So now, we use a new tag: <strong>.

To make your text bolder, use the following:
<strong>Bolded Text</strong>

This is also a tag that needs to be closed, or your entire post will be bolded.

Lists

The next bit of code you're like to use is a list. Sometimes, you want to order your thoughts, or you want a bulleted list. These can be simulated with regular characters, such as a dash ( - ) for a bullet, or numbering manually. However, lists offer two advantages: Prettier, easier to read formatting, and autonumbering. If you add an item in the middle of your list, the ordered list option will rearrange your numbers for you, instead of you having to go in and retype them all.


  1. This is an ordered list

  2. Your items will be numbered in order

To do this:
<ol>
<li>First item</li>
<li>Second item</li>
</ol>


  • This is an unordered list

  • Your items will be presented with bullets

To do this:
<ul>
<li>First item</li>
<li>Second item</li>
</ul>

The construction of both of these lists is the same, with one small difference. Make sure you use the right opening and closing tags: <ol></ol> for an ordered list, and <ul></ul> for an unordered list.

Images

We know why you're all here. Admit it; you want a pretty image in your signature, or you want to post an image in your post. Well, this will tell you how to do just that!

Before I do, let me remind you of a few guidelines: Keep your images small, and don't use too many. If someone has to scroll past half a screen to get by your signature, a moderator may ask you to remove it. HQ has asked that signature banners be no larger than 500 pixels wide x 100 high and 30kb in size- and that's the combined total of images in your signature. You can add signatures under My NaNoWriMo => Edit User Settings [NOTE: THIS FEATURE IS NOT YET AVAILABLE.]

Unlike the other tags, the image tag doesn't need to be closed with a second tag. It's a standalone.
If you want to post this:

2006 Winner

Here is how you do so:
<img src="IMG URL" />

Note the little forward slash at the end. ;) That is how you denote a tag that doesn't need to be closed with a second tag.

Please note that images must be hosted elsewhere for you to link them. You can use photobucket, a private web host (some don't allow hotlinking, so check with your host - Geocities is one of these that disallows linking from elsewhere.) My personal favorite is TinyPic, because it's quick and easy, and doesn't require a link back like photobucket does.

Now, if you really want to get squirrely? You can make your PICTURES clickable, by nesting tags.



To do this:
<a href="URL you want to link to"><img src="Image URL" /></a>

There, that was your not-so-quick, not-so-dirty primer on how to use XHTML on this forum. This will actually work on any web page (except forums that have HTML disabled, of course). If you have questions, feel free to ask!

Deadly Ernest
0 words so far

I wish your subject heading was true. Checks of source code sees lists after list of Java Scripts not html code.

I'm having a lot of difficulty because you have so many non html calls to third parties it slows loading down to a crawl. Do you really NEED to use Google APIs so much, can't you do things with your own code and not have to use theirs?

The real annoying thing is I have to take time to turn off some security settings related to third party calls to access the site. This is going to greatly inhibit my participation and live activity on the site due to the trouble involved and time lost in doing so. What ever happened to people who designed web sites to work totally off their own server?

A security conscientious web designer should NOT use third party calls as that's how the bad guys hit people with trojans and virus downloads. Which is why security people tell you to disable third party cookies and third party code calls.

Dragonchilde
9322 words so far

Deadly Ernest wrote:
I wish your subject heading was true. Checks of source code sees lists after list of Java Scripts not html code.

I'm having a lot of difficulty because you have so many non html calls to third parties it slows loading down to a crawl. Do you really NEED to use Google APIs so much, can't you do things with your own code and not have to use theirs?

The real annoying thing is I have to take time to turn off some security settings related to third party calls to access the site. This is going to greatly inhibit my participation and live activity on the site due to the trouble involved and time lost in doing so. What ever happened to people who designed web sites to work totally off their own server?

A security conscientious web designer should NOT use third party calls as that's how the bad guys hit people with trojans and virus downloads. Which is why security people tell you to disable third party cookies and third party code calls.




Deadly Earnest, if you would like to submit some feedback, please do so in the Suggestions forum. This thread is for the discussion of HTML as it relates to formatting on this forum, not third party API usage.

Deadly Ernest
0 words so far

Dragonchilde wrote:
Deadly Ernest wrote:
I wish your subject heading was true. Checks of source code sees lists after list of Java Scripts not html code.

I'm having a lot of difficulty because you have so many non html calls to third parties it slows loading down to a crawl. Do you really NEED to use Google APIs so much, can't you do things with your own code and not have to use theirs?

The real annoying thing is I have to take time to turn off some security settings related to third party calls to access the site. This is going to greatly inhibit my participation and live activity on the site due to the trouble involved and time lost in doing so. What ever happened to people who designed web sites to work totally off their own server?

A security conscientious web designer should NOT use third party calls as that's how the bad guys hit people with trojans and virus downloads. Which is why security people tell you to disable third party cookies and third party code calls.




Deadly Earnest, if you would like to submit some feedback, please do so in the Suggestions forum. This thread is for the discussion of HTML as it relates to formatting on this forum, not third party API usage.


G'day Dragonchilde,

The is issue seems, to me, to be more of a site problem bug than a site change feedback item. On going to the Tech Help and Bug Report page this seemed the most appropriate thread to comment on.

However, since you assure me this belongs on the Feedback forum, I'll make the comment there.

Regards,

Ernest

Dragonchilde
9322 words so far

Deadly Ernest wrote:
Dragonchilde wrote:
Deadly Ernest wrote:
I wish your subject heading was true. Checks of source code sees lists after list of Java Scripts not html code.

I'm having a lot of difficulty because you have so many non html calls to third parties it slows loading down to a crawl. Do you really NEED to use Google APIs so much, can't you do things with your own code and not have to use theirs?

The real annoying thing is I have to take time to turn off some security settings related to third party calls to access the site. This is going to greatly inhibit my participation and live activity on the site due to the trouble involved and time lost in doing so. What ever happened to people who designed web sites to work totally off their own server?

A security conscientious web designer should NOT use third party calls as that's how the bad guys hit people with trojans and virus downloads. Which is why security people tell you to disable third party cookies and third party code calls.




Deadly Earnest, if you would like to submit some feedback, please do so in the Suggestions forum. This thread is for the discussion of HTML as it relates to formatting on this forum, not third party API usage.


G'day Dragonchilde,

The is issue seems, to me, to be more of a site problem bug than a site change feedback item. On going to the Tech Help and Bug Report page this seemed the most appropriate thread to comment on.

However, since you assure me this belongs on the Feedback forum, I'll make the comment there.

Regards,

Ernest


This thread is not for general bug reports, it's specifically for the subject of the thread: HTML. If a bug report needs to be made, it needs a separate thread, not a comment on this page. Bug reports made in this thread will not be answered.

ObiKimono
94596 words so far Winner!

Have the strikes been removed?

Lousy Writer 13
51300 words so far Winner!

ObiKimono wrote:Have the strikes been removed?


Well, strike is supposed to still work... but it appears to be broken. It is in the list of items to be fixed.

tiakall
200103 words so far Winner!

Awesome, I miss strikethrough. What about <center>?

Dragonchilde
9322 words so far

Center isn't a working HTML tag here. :) Sorry! We don't have any plans to add it at this time.

bunnyhero
50202 words so far Winner!

what about BLINK and MARQUEE?

(just kidding! ;)

theoretical_cat
25489 words so far

test

They still work, just put <strike>TEXT</strike>

Anahlynn
56995 words so far Winner!

like this?

Marauders Girl
51000 words so far Winner!

Okkay for posting pictures? Are you supposed to leave the space in between the quote mark and the forward slash? Or is that space just in there in the above post to keep it from formatting and not letting people be able to see what they're actually supposed to write?

Lousy Writer 13
51300 words so far Winner!

The spaces are all there just to show the command.

Dragonchilde
9322 words so far

The space between the quotation mark and the closing slash in the IMAGE tag is indeed appropriate format. I've used ascii arrows so the tag shows exactly how you should copy it. :)

Lousy Writer 13
51300 words so far Winner!

Yeah, I think I wasn't clear enough in my response. The spaces in the opening tag are what I was referring to. Sorry about that.

bunnyhero
50202 words so far Winner!

the <b> and <i> tags aren't actually deprecated, although their use is often discouraged, because they're presentational. but they certainly aren't deprecated in any current HTML or XHTML standard as far as i know.

on the other hand, <strike> and <s> are deprecated :)

Absotively
34544 words so far
bunnyhero
50202 words so far Winner!

good to know!

now if i could only edit my previous post... ;)

Absotively
34544 words so far

I'm glad you can't. If you did, it'd look like I'm complaining about nothing. :)

While I'm nitpicking your previous post: the HTML 5 spec also gives examples of semantic uses of <b> and <i> (and <u>). So they're not strictly presentational (now), and presumably that's why they aren't deprecated.

<blink>, on the other hand, continues to be non-standard. :D

DavidConrad
9111 words so far

It was always a bit of a mistake to deprecate them. The problem is, you can't decide what's semantic in a vacuum.

If you're trying to emphasize something <i> is the wrong choice. It's presentational, not semantic. You should use <em> to indicate emphasis.

But if you're trying to italicize something because it's a book title and the Chicago Manual of Style says book titles should be set in italics, you should use <i>. That is then semantic, and <em> would be wrong, because while it commonly is shown with italics, some browser or stylesheet could be set up to show emphasis with bold text, or a larger font size, or something.

You can't decide semantic vs. non-semantic without asking, what did the author intend?

KaitTTT
30301 words so far

MUST PRACTICE

KatrinaPink
50643 words so far Winner!

Is there something comparable to Facebook's "@", which automatically creates a link to a person's profile? Or do I just use the "a href" command?

Keladryie
50152 words so far Winner!

It's just the ahref command - but that would be really nifty if we could have that! You should suggest it in the Suggestions section of the forums :)

heartsong2000
0 words so far

Ukaaay! As regards: "You can add signatures under My NaNoWriMo => Edit User Settings"

Went there. I don't see anything regarding "signatures." Am I missing something? [Aside from needing another cup of coffee....] Thanks!

Lousy Writer 13
51300 words so far Winner!

heartsong2000 wrote:
Ukaaay! As regards: "You can add signatures under My NaNoWriMo => Edit User Settings"

Went there. I don't see anything regarding "signatures." Am I missing something? [Aside from needing another cup of coffee....] Thanks!



You're not missing something... something is missing. It's a Known Issue.

Marmite&butter

Okay, testing:

http://www.nanowrimo.org

Marmite&butter

Hey, that worked!

But still a bit stuck. If I want:

http://maps.google.co.uk/maps?q=13+Rosslyn+Road+Twickenham&oe=utf-8&client=firefox-a&hnear=13+Rosslyn+Rd,+Twickenham,+Middlesex+TW1+2AR,+United+Kingdom&gl=uk&t=m&z=16&vpsrc=0

to work as a link I need to put this:

Clickable Text

around it - the "http://etc etc" replaced "Clickable Text" so

http://maps.google.co.uk/maps?q=13+Rosslyn+Road+Twickenham&oe=utf-8&client=firefox-a&hnear=13+Rosslyn+Rd,+Twickenham,+Middlesex+TW1+2AR,+United+Kingdom&gl=uk&t=m&z=16&vpsrc=0

But where do I put the "Like so" so that that is what shows in the post rather than the big long link?

I am guessing it is replaces URL (but leaves the " "s on either side). If there is a link below saying "Like so" leading to a google map then it has worked. If it is still the great long thing or the link doesn't work, someone may like to tell me what I've done wrong.

http://maps.google.co.uk/maps?q=13+Rosslyn+Road+Twickenham&oe=utf-8&client=firefox-a&hnear=13+Rosslyn+Rd,+Twickenham,+Middlesex+TW1+2AR,+United+Kingdom&gl=uk&t=m&z=16&vpsrc=0

BTW The bit about replacing URL with your own text isn't obvious in the 'Quick & Dirty' guide so clarifying it a bit would help us web incompetents.

Marmite&butter

Nope. None of it works - the links don't go to the right place. Could anyone tell me what to do. And yes, I am really stupid, so please explain it as if to a four year old.

sumerianhaze
50375 words so far Winner!


Your URL: http://www.cthuugle.com
Your text: Ia! Ia! Cthulhu fhtagn!

<a href="http://www.cthuugle.com">Ia! Ia! Cthulgu fhtagn!</a>

This will give you:

Ia! Ia! Cthulgu fhtagn!

So, that's:

Double quotes around your URL.
<a href= before it.
> after it.
Then your text to display.
The closing tag </a> at the end of your display text.

TANK Ex Mortis
15103 words so far

Is it just me or is href broken?

I write:

[a href="www.amazon.com/Deadheart-Shelters-Forrest-Armstrong/dp/1933929049/"]The Deadheart Shelters[/a]

(replace ['s with <'s), and I get a link to:

www.nanowrimo.org/en/forums/[forum name]/threads/www.amazon.com/Deadheart-Shelters-Forrest-Armstrong/dp/1933929049/.

Dragonchilde
9322 words so far

TANK Ex Mortis wrote:
Is it just me or is href broken?

I write:

[a href="www.amazon.com/Deadheart-Shelters-Forrest-Armstrong/dp/1933929049/"]The Deadheart Shelters[/a]

(replace ['s with <'s), and I get a link to:

www.nanowrimo.org/en/forums/[forum name]/threads/www.amazon.com/Deadheart-Shelters-Forrest-Armstrong/dp/1933929049/.


You need to add the http:// before the www in the amazon link. if you don't, it thinks it's a relative link, and adds the nanowrimo stuff.

TANK Ex Mortis
15103 words so far

Ah, that'd explain it. Firefox has started chopping off the http in the address bar and I didn't notice.

Bewitched.Rhapsody
50699 words so far Winner!

Umm, how do I make the quotes? O__O

Dragonchilde
9322 words so far

Bewitched.Rhapsody wrote:
Umm, how do I make the quotes? O__O


Simply click the "quote" button under the post you'd like to quote.

Bewitched.Rhapsody
50699 words so far Winner!

Huh. That's nice to know. XD I knew that quote button was there for some reason. O__O Thanks.

Erecura
50122 words so far Winner!

I used the and it's huge. Huge. Any way to fix this?

Dragonchilde
9322 words so far

Erecura wrote:
I used the and it's huge. Huge. Any way to fix this?


If the image it large, you'll have to fix that on your end; changing it in the HTML won't change the actual size of the image. The image src tag only reproduces what shows on the host. :)

Who's online

There are currently 6735 users online.