Cool HTML tricks

hadoukin's picture
hadou takes you on a learning extravaganza as they explain some HTML tricks



Cool HTML tricks


_______________________________
I've noticed many of you guys trying to learn how to code, but most of you skip right to CSS instead of learning the basics of HTML. You have to learn HTML first man, it's the basics of coding. The building blocks, if you can't HTML you can't CSS. But yo you are also missing out on some cool HTML tricks, but do not fret I am here to learn you a thing. I ended up writing a lot, and I'll add to this whenever.

If you want me to add something let me know, I will add on to this.
so far I have basic HTML tags, Tables, Hovers, and Img codes. I've been wanting to do this for awhile sadlsdkjf if there are any mistakes tell meee
_______________________________
T I P S;

◆ CLOSE YOUR TAGS, if you start a <h1> tag cLOSE THAT SUCKER with a </h1>. This goes for almost everything but images, horizontal lines [and more but those are the most common]. If you don't you'll break the page !

◆ Don't make up tags, it won't work! You can't make up a tag like.. <PURPLE TEXT> that just doesn't work, make sure the tag your using is a real HTML or BBCode tag, like h1, font, or b.

◆ Codes with brackets [ like this ] are BCCODE, not HTML. HTML uses < lesser than or greater than signs >. TEFc supports both, though HTML gives you 7098560948645 options while BBCode gives you like 6




Basic HTML tags


_______________________________
Just a small collection of some HTML tags and what they do before we get started;


<h1> </h1> -- this is a header tag, they vary depending on the website. Use it to make bigger text. There are also h2, h3, and h4 tags which do the same with varying sizes.


<b> </b> -- this is the bold tag, it makes your text thicker see?


<i> </i> -- this is the italics tag, it makes your tags.. well italic, though TEFc's version actually changes the font too, see, It's called 'georgia' .

* extra special thing * -- [ i ] [ /i ] is the same tag usually but here it is actually different from the HTML version since it doesn't change the font. It just italicizes it.


<u> </u> -- this is the underline tag, it adds lines under your text, like that.


<strike> </strike> -- this is the strike tag, it adds a line through your text, it's like crossing it out i suppose.


<center> </center> -- this is the center tag, it centers anything inside of it.


<left> </left> -- this is the left tag, it throws everything to the left. THIS IS THE DEFAULT ALIGNMENT OF EVERYTHING.


<right> </right> -- this is the right tag, it shoves everything inside it to the right.


<div> </div> -- the 'box' tag, it makes a box that you can make pretty with css or html.

for more check out this link; http://endlessforest.org/community/filter/tips




Tables


_______________________________

Tables are my personal favorite code, I use it in ALMOST EVERY SINGLE biography I've made here. It's good for organization, and keeping things evenly aligned.

Here's an example of a basic table looks like on TEFc;

ONETWO
THREEEFOUUUUR

See how everything is perfectly aligned and shit? It's nice. TEFc does default an annoying white line above the table which you may or may not like. That can be removed with CSS but we ain't talking about that.

You can use tables to align divs next to each other, above or below each other. You can add 'styles' to them exactly like a div.

Now the code for that table is here; http://pastebin.com/SEE5Hhv5

BUT lemme explain what each tag does. First you start with the <table> tag, it's self explanatory it just means that this is gonna be a table. Then you start a ROW, which is the <tr> tag, this keeps things beside each other so if you only add one set of TR you will only have one ROW on your table. The table I made has two rows, and so it has two sets of TR tags. Next comes the <td> tag, which is the separate boxes. My table has four sets of TD tags in it for four sets of boxes.

I love tables, if you have any questions lemme know.



Hovers


_______________________________

Yeah you thought hovers were only for fancy smacy CSS, well you were wrong. You can add an hover to your plain text or link when ever and where ever.

Plain Text
<span title="hovering texty poo">hover me bby</span>
ex. hover me bby

Isn't that fun. You have to hover it for a few seconds though before it pops up. You can use this for whatever your wildest dreams desire.

URLs or Links
<a href="url here" title="hoveringinging">TEXt</a>
Hover this hot link wow

The link is useful if you wanna tell people where the link is taking them, or what it's for before the click it. Maybe even a warning. There are many wondrous things you could use it for.



