Interpreting HTML Markup

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 didnt 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 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 menuthe three horizontal dots in the upper-right cornerand click F12 Developer Tools.)

Here are some questions for you:

  1. In what language is the page written?

JavaScript  

  1. What organizational techniques do you see?
  2. Do you see any branching or looping logic?
  3. Does the page use functions at all?
  4. Which scripting languages are used on the home page?
  5. Find a string of text. Can you find where that string is on the web page?
  6. Can you find any instances of where a background color is set?