Chapter 6 Lab
If you want to become a programmer, you will need to study one or more languages. You have a variety of options available, including online materials, in-person classes, and study guides. While this chapter certainly didn’t teach you everything you need to know to become a programmer, you did learn some concepts and a bit about how to read and understand code. For this lab, you will look at a few different websites and see how their code was constructed.
Open the website www.youtube.com in Chrome or Edge. To view the source code in Chrome, right-click the page, and choose View Page Source. In Edge, press the F12 key to show the code. (Or, you can click the Settings And More menu—the three horizontal dots in the upper-right corner—and click F12 Developer Tools.)
Here are some questions for you:
- In what language is the page written?
- What organizational techniques do you see?
- Do you see any branching or looping logic?
- Does the page use functions at all?
- Which scripting languages are used on the home page?
- Find a string of text. Can you find where that string is on the web page?
- Can you find any instances of where a background color is set?