Lesson 1 Notes - Introduction to the Internet
Lesson 1 Notes - Introduction to the Internet
Lesson 1 Notes - Introduction to the Internet
Throughout Lessons 1 to 7 you will be expanding your knowledge of HTML codes through a series of practice exercises.
These exercises, used in conjunction with the assignments, will culminate in a complete web site.
For this first HTML practice exercise, you will be responsible for using the web authoring techniques and the HTML codes
that follow.
For this course, you will design a web site from the ground up. Although there are many editors, programs, and software
packages available to build web sites, we will do it the "hard" way. That is, for you to be able to demonstrate a rigorous
understanding of the fundamentals of web site design, you must complete the HTML practice exercises and graded
assignments. This experience will allow you to become confident and competent in web page design. Programming without
the use of web page authoring tools will provide for a greater understanding and control of your web page. This way, when
you come across HTML code in the future, you will know how it works and what it means. HTML code is a necessary feature
of any Computer Science course.
There are only two pieces of software necessary to make a web page. They are:
You don't even need to be on the Internet to create a web page. Web pages can be created and tested on any
computer! Many company's web pages are placed on an Intranet (or even a local computer in the office). An Intranet can be
thought of as a set of documents that use the Internet structures, but which are accessed only locally, that is, say, from the
confines of a company’s building.
Web pages are written in a computer language known as HTML. This stands for HyperText Markup Language. A text editor is
used to create HTML documents, and a web browser is used to view the completed web page.
A web site is a collection of web pages in a free-form database structure. This simply means the creator of the web site
doesn't have to follow a strict set of rules when creating their web site. The web site can be a very dynamic entity, growing
and collapsing, as the creator sees fit. It is this ease of expression that has led to the vast explosion of web sites on the
Internet and namely the WWW.
To make things as easy as possible for you and me, you MUST follow the following rules when writing your own web pages.
All file names will be done in lowercase letters, with no special characters except underscore, and will conform to the
following parameters:
no filenames will be over 8 characters in length and b. all HTML documents will end in .html (NOT .htm)
All graphics names will be done in lowercase letters, with no special characters except underscore, and will conform to
the following parameters:
no filenames will be over 8 characters in length and
all graphics will end in either .jpg, .jpeg,.png, or .gif (these are the supported image file types)
Please see this course site for sample pages and useful information.
REMINDER: The use of web page authoring tools is NOT allowed because it does NOT meet the objectives of this
course and assignments will NOT be accepted in this format! (Resulting in ZERO marks being awarded!)
Hyper - means you can make jumps within your document, to another document on your system, or to a document
anywhere on the Internet.
text - means you must save your web pages as "text". Text files do not have any word processing characters in them. HTML
editors and Windows Notepad automatically make text files. Word-processors must be "told" to save files as text.
Markup Language - means that you will be adding "tags" to the text file to tell the browser how it should display the text.
Tags are enclosed in < >, and usually exist in pairs.
E. What is HTML?
HTML: The set of markup symbols or codes placed in a file intended for display on a web browser page.
The World Wide Web Consortium (http://w3c.org) sets the standards for HTML and its related languages.
HTML Elements
Each individual markup code is referred to as an element or tag.
Each tag has a purpose.
Tags are enclosed in angle brackets, "<" and ">" symbols.
Most tags come in pairs, an opening tag and a closing tag.
What is XHTML?
The newest version of HTML
eXtensible HyperText Markup Language.
XHTML uses:
the elements and attributes of HTML
the syntax of XML (eXtensible Markup Language).
XML Syntax
An XML document must be well-formed.
Use lowercase
Use opening and closing tags
<body> </body>
Close stand-alone tag with special syntax
<hr />
F. HTML in Action
To see an example of HTML in action, go to my sample site found under the Class Resources section of this web site. Then,
to see the HTML underlying this page, click on View Source.
Just as the essays you write for University classes follow an outline (title, introductory paragraph, body paragraphs,
conclusion, bibliography), so does an HTML document. These HTML tags are useful to computer scientists so that they have
total control over the style and appearance of their web pages. If you choose to use a web page authoring tool in the future,
you will be able to understand the codes generated by these tools.
<head>
…head section info goes here
</head>
<body>
…body section info goes here
</body>
</html>
Body Section
Contains text and elements that display in the Web page document
This outline (shell) is given to you in the Class Resources Web page template (template.html)
The Heading Element – creates different size headings for web pages.
Example:
<h1>Heading Level 1</h1>
The Paragraph element – groups sentences and sections of text together. Configures a blank line above and below the
paragraph.
The Break element - causes the next element or text to display on a new line. This tag closes itself with its own closing
slash. This is known as a stand-alone tag.
Example: <blockquote>
…text goes here…
</blockquote>
Steps:
Download the template.html file provided in the Class Resources. Use this as a starting point for all web pages that
you will create.
Open the template.html file using a text editor such as NotePad (Windows) or TextEdit (MAC). The program Brackets
(both Windows and MAC) is my preferred editor and is available (see Class Resources).
Enter the missing information shown below to complete your first web page.
Save the file with a new file name such as firstpage.html.
Open the file using your favourite web browser such as Firefox or Safari. Use File - Open Page/File - Choose File -
Open. This will display your newly created web page.
Don't forget to save it as a text file with the proper extension (.html) or it won’t display properly in the browser.
Now it is a matter of practice. RECAP: Create/Edit in one program (NotePad for example) and view in a web browser to
see your results (Firefox for example).
Next Step
If you can meet the objectives stated at the beginning of Lesson 1, you are ready to proceed to the next lesson. Keep in mind
the weekly schedule recommended in the course syllabus. Please post to the Discussion area of this course web site any
questions or comments related to the lesson. Only emergency and private messages should be sent through email to the
instructor.
Assignment
Please visit the Assignments portion of the course for details on Assignment #1.