code-201-reading-notes

Introductory HTML and JavaScript

HTML5 Layout

For a long time, web page authors used <div> elements to group together related elemets on the page, but this method was kinda complicated, so they startd using the new HTMLS elements that provide a clearer code compared to the old method. HTML5 elements help to describe the stucture of web pages so the majority of the websites started using HTML5.

There are several HTML5 elements, such as:

and I will clarify two of them:

**extra information that you should know: **

The ABC of programming

Before you learn how to read and write the JavaScript language itself, you need to become familiar with some key concepts in computer programming and they are three sections:

  1. What is a script and how do I create one ?

script is a series of instructions that a computer can follow to achieve a goal. It’s like a manual er a recibe that you follow to make or cook something, and the browser may use different parts of the script depinding on how the user interacts with the web page.

To write a script, you need to first state your goal and then list the tasks that need to be completed in order to achieve it.

  1. How do computers fit in with the world around them?

Computers create models of the world using data, these models use objects to represent physical things, objectts can have:

web browsers use the HTML to create a model of the web page, and to make web pages interactive, you write code that uses the browsers’s model of the web page.

  1. How do I write a script for a web page?