To continue to explore HTML tags and attributes.
Web Programming book reading for THIS class
blockquote
Elementpre
ElementWeb Programming book reading for NEXT class
span
and div
ElementsFor today’s exercise
Are there any questions from the readings?
What take-aways do you remember from our last class?
not
For example, the text in your address bar should read:
http://cssdweb.edu/SKaminski/My_first_page.html
not
file:///D:/cssd.local/D/Dropboxes/Website%20Development%20I/Students_2023-04/SKaminski142567/My_first_page.html
Problem: When you add a tag to your text, all of the text following that tag is formatted.
Solutions:
Examples:
<h2>...</h2>
<p>...</p>
<p>...<strong>...</strong>...</p>
<p>...<strong><em>...</strong></em>...</p>
Problem: You see strange characters on your web page like this:
I have heard the term �In Processing.� What does that mean?
Solution: Your file needs to be converted to UTF-8 format.
Just in case you’re curious, UTF-8 stands for “Unicode Transformation Format” 8-bit format, and BOM stands for “Byte Order Mark.”
Source: MacDonald (2009), Creating a Web Site, Figure 2-11, p. 42
Important Terms
Source: Connolly & Hoar, Fundamentals of Web Development
- 2nd ed., Figure 3.4, page 77, and slides for Chapter 3, slide #14
- 3rd ed., Figure 3.5, page 81
Goal: To complete creating a web page for pages 4 and 5 of the PRO Manual.
Note: This is the same exercise that we did in our last class, so just continue from where you left off. If you completed the exercise, review your work with one of the instructors to discuss ways that it might be improved or enhanced. In addition, take a look at Section 2.19 of our textbook, “character references,” and experiment with the special characters described there.
Here are tags that you might experiment with if you haven’t already
“Container” Tags
<h1>
...</h1> =
a level 1 heading<h2>
...</h2> =
a level 2 heading<h3>
...</h3> =
a level 3 heading<h4>
...</h4> =
a level 4 heading<h5>
...</h5> =
a level 5 heading<h6>
...</h6> =
a level 6 heading<p>
...</p> =
a paragraph<div>
...</div> =
a section division<blockquote>
...</blockquote> =
an indented
paragraph<center>
...</center> =
centered text<em>
...</em> =
emphasized (italicized)
text<strong>
...</strong> =
boldface text<mark>
...</mark> =
highlighted text<sup>
...</sup> =
superscripted text<sub>
...</sub> =
subscripted text<code>
...</code> =
monotype
text<pre>
...</pre> =
preformatted section of
monotype
text“Void” Tags (page 8)
<br> =
a line break
<hr> =
a horizontal line <br>
and <hr>
tags are
exceptions to the rule that all opening tags must be closed. There is
no </br>
or </hr>
tag, so it’s OK to
use <br>
and <hr>
on their own.“Comment” Tag
<!--
...--> =
a comment or documentation that is not
displayed in the browserMore tags are listed on the HTML5 Cheat Sheets that have been handed out and in our textbook’s reading for today.
.
) —
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. 2. 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.