Entries by jay

CSS Margin and Padding

Margin is the spacing between elements, like heading and paragraphs. Browsers all have their defaults. For heading and paragraphs, the default is the font size for both margin-top and margin-bottom. Centering with Margin Setting the left and right margin to auto on an element will let you center it. You can also do that in […]

Dell’s Technical Support Sucks (XPS 13)

I have bought a used Dell XPS 13 a couple months ago. I had Dell laptops in the past and I was very happy with their home support. I was traveling at the time and they have even managed to replace the motherboard of my laptop in China while on the road. After that I […]

Node global vs. window Object

You know how when you declare a variable with var in a browser, it will be added to the window object. That’s not the case with the global object. In node, every file is a module. If you want to use a variable outside a module, you have to export it and then import it. […]

The Difference Between Git and Github

Back when I started learning web development, I had no idea what Git and Github was. Later I learned that Git is a version control system. I had a vague idea what that is. But what is Github then? And how are they different? Git – A Version Control System Git is a free and […]

A Look at Javascript Nodelist vs. HTMLCollection vs. DOMTokenList

Working with the DOM using vanilla Javascript has never been easier. You no longer need JQuery to select parts of a website. Still, there are a few things you should know before you can confidently select and modify HTML elements. The Nodelist When you use document.querySelector, you get back a Nodelist. A Nodelist is simply […]

Center a Table with CSS

At first sight, centering a table with CSS seems like an easy task. You just apply text-align: center; on the container and it’s all set. Or is it? I have set up a simple table for demonstration purposes and added the text-align property to the body. body { text-align: center; } The result? It’s still […]

http Statuses Explained

1×× Informational 100’s are informational codes indicating that the request is continuing. 100 Continue: The server received part of the request and wants the rest before sending the response. 101 Switching Protocols: The server received the request, undestands it, and willing to coply with it, but it will update the protocol. 102 Processing: The server […]

Who Controls The Internet?

Before we can answer who is in control of the Internet, it’s good to know a little about the history and fundamentals of it. The first successful message over the Internet was sent in 1969 from UCLA to Stanford. They tried to send the word “login.” They were able to send “lo” and then the […]