Post 35 - A new beginning (sort of)

09 Jan 2023

New room in the path, “How Websites Work”. Also, day 41 of the streak.

Two major components make up a website:

  1. Front End (Client-Side) - the way your browser renders a website
  2. Back End (Server-Side) - server that processes your request and returns a response

HTML

Elements/tags are building blocks of HTML pages and tells browser how to display content. Structure from the code snippet:

Elements also contain <button>, <img>, etc.

Tags can contain attributes such as the class attribute to style the element, i.e. `<p class="bold-text">`, or the src attribute to specify location of images ``. Elements can have multiple attributes, space delimited.

Elements can also have an id attribute, i.e. `<p id="example">`, which is unique to element. Element IDs are used for styling and to identify it by JavaScript.

The Questions

Play with the HTML and answer the questions.