Beyond the canvas… The Browser

web browser is an application for accessing websites. When a user requests a web page from a particular website, the browser retrieves its files from a web server and then displays the page on the user's screen. (source: https://en.wikipedia.org/wiki/Web_browser)

Those files typically include:

  1. HTML(Hypertext Markup Language)
  2. CSS (Cascading Style Sheet)
  3. JS (Javascript)
  4. Images, video, audio, fonts etc.

The web editor

So far we’ve been writing javascript code in the web editor using the p5.js library and running the script without know what’s going on under the hood. If we click on the arrow next to our code, the left tab will appear with two other files: index.html and style.css.

Screenshot 2024-10-21 at 12.49.50 PM.png


HTML(Hypertext Markup Language)

<html>
	<body>
		<h1> Title of page </h1>
		<p> This is a paragraph </p>
		<img src="apple.jpg"> </img>
	</body>
</html>