HTML Codes for those unfamiliar


(˙pǝsɹǝʌǝɹ uǝǝq sɐɥ ʎʇıʌɐɹƃ ʃɐuosɹǝd ʎW) #1

For those unfamiliar with html, here are some useful codes for your threads.
HTML Text Formatting Elements
All codes have <> around them. Anywhere i use [ ], those are used in place of <>, to show code.

I’m going to keep updating this, with things I (or others) think is a necessary need to know forum code.

a
You can simply paste the link, and it’ll make it a hyperlink.
if you want need your link to have a title, you use "[a href=your link]witty title[/a]

defines a hyperlink.


b

Defines bold text


em

Defines emphasized text

i

Defines italic text

small Defines smaller text


img
[img] inserts look like this. i recommend using a image uploader like tinypic for your screenshots and whatnot, or you can simply paste the img url to not have to write it out constantly.

[a href=“http://tinypic.com?ref=2jc94pi” target="_blank"]img src=“http://i61.tinypic.com/2jc94pi.jpg” border=“0” alt=“Image and video hosting by TinyPic”]

which makes this
Image and video hosting by TinyPic


strong Defines important text


sub Defines subscripted text


sup Defines superscripted text


ins Defines inserted text


del Defines deleted text


mark Defines marked/highlighted text


p

Defines a paragraph


UL/OL
Defines an ordered or unordered list. numbers or bullets. also, you need “LI” list item,around all the items to be bulleted.

An unordered list:

  • Krieg
  • Claptrap
  • Sir. Hammerlock

An ordered list:

  1. Tiny Tina
  2. Moxxi
  3. Brick

There’s a lot more, but these are the ones you’ll use most often in a forum.


(Enemy of Thunder) #2

Any idea how to change font attributes in HTML5?


(˙pǝsɹǝʌǝɹ uǝǝq sɐɥ ʎʇıʌɐɹƃ ʃɐuosɹǝd ʎW) #3

its unsupported in html5. otherwise font size=“3”, and font face


(Enemy of Thunder) #4

Damn, that means I need to learn Markdown


(˙pǝsɹǝʌǝɹ uǝǝq sɐɥ ʎʇıʌɐɹƃ ʃɐuosɹǝd ʎW) #5

you can try css


(˙pǝsɹǝʌǝɹ uǝǝq sɐɥ ʎʇıʌɐɹƃ ʃɐuosɹǝd ʎW) #6

This is comic sans. nope, doesnt work.

coincidentally, the forum itself uses FontAwesome


(?) #7

FontAwesome? I got a kick out of that.


(˙pǝsɹǝʌǝɹ uǝǝq sɐɥ ʎʇıʌɐɹƃ ʃɐuosɹǝd ʎW) #8

added more to the list.


(The Magnificent) #9

Is it bad that it irks me every time someone recommends b and em over < span style=“font-weight:bold;” > and < span style=“font-style:italic;” >?

Web developer habits, etc.

Also, yah, Markdown works.

EDIT: ahh, that’d be because span styles don’t work. Darn. One of these days I’ll be able to write a web page as a post reply! One of these days!


(AKA Scruffy the Janitor) #10

I was just starting to get used to the old forums, now I’ve got to get used to this new style. Yippee


(GREASE FOR SALE, GREASY FOR SALE!) #11

This.

Also, on old forums, we had [COLOR]


(˙pǝsɹǝʌǝɹ uǝǝq sɐɥ ʎʇıʌɐɹƃ ʃɐuosɹǝd ʎW) #12

Yeah, fonts don’t work at all. Idk markdown, have to look into it.

Edit: I’ll be adding some markdown as I learn it. Doesn’t look to hard.


(Qmark) #13

Yes.
<b>whatever</b> or the new-sexy <strong>whatever</strong> do exactly the same thing as < span style=“font-weight:bold;” >, but with far less characters, and without being a nightmare to maintain when someone decides bolded text should be purple or something.


(˙pǝsɹǝʌǝɹ uǝǝq sɐɥ ʎʇıʌɐɹƃ ʃɐuosɹǝd ʎW) #14

This irks me. I’ve tried span, font, p style, no nothing gives color. I’m guessing they haven’t given it a tag. I know markdown doesn’t support it but CSS does…


(The Magnificent) #15

Except that you can’t insert those values into a CSS stylesheet, and there’s nothing at all bad about “maintaining” it if you know basic web development.

I’m not saying there’s no place for them, but there’s a reason most people delegate CSS to external files and reference them when developing a professional page. “bold” isn’t the only value of “font-weight”. “italic” isn’t the only value of “font-style” :stuck_out_tongue:

I just said it irks me. It’s a personal thing. But don’t go all high and mighty about things being “a nightmare to maintain”, please.

If you want a nightmare to maintain, that’s Markdown anyhow :smiley:


(˙pǝsɹǝʌǝɹ uǝǝq sɐɥ ʎʇıʌɐɹƃ ʃɐuosɹǝd ʎW) #16

There’s been some serious effort to stanfardize markdown though.


(Qmark) #17

If you need dynamic styling for some reason, by all means do so.
Handcoding font-weight:bold, especially in an inline style, just seems hacky.