glazedmacguffin: (bacichug)
Glazed MacGuffin ([personal profile] glazedmacguffin) wrote2014-11-03 01:02 pm
Entry tags:

HTML Crap


I almost never do journal entries, but I decided to do one of some of my favorite (and very simple) bits of HTML that I don't see used very often.




Lists
A lot of people know about an ordered (numbered) and unordered (bulleted) list, but not a definition list. Definition lists are great because they come indented.

Ordered list...
  1. List Item
  2. List Item
  3. List Item
  4. List Item



Unordered list...
  • List Item
  • List Item
  • List Item
  • List Item



Definition list...
Main Content
Subcontent
Main Content
Subcontent



Superscript and subscripts

Superscript makes a word appear a little higher. Subscript makes it appear a little lower. It's really handy to use if you want to add in notations- like so...

Superscript...
Word1



Subscript...
Word2



You can also make them in HTML entities (it's a way of making characters that might not be on your keyboard through a code of symbols, letters, or numbers, usually beginning with "&" and ending with ";"). You just use that set of letters in the place of where your superscript/subscript would go.

Sup¹ = ¹
Sup² = ²
Sup³ = ³
Sup⁴ = ⁴
Sup⁵ = ⁵
Sup⁶ = ⁶
Sup⁷ = ⁷
Sup⁸ = ⁸
Sup⁹ = ⁹
Sup⁰ = ⁰

Sub₁ = ₁
Sub₂ = ₂
Sub₃ = ₃
Sub₄ = ₄
Sub₅ = ₅
Sub₆ = ₆
Sub₇ = ₇
Sub₈ = ₈
Sub₉ = ₉
Sub₀ = ₀

Linking
Linking is easy enough, but there's a special sort of link that will take you a different part of a page instead of another page.

To use it, first you use these:


Wherever you put that will mark the place in the page your link will go to. Replace the "linkname" with whatever word you want to use.

Then you type your link like this:


You have to leave the "#", and the "linkname" has to match whatever word you've chosen. Don't use the word "content" it will take you back to the start of the page.




Hopefully this is helpful to anyone that doesn't waste as much time on this crap as I do.