/post

Other tags you can use in your posts

Posted by adrengski on Thursday, December 8th, 2011
Tagged as: tips


Aside from these buttons you see above the text editor, there are more tags that you can use in appropriate circumstances when you click on that HTML button. Some of these enables you to show code snippets as it is, allows you to make subscripts or superscripts, or make texts bigger or smaller.

•Displaying text as it is: <pre></pre>

<pre>Some text here...      Some more text here.</pre>

You see that? Wrapping texts around the <pre></pre> tag enables you to display text as it was written. This could be useful for displaying code snippets, formatted poetry, or even song lyrics with all the chords and stuff intact.

It would display even the tab, any space as it is. The codes above would produce something like this:

Some text here...	Some more text here.

Sorry if this is confusing, my <pre> tag is formatted to appear like that. You can try it out instead to see what I mean. You can also use <code></code> by the way.


•Making Superscripts: <sup></sup>

2.3443435345 x 10<sup>34</sup>

This one is pretty straight forward. Just wrap the text you want to turn into a superscript with the <sup></sup> tags and it would appear slightly smaller and higher than your normal texts.

The codes above would produce something like this:

2.3443435345 x 1034


•Making Subscripts: <sub></sub>

C<sub>6</sub>H<sub>12</sub>O<sub>6</sub>

Like the superscript, this one, too, is dully straight forward. Just wrap the text you want to turn into a subscript with the <sub></sub> tags and it would appear slightly smaller and lower than your normal texts. This would useful for displaying chemical formulas and mathematical variables. 

The codes above would produce something like this:

C6H12O6


•Turning them Big/Small: <big></big> and <small></small>

<big>This sentence is bigger than the next sentence.</big> <small>This sentence is smaller than the previous one</small>

This probably wouldn’t be that new to you. Wrapping texts around <big></big> would make it bigger than normal text; Wrapping texts around <small></small> would make it smaller than normal text. You can also use this multiple times, making the text either bigger or smaller. Just wrap the text around the tags twice.

The codes above would produce something like this:

This sentence is bigger than the next sentence. This sentence is smaller than the previous one


•Dividing Horizons: <hr />

<hr />

This code produces something like these horizontal lines every after topics. This could be useful in separating thoughts, topics in one post. Now, you can stop using tons of dashes or underscores to separate stuff.

So far, those are the tags you might need to know. There are more of course, like <blockquote>, <b></b>, <strike>, <h1>, <h2>, <h3> and so forth, but they’re all up there so I wouldn’t bother tackling them one by one.


3 notes | Comments

Comment

blog comments powered by Disqus

Notes

  1. tutobx posted this
/ask

Questions! Questions!


Before asking a question, make sure to check the FAQs page or the Answers page first incase it's already answered there. If it isn't then ask away!

All questions/TAs, anon or not, will be published on the Answers page so check it if it's already there. The post will be tagged under your URL , too, so tracking your URLs would be a nice way to notify you.

Also note that I may not be able to answer questions ASAP since unfortunately, I also have this evil stuff called "Real life" and it requires me to do things like "Working" and "Socializing". Rest assured though, that I will be answering all questions whenever I go online and if there's any.

DONATE! On a related note, You could also increase the chance of getting answered immediately by Donating! You see, if you donate, that would mean more moolah. If there's moolah around, I don't have to work that much. And if I don't have to work that much, that would mean more time in answering your queries! I mean, that's the only thing that's keeping me away from here anyway. So yeah, a buck wouldn't hurt, right?


Scroll to top