Have you ever tought of formatting HTML with JS in stead of CSS? Why have you tought about it?
Anyway, if playing with formats is your thing, here is a small example how to achieve the following picture with JS formatting over the HTML:
The code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
<html> <head> <title>VitoshAcademy.Com</title> </head> <body> <script> var vkd = "vitoshacademy.com"; document.write("As is -> " + vkd + "<hr>") document.write("Bold -> " + vkd.bold() + "<hr>") document.write("Italic -> " + vkd.italics() + "<hr>") document.write("Fixed -> " + vkd.fixed() + "<hr>") document.write("Big -> " + vkd.big() + "<hr>") document.write("Small -> " + vkd.small() + "<hr>") document.write("Sub -> " + vkd.sub() + "<hr>") document.write("Sup -> " + vkd.sup() + "<hr>") </script> </body> </html> |
Enjoy it!