reading-notes

Reading notes for Code Fellows!


Project maintained by William-Moreno Hosted on GitHub Pages — Theme by mattgraham

Introductory HTML and JavaScript


How People Access the Web

Most people access websites using software called web browsers.

Some people who are visually impaired use programs called screen readers to access websites. These programs read out the contents of a computer screen to the user.

People access websites on an increasing number of devices including, but not limited to:

Web Servers

Web servers are specialized computers that host websites. They are optimized to send out web pages and are constantly connected to the internet. They are most commonly maintained by web hosting companies.

Websites

All websites use HTML (HyperText Markup Language) and CSS (Cascading Style Sheets). Many websites also incorporate JavaScript to give them functionality or make them dynamic. Content management systems, blogging software and e-commerce platforms routinely make use of additional elements/technologies in their websites.

All websites have a unique IP address associated with them and the server they are located on. Domain Name System (DNS) servers are repositories for all of these addresses and they function similarly to phone book listings to direct browsers to the correct location of the website..

Structure

HTML is the language which describes and gives web pages structure. It is made up of characters called HTML elements inside of angled brackets called tags. These usually come in pairs: an opening and a closing tag. Each element tells the browser something about the structure of the information contained within. Tags act like containers for the text or other information located inside of them.

<h1>This would be a heading</h1>

would indicate to the browser to display:

This would be a heading

on the web page.

<h1> is the opening tag

</h1> is the closing tag

Most elements can have one or more attributes such as class or id which provide additional information about their contents. Attributes consist of two parts: a name and a value separated by an = sign. for instance:

<p lang="en-us">Paragraph in English</p>

Basic HTML Structure of a Web Page

<!DOCTYPE html>
  <html>
    <head>
      <title>The Title of the Page</title>
    </head>
    <body>
      <h1>A Heading in the Body of the Page</h1>
      <p>Anything in the body is displayed in the main browser window</p>
    </body>
  </html>
To learn HTML, you need to know what tags are available for you to use, what they do, and where they can go.

Extra Markup

<-- Comment Here -->
Character CODE Description
< &lt; Less-than sign
> &gt; Greater-than sign
& &amp; Ampersand
" &quot; Quotation Mark
© &copy; Copyright symbol
® &reg; Registered trademark
&trade; Trademark
÷ &divide; Division sign

HTML5 Layout

HTML5 introduced a new set of elements that help define the stucture of a web page. Where traditional layouts typically consisted of multiple <div> elements, the use of these new semantic tags or elements provides clearer code. They also work better with screen readers utilized by users with visual impairments. <div> is still used, but not nearly as much now.

The new HTML5 elemanets indicate the purpose of different parts of a web page and help to describe its structure. Examples are:

Process & Design

When creating a new web page, it is important to understand who our target audience is. Why will they come to our site? What information are the looking for? How often are they likely to return?

Popular design tools used in the planning websites are site mapping and wireframing.

Design is about communication. Visual hierarchy helps users understand what we are trying to tell them. We can differentiate between separate information using size, color and styling. Grouping and similarity can help simplify the information we present.

JavaScript

JavaScript can make our web pages more interactive. It does this in four ways:

Using JavaScript we can implement things such as slideshows, forms, filtering data or reload parts of the web page.

JavaScript: Key Concepts in Computer Programming

  1. What is a script and how do we create one?
  2. How do computers fit in with the world around them?
  3. How do we write a script for a web page?

What is a script and how do we create one?

How do computers fit in with the world around them?

How do we write a script for a web page?

Back to Main