Image Codes


_______________________________

HTML has many little image tricks, and all of them can be combined. But let's just explain them one by one and then do that at the end.
_______________________________

Inserting an Image
You could use the BBCode version which is easier and shorter, or you could use the HTML way which allows for so much more.

The basic HTML img tags are;

<img src="URL HERE">

This tag does not require a closing tag to follow it, the image URL is inserted in the code it self.
I'll use this URL to a pixel I drew awhile back;

http://fc05.deviantart.net/fs71/f/2014/289/3/9/lil__bouncing_deer_by_mothbone-d831u68.gif

When you put it in the code, it turns into the full image!


WHOA

It's as easy as that! But wait there's more, you can ADD to the code to do a whole bunch of things like... resize your image, put hover text on your image, align it and even add styles like a DIV.
_______________________________

Resizing your Image
Now we know how to insert images but how do you change it's size?
It's easy, you just add Height="#" or Width="#" into the code, before the ending '>'
It will look like this;

<img src="URL HERE" height="#" width="#">

You won't keep the #'s in there, instead you'll enter a number for how big you want the image to be in pixels [px] or percent [%]. If you want to use the percent realize it will change depending on the viewers screen size so I tend to not use it.

I'll show you an example with the image I posted above.
I'm going to insert the height '20px' and width '20px' to make it smaller.

aWE it's so small. But what if I put... 200px in for both?!

It's big now! And very blurry.. ehe.

I know you're probably interested in seeing it like 200px high and 20px wide so for laughs;

amaZinG
_______________________________

Aligning your Image
Now that you can resize your image, you may want to align it! Aligning it will make it go left, right or centered. It defults to left on TEFc so if you want the image to go right , you'll need to add in an extra code like this align="right".
It will look like this;

<img src="URL HERE" align="right">

Let's test it with my pixel deer, and align it to the right.


hey look it's over there now!
But what about center? Can we try that?

.. Oh? I must have done something wrong??
NOPE for some reason TEFc doesn't work with align center in images. If you want to center an image you'll have to do it the old fashion way <center> </center>.
_______________________________

Adding hover text
This is my favorite HTML trick, and I use it a LOT. If you check my signature, try hovering it and you'll see that I use it there ;v;
You may be surprised since the CSS text hovering code is a bit of a hassle but this is not!
It's as easy as the rest of the image codes, you just insert this;

title="whatever you want to hover"

It will look like this in the full code;

<img src="URL HERE" title="whatever you want to hover">

Now let's see how that works on the example I've been using


Did you hover over it? It may take a few seconds to pop up but it's there! Now how much can you write in it?
As much as you want!


_______________________________

Putting it ALL together
So, now that you know how to do all that separately let's add all of them together to see what happens. To do this just keep adding each section to the code, it ain't hard! It'll look like this;

<img src="URL HERE" height="#" width="#" align="right" title="whatever you want to hover">



I resized it to 150px 150px, aligned it to the right and added a hover!

Isn't that neat??

Any questions on it, lEMME KNOW




contact me if you need help privately;

email;
skype; katycow.



ZakuroToshino's picture

/sits/

/sits/
Flyleaf's picture

Cool !! Sits and learns

Cool !!
Sits and learns Smiling
Avatar @ Sluggs Siggy @ Amazegenalo
Bouncing Fly by Mary13
hadoukin's picture

;v;

;v;

literally dropped my grapes

literally dropped my grapes as i read this
Poppyflower's picture

all aboard hadou's wild ride

all aboard hadou's wild ride
~Poppy~
Profile picture by ahimsa ♥


Pixel Wis by squeegie~

ONETWOTHREEFOUR

ONETWO
THREEFOUR

hadoukin's picture

ahah im glad you guys are

ahah im glad you guys are enjoying my EDUCATIONAL HTML journey

i'l make more of these if theyre useful

annnnnd, try not to test these codes in comments, make a test blog so if you mess up you dont break my whole blog baha.



Oops I double posted sorry

Oops I double posted sorry Smiling

/

/
Reyy's picture

Important:

hadoukin's picture

i had no idea that link

