Cool! So far we've looked at each of the most used languages on the web, how to write code, how to write good code and most importantly - code that others can read. So in a sense you could say that you're ready to enter the digital jungles others have created out there in the world.
You will soon find frustration, because we haven't yet looked at a very important tool, used by all web developers - browser dev tools.
Each browser has them, I will focus on Chrome Dev Tools as a personal preference (and a choice that has stood test of time).
You probably have seen them before. Fear and anxiety probably flared up when you accidentaly opened them and probably a fear to "screw something up" ran through your mind too.
Yes folks, I am talking about pressing "F12" in Chrome. That's right, no additional stuff to download, it's been there since forever.
Now it's time to push fear aside and press "F12" while on any website.
Ok, you made it. Depending on how much you have previously tinkered around with it, it may show a different layout for you, so as the first thing that we'll do, let's reset the layout.
To reset the layout, simply have the dev tools open (via F12 if you haven't already), then press F1 (or press the three vertical dot menu and choose "Settings"), scroll to the very bottom and press "Restore defaults and reload".
Now you should see the following on the right side of your window:
So what is all this? If you take a second, you will recognize that we've dealt with all of this stuff already before!
Can you feel the initial fear slowly turn into excitement? Yep. Welcome to programming. You will feel this transition over, and over, and over again, and that's ok.
You also notice that there are tons of tabs scattered everywhere. What for? Do you need all of them? No. This type of dev tools contains almost everything you'd ever need to analyze a web page. Obviously the devs didn't want to run separate software, so they just added the tools to the browser instead. Efficient.
Since this is a programming course focusing on practicality, we will cover these tabs as we go along with learning code. So don't worry at trying to remember everything. That's not what programmers do. They remember the right tools for the right job. To learn about them, of course, you have to try them all out. Your employer will even pay you to do so (or he/she should). Once again - Welcome to the world of programming.
You probably noticed that I mentioned that we can see the source code in dev tools. You can also see the full source code in a separate tab by either pressing "CTRL+U" or right clicking and selecting "View page source" (it could be different for different browsers).
These dev tools exist for each of the modern browsers by default. They have some differences, but all serve the same goal. To help you analyze web pages and their code.
"I see all of my code in my editor, why would I need to see the source code like that?"
For now, you're writing what is known as "static pages".
Static as in - they don't change after you save them.
In that case, obviously the same thing you see in your editor, will be output to the browser. Once you start working with generated content (oh you thought that you will be the one outputting all the code? cute. ), you will realize that:
Just to give you a glimpse of how advanced it can (and should) get.