These notes are at under the Class Notes tab
Course Goal
Course Approach
Course Philosophy
Course Textbook
See the for more details.
To create a HTML page that runs on our server.
Web Programming book reading for THIS class
title
Elementmeta
Elementbody
Elements: hr, p, br, div
Web Programming book reading for NEXT class
blockquote
Elementpre
ElementIn your folders
For today’s exercise
This is the code that we will work with today. It will also be useful to you in future classes.
We will first discuss what’s here and then you’ll have the opportunity to create a web page using this code as a starting point.
This code is similar to the code in figures 1.4 and 1.5 on page 9 of your textbook, and the discussion of that code on pages 9-15 is directly relevant today’s class discussion.
1 <!DOCTYPE html> 2 <html> 3 4 <head> 5 <meta charset="utf-8"> 6 <meta name="author" content="{INSERT YOUR NAME HERE}"> 7 <meta name="description" content="{INSERT A SHORT DESCRIPTION OF YOUR PAGE HERE}" 8 <!-- 9 File: /StudentResources/CodeSamples/HTML5_Template_v2.html 10 maintained by {INSERT YOUR NAME HERE} 11 updated by {INSERT YOUR INITIALS HERE} on {INSERT DATE} at {INSERT TIME} 12 --> 13 <!-- set the text that goes in the browser tab --> 14 <title>{INSERT YOUR PAGE TITLE HERE}</title> 15 16 <!-- set the icon to use in the browser tab --> 17 <link href="images/OldManInTheMountain_16x16.ico" rel="icon" type="image/x-icon"> 18 19 <!-- additional head code will go here --> 20 </head> 21 22 <body> 23 <!-- body code goes here --> 24 25 <!-- replace the following lines with your own code or use them as templates --> 26 <h2>Insert Your Page Title Here</h2> 27 <p><em>Insert other HTML tags for your page here.</em></p> 28 </body> 29 30 </html>
Source: Connolly & Hoar, Fundamentals of Web Development
- 2nd ed., Figure 3.3, page 76, and slides for Chapter 3, slide #9
- 3rd ed., Figure 3.4, page 80
In general, every opening tag must have a corresponding closing tag, but there are exceptions to this rule.
Looking at the HTML5 Template code (please follow along with the handout)
DOCTYPE
tag that identifies type
content of the file as HTML. <html>
opening tag on line 2. This tag begins
the section that includes all the other code on the page. Note that
the </html>
closing tag is the last line of the file, line 32. head
and body
sections. We’ll talk about
those tags after looking at one important structural consideration: nesting.
Source: Connolly & Hoar, Fundamentals of Web Development
- 2nd ed., Figure 3.5, page 78, and slides for Chapter 3, slides #11 & #12
- 3rd ed., Figure 3.6, page 81
<html>
,
<head>
,
and <body>
<meta>
,
<title>
,
and <link>
<!-- ... -->
Remember: In general, every opening tag must have a corresponding closing tag, but there are exceptions to this rule.
<h1>
, <h2>
,
<h3>
,
etc. <p>...</p>
Text Formatting Tags
<em>...</em>
tag displays text in italics <strong>...</strong>
tag displays text in boldface <blockquote>...</blockquote>
tag indents a block of textThese are enough tags to get us started; we’ll explore more in our next class.
Goal: To create a web page for page 4 of the PRO Manual.
Note: I do not expect everyone to complete this entire exercise today. We will continue working on it in our next class, too.
.
) —
should now appear, making it easier to determine each file’s type and to
distinguish between files with the same name. HTML5_Template_v2.html
in your Dropbox, set the
file name to HTML5_Template_v2.html
and click the
Save button to save the raw template for future use. Be sure to include .html
as the
file extension!
Exercise1.html
. As before, be sure to
include .html
as the file extension. .html
extension because UltraEdit will now have added syntax highlighting to your
code. If you do not see syntax highlighting, look at the tab label see the
name of the file you saved. If it does not end in .html
, save the
the file again and make sure to type .html
at the end of the file name. <body>
and </body>
tags to get ready to add
your own code. <body>
and </body>
tags and type
CtrlV to paste in the text
you copied from the PRO Manual.
Exercise1.html
in the above example)
to open your file in the browser and see the result of your work. You will see
that the text you pasted in is completely unformatted and appears as a single
paragraph. <h2>
opening tags
before each part of the text that should be a section title, such as: </h2>
closing tags after each section
title. For example, the first section title should look like this:
<h2>What is R&D?</h2>
<h1>...</h1>
<h2>...</h2>
<h3>...</h3>
<p>...</p>
<blockquote>...</blockquote>
an indented text division
<div>...</div>
<strong>...<strong>
<em>...</em>
<hr>
</hr>
tag<br>
</br>
tag
This is Class No. 1. It was last modified on
Saturday, October 21, 2023 at 4:38 PM. Copyright © 2010-2024 by Jesse M. Heines. All rights reserved, but may be freely copied or excerpted for
educational purposes with credit to the author.