reading-notes

View the Project on GitHub Abu-laban/reading-notes

Introductory HTML and JavaScript

HTML pages are text documents.

Because there have been several versions of HTML, each web page should begin with a DOCTYPE declaration to tell a browser which version of HTML the page is using

  1. HTML 5

    <!DOCTYPE html>

  2. HTML 4

    <!DOCTYPE html PUBLIC “-//W3C//DTD HTML 4.01 Transitional//EN” “http://www.w3.org/TR/html4/loose.dtd”>

  3. Transitional XHTML 1.0

    <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/ xhtml1-transitional.dtd”>

  4. Strict XHTML 1.0

    <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Strict//EN” “http://www.w3.org/TR/xhtml1/DTD/ xhtml1-strict.dtd”>

  5. XML Declaration

    <?xml version=”1.0” ?>

** The new HTML5 elements indicate the purpose of different parts of a web page and help to describe its structure. **

**It’s important to understand who your target audience is, why they would come to your site, what information they want to find and when they are likely to return **

The ABC of Programming

** A script is a series of instructions that a computer can follow to achieve a goal. **

** 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. **

Start with the big picture of what you want to achieve, and break that down into smaller steps.

  1. DEFINE THE GOAL

    First, you need to define the task you want to achieve.

  2. DESIGN THE SCRIPT

    To design a script you split the goal out into a series of tasks. This can be represented using a flowchart.

  3. CODE EACH STEP

    Each of the steps needs to be written in a programming language that the compu ter understands.

B

C