Website Development I

Course Info Class Notes Resources Student Websites

Class No. 2:

HTML Structure and More Basic Markup

To continue to explore HTML tags and attributes.

Web Programming book reading for THIS class

Web Programming book reading for NEXT class

For today’s exercise

Are there any questions from the readings?

What take-aways do you remember from our last class?

(1)  Use Microsoft Edge, not Internet Explorer

  not  

(2)  Access your pages using your personal URL

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

(3)  Tags Not Closed

Problem:  When you add a tag to your text, all of the text following that tag is formatted.

Solutions: 

(4)  File in Wrong Format After Copying Text from the PRO Manual

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.

  1. Open your file in UltraEdit.  Ignore any errors that may pop up.
  2. Click File and then Save as.
  3. Just in case you’re curious, UTF-8 stands for “Unicode Transformation Format” 8-bit format, and BOM stands for “Byte Order Mark.”

  4. Click the Save button to save your file in the new format.

Source:  MacDonald (2009), Creating a Web Site, Figure 2-11, p. 42

Important Terms

Source:  Connolly & Hoar, Fundamentals of Web Development

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

“Void” Tags  (page 8)

“Comment” Tag

More tags are listed on the HTML5 Cheat Sheets that have been handed out and in our textbook’s reading for today.

  1. Open File Explorer.  When you first open File Explorer you will be on the Home tab.  Notice that you see file names, but your don’t see file extensions because those extensions are hidden.
  2. Click View to display the drop down View options ribbon.
  3. The file extensions — the part after the dot (.) — should now appear, making it easier to determine each file’s type and to distinguish between files with the same name.
  4. Open the UltraEdit editor on your computer.  This should open a blank window that is ready for editing.
  5. Leave the editor open and click here to open the HTML5 Template (version 2) in your Microsoft Edge browser.
  6. Type CtrlU to view the source code for the page.
  7. Click anywhere in the browser window and type CtrlA to select all of the code.
  8. Type CtrlC to copy the code.
  9. Return to UltraEdit and type CtrlV to paste the code into the blank editor window.
  10. Click File at the top left of the editor window.  A dropdown menu will appear.
  11. Click Save as.  A dialog box will appear.
  12. Click File and then Save As again.  This time, change the file name to something like Exercise1.html.  As before, be sure to include .html as the file extension.
  13. You will know that you have saved the file correctly with a .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.
  14. You are now ready to begin modifying the HTML template and writing your own code to create your own web page.
  15. Replace all the text within curly brackets in the template file with appropriate text such as your own name, your initials, and the current date and time.
  16. Delete all the placeholder text between the <body> and </body> tags to get ready to add your own code.
  17. Open the PRO Manual and advance to page 4.
  18. Select the first few paragraphs by positioning your mouse to the left of the start of the text, holding down the left mouse button, and dragging to highlight the text as you see below.
  19. Return to UltraEdit and your HTML file.  Click to position your mouse between the <body> and </body> tags and type CtrlV to paste in the text you copied from the PRO Manual.
  20. Step 6:  Display your HTML file in Microsoft Edge

  21. Go to the page on our course website and click the link next to your name.  You should then see a display similar to:
  22. Step 7:  Experiment with various HTML5 tags to format your HTML file

  23. Go back to UltraEdit and add <h2> opening tags before each part of the text that should be a section title, such as:
    • What is R&D?
    • What is the purpose of R&D?
    • I have heard the term “In Processing.”  What does that mean?
    Be sure to add </h2> closing tags after each section title.  For example, the first section title should look like this:
    <h2>What is R&D?</h2>
  24. As you work, make note of the issues you run into and any questions you may have so that we can all discuss them at the beginning of our next class.
  25. Consider what’s different about your web page from what appears in the PRO Manual.  These are the things that we will address in future classes.


 


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.