what is the doctype

What does the DOCTYPE do in HTML?

What is the DOCTYPE?  When coding in HTML you will see this really weird looking line up there at the top.  It usually looks like this: <!DOCTYPE html> Simply enough, this line tells the browser what version of HTML is being used to create the …

Read More

console log vs console dir

JavaScript console.log vs console.dir

So what is the difference between console.log and console.dir in JavaScript?  Well, let’s take a look!  If we were to take this code: <!DOCTYPE html> <html> <head> <meta charset=”utf-8″> <title>console.log vs console.dir</title> </head> <body> <script> console.log(“Why, hello!”); console.dir(“Why, hello!”); </script> </body> </html> then put it …

Read More