i had no idea that link existed whoa, thanks!
Kamaya's picture

Thank you for this post. But

Thank you for this post.
But what I'd like to know is: how do you do these rectangles with your text in it?
SapphireSkye's picture

Yesssss. I'm to lazy to read

Yesssss. I'm to lazy to read it all now though.
Track
Avatar by Mary13!
hadoukin's picture

@ Kamaya, I think you're

@ Kamaya, I think you're talking about a 'div' i suggest going on over http://endlessforest.org/community/link-collection-art-design-amp-coding here and lurking around through these links.
Reyy's picture

hadoukin - I dont think a lot

hadoukin -
I dont think a lot of people do tbh.
Kamaya's picture

Thank you, hadoukin !

Thank you, hadoukin ! Smiling
Laiia's picture

Track, thanks for all these

Track, thanks for all these tips !

Avatar & signature by Shimmyshimmy. ♥
thelittleraven's picture

Bumping and tracking this

Bumping and tracking this because this is super duper cool. Thank you! Is there any way to do the image title hover on plain text? I've seen it done before but I don't know the code for it.
_lioness_'s picture

useful info..

useful info..
Mest
Shelby
hadoukin's picture

;v; glad you find it

;v; glad you find it useful

@thelittleraven

there are two ways to that, both require css.
The way I do it is this;
CSS
a.info { position:relative; z-index:24; text-decoration:none }
a.info:hover { z-index:25; } a.info span { display: none; } 
a.info:hover span { display:block; position:absolute; background:#000; color: #600000;}

HTML
<a class="info">Hover me<span>hover text</a>

Example;
Hover mehover text whoa


I hope that's what you were talking about lasjd
thelittleraven's picture

Ahh, that's the CSS I already

Ahh, that's the CSS I already use for most hovers. I mean in the way that the title hover looks? I've seen it look like that over just text and not an image. But if you don't know the code for that, it's fine!
hadoukin's picture

OH OHHHH, yes you can do that

OH OHHHH, yes you can do that I should add this later on but MIDTERMS sigh

OK there are also two ways to do this, with a span or with a link.

Span
<span title="hovering texty poo">hover me bby</span>

ex. hover me bby

Links
<a href="" title="hoveringinging">TEXt</a>

ex. TEXt
this may be useful when you want to explain what a link is or something idk this one has no link thou
thelittleraven's picture

Ahhhh bless you hadou you are

Ahhhh bless you hadou you are a saviour. Thanks a ton, and good luck with those midterms!

(also poke me on skype later because I still need to work with you on updated CSSings for Ryff)
xaii's picture

khi

khi

by FoxOfTheStars ♥
LooksForDoves's picture

Hadou, you're a life saver.

Hadou, you're a life saver. Thank you for this! Eye

hadoukin's picture

:> Glad this is useful I'll

:>
Glad this is useful I'll be updating it soon & posting a short blog about design standards soon !
PeacockBird's picture

+

+
by Sheökî~
Thais's picture

this is so helpful, thanks!

this is so helpful, thanks! <3
Display pic by crabbycrown ♥
Thais's picture

double post lol

double post lol
Display pic by crabbycrown ♥
Snowylittlekitty's picture

Vury helpful .O. I'm learning

Vury helpful .O.
I'm learning how to code in class <3 this might help me in a lot of ways
Snowylittlekitty's picture

-ignore this extra comment my

-ignore this extra comment my phone spit out-
hadoukin's picture

I updated a few things and

I updated a few things and added hovers ; v;
I hope this stuff actually helps you guys ovo/
oqu's picture

oh, really cool. thank you)

oh, really cool. thank you)

Track this! Very helpful

Track this! Very helpful
tigerart27's picture

Keeping this for ref

Keeping this for ref
tigerart27's picture

Double response wtf

Double response wtf
crabbycrown's picture

bless u

bless u


crabbycrown#3207

crabbycrown's picture

also double reply lol, TiG

also double reply lol, TiG CURSED THE COMMENTS


crabbycrown#3207

rabbanim's picture

:>

:>

Magnificent art by 7FinalGirl8 (Hagal)

Track! This is very useful :3

Track! This is very useful :3
koshi's picture

!

!