In this tutorial, we will learn how to specify color values in CSS, and develop an understanding of the CSS color models like rgb, rgba, hsl and hex color codes. Once you know how to specify the colors, the same color values can be used everywhere in CSS, whether you are specifying text color, background color, or whatever else.
The simplest, oldest way to specify color in CSS is to use the color keywords. These are specific strings that represent particular color values. For example, look at the following code:
Whether you’re a computer science veteran, or just want to dip your toes into the fantastic world of algorithms, this book is for you. Being able to explain complex ideas in simple words is the hallmark of mastery of a subject, and Brian Christian and Tom Griffiths prove every bit of theirs in this book.
Algorithms to Live By takes you on a journey of elev...
How to use Google Colaboratory for your Data Science Projects
This is a short guide to using Google Colaboratory for your CommonLounge projects. It's a free research tool for machine learning education and research, works right here in-browser, and it requires no setup to use!
It's now time to implement some of the things you learned so far. Suppose you want to make a personal website for yourself. For now, you will take the first step and just set up the project with an HTML and a CSS file, and make the home page display your name and style it a bit so that it looks like this:
Just the first step towards your own personal site!
So far, we have learnt a lot without actually writing HTML and CSS on our own computers. You may be wondering that while executing code right here on CommonLounge was great for learning, real developers seem to write code on their own systems. This is where this tutorial comes in! You will step up your game and learn to run HTML and CSS code on your own computer.
What softwares do I need?
The best part about learning HTML and CSS is that you don't need to install any complex software! All you need is a modern web browser like Chrome or Firefox, and a text editor like Atom, VS Code, Sublime Text 2 and so on. In fact, it's likely that you already have one or both of these already installed!
Let's look a quick look:
The Browser: If you don't already have Chrome or Firefox, install one of them on your computer by foll...
Event Emitters play a very important role in the Node.js ecosystem. The EventEmitter is a module that facilitates communication/interaction between objects in Node. EventEmitter is at the core of Node asynchronous event-driven architecture. Many of Node’s built-in modules inherit from EventEmitter including prominent frameworks like Express.js.
The concept is quite simple: emitter objects emit named events that cause previously registered listeners to be called. So, an emitter object basically has two main features:
Emitting name events.
Registering and unregistering listener functions.
It’s kind of like a pub/sub or observer design pattern (though not exactly).