Javascript: What is it and where does it go?

12:00 PM

For pretty much my whole blogging journey I've been working on coding designs for my sites. CSS was my favorite and HTML is bearable, but Javascript... Oh, the dreaded Javascript...

I could never get Javascript down. I couldn't write my own codes or even make the ones I got off the web work. And I never understood why. So I've created this post today to help those of you who may be struggling as well.

What is it?

Javascipt is the most popular programming language. Like, ever. It can change HTML content, attributes, CSS styles, and much, much more. It makes web pages interactive and can be used in non-web based environments, such as PDFs and desktop widgets. [1]

If you'd like to learn more about Javascript, like who created it and the many things it can do, head on over here. :)

The standard Javascript code:

<script type='text/javascript'>
Your JavaScript coding here
The code above is very important when it comes to adding your Javascript into your Blogger template. If you just slap your code into your template without using the script above, it won't be read properly and could do some terrifying things to your blog. So be careful when implementing Javascript and always make sure you have this code surrounding your hard work.

How to implement it:

Add your code before the </head> tag

How to get there

  1. Choose the blog you'd like to add your Javascript to.
  2. Choose Template then click "Edit HTML".
  3. Paste your code above the </head> tag (if you can't find it, use Ctrl + F).

Add it into a HTML/Javascript gadget

Take your code, head on down to layout, and paste into the gadget. Make sure to save your changes!

As you can see, these steps are actually very simple, and don't require much effort at all. If you have any comments, questions or concerns, feel free to contact me. I love hearing from you guys. :)

xx Nicole Rose

You Might Also Like

0 Sweet Notes

All comments I receive are cherished for many hours after reading them. Thank you for taking the time to type something to me.

xx Nicole Rose