# How websites work

Task 1: How websites work

* What term best describes the component of a web application rendered by your browser?
  * Front end

Task 2: HTML

* One of the images on the cat website is broken - fix it, and the image will reveal the hidden text answer!
  * htmlhero
* Add a dog image to the page by adding another img tag (\<img>) on line 11. The dog image location is img/dog-1.png. What is the text in the dog image?
  * doghtml

Task 3: JavaScript

* Click the "View Site" button on this task. On the right-hand side, add JavaScript that changes the demo element's content to "Hack the Planet"
  * JSISFUN

Task 4: Sensitive Data Exposure

* View the website on [this link](https://static-labs.tryhackme.cloud/sites/howwebsiteswork/html_data_exposure/). What is the password hidden in the source code?
  * testpasswd

Task 5: HTML Injection

* View the website on this task and inject HTML so that a malicious link to <http://hacker.com> is shown.
  * HTML\_INJ3CTION

<figure><img src="https://3402520177-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6s691pQpzN41rNo5Bip4%2Fuploads%2FE8okXFicmP3J4c9xmv5G%2Fimage.png?alt=media&#x26;token=09c8ae4a-64d1-4ce3-900b-1b5405363ef4" alt=""><figcaption></figcaption></figure>
