Friday, August 17, 2012

Loads of Fun with False Tags!

Did you ever know that you can create fake tags and sometimes make them work? I've done it before and it's fun.

Basically, you can use CSS to style it. For example, if you created a simple, fake tag, tag, like <blue>, you could use CSS to make all the text of the "blue" elements have the color blue.

EXAMPLE:

The HTML code (put the body):
<blue>Some blue text.</blue>

The CSS code (put in the "style" element):
blue{color:blue;}

If you're looking to have some geek fun, you should definitely do this. I know, they're fake tags and all, and aren't valid in W3C... but you don't have to post them on the web.

I haven't tried doing very advanced tags yet, but that could change soon.

No comments:

Post a Comment

Please keep your comments appropriate.