Computer Science 318


Fundamentals of Web Design

Lab 02 Reverse Engineering


Goal

Learn

Phrase Elements - are used to indicate that a block of text has structural meaning.

Experiment Try adding the strong, mark, sup, and sub tags to a word(s) in the paragraph below.

HTML

<p>Lorem ipsum dolor sit amet, <em>consectetur</em> adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>

Preview

Practice

Today you will use the images of web pages and content given below, and will turn them into 4 different HTML files. This is known as reverse engineering.

Hint:

Open GitHub Desktop (you may need to download the program again if the computers get wiped.)

Couple of things to check in GitHub Desktop.

With your cs-318 repository selected, Click open in Visual Studio code.

Create a new folder called lab02

Create four new files called index.html, things-in-reverse.html, palindromes.html, opposites.html in the lab02 folder

index.html

This HTML file will contain the following tags:

list items <li>.
2 meta tags <meta>.
body <body>.
main <main>.
head <head>.
header <header>.
heading 1 <h1>.
heading 2 <h2>.
navigation <nav>.
anchors <a>.
html <html>.
ordered lists <ol>.
title <title>.
doctype <DOCTYPE html>

Content: Reverse Things in Reverse Palindromes Opposites Adjective opposite or contrary to a previous or normal condition acting, operating, or arranged in a manner contrary to the usual so made that the part which normally prints in color appears white against a colored background Verb to turn completely about in position or direction to turn upside down to cause to take an opposite point of view Noun something directly contrary to something else an act or instance of reversing the back part of something

Lab 2 Index Page

things-in-reverse.html

This HTML file contains the following tags:

heading 3 <h3>.
image <img> (with alt tags).
title <title>.
heading 1 <h1>.
body <body>.
main <main>.
html <html>.
meta <meta>.
anchors <a>.
header <header>.
head <head>.
heading 2 <h2>.
navigation <nav>.
doctype <DOCTYPE html>.

Content:

Reverse Things in Reverse Palindromes Opposites Gifs of Reverse An orange unpeeling alt="An orange unpeeling" Dr. Grant Becomes Unamazed alt="Dr. Grant puts his glasses back on" Reverse Zoom Camera Effect alt="Reverse zoom camera effect from Jaws"

Files Images:

Lab 2 things in reverse page

palindromes.html

This HTML file contains the following elements:

unordered lists <ul>.
main <main>.
body <body>.
head <head>.
title <title>.
meta <meta>.
heading 2 <h2>.
image <img> (with alt tags).
paragraphs <p>.
heading 3 <h3>.
heading 1 <h1>.
anchors <a>.
list items <li>.
html <html>.
header <header>.
navigation <nav>.
doctype <DOCTYPE html>.

Content:

Reverse Things in Reverse Palindromes Opposites alt="Cat that looks like a taco" Palindromes Palindromes date back at least to 79 AD, as a palindrome was found as a graffito at Herculaneum, in a city buried by ash in that year. This palindrome, called Sator Square, consists of a sentence written in Latin: "Sator Arepo Tenet Opera Rotas" ("The sower Arepo holds with effort the wheels"). It is remarkable for the fact that the first letters of each word form the first word, the second letters form the second word, and so forth. Hence, it can be arranged into a word square that reads in four different ways: horizontally or vertically from either top left to bottom right or bottom right to top left. As such, they can be referred to as palindromatic. The palindromic Latin riddle "In girum imus nocte et consumimur igni" ("we go in a circle at night and are consumed by fire") describes the behavior of moths. It is likely that this palindrome is from medieval rather than ancient times. The second word, borrowed from Greek, should properly be spelled gyrum. Famous Palindromes Taco cat. Never odd or even. A man, a plan, a canal - Panama. Doc, note: I dissent. A fast never prevents a fatness. I diet on cod. T. Eliot, top bard, notes putrid tang emanating, is sad; I'd assign it a name: gnat dirt upset on drab pot toilet. Palindrome Words Redivider Civic Radar Level Kayak Sentences or Phrases A man, a plan, a canal - Panama Do geese see God? Was it a car or a cat I saw? Go hang a salami, I'm a lasagna hog.

Image Files:

Tacocat

Lab 2 Palindromes

Opposites.html

This HTML file contains the following tags:

phrase elements

title <title>.
heading 1 <h1>.
body <body>.
main <main>.
html <html>.
meta <meta>.
anchors <a>.
header <header>.
head <head>.
paragraph <p>.
heading 2 <h2>.
navigation <nav>.
doctype <!DOCTYPE html>.

Content:

Reverse Things in Reverse Palindromes Opposites Opposites "Opposites are not contradictory but complimentary." Big vs. Little High vs. Low Bright vs. Dark Hot vs. Cold Near vs. Far Heavy vs. Light

Lab 2 Opposites

Lab 2 Final

Final Steps

Validate your HTML.

Now look at GitHub Desktop. You should see all of your files listed out in the left column.

GitHub Desktop files listed

Now you are going to commit your changes.

With all of the files checked. Fill out the Summary field in the bottom left and then click Commit to main.
Committing is staging the files, so they can be pushed to the repository hosted at GitHub.

GitHub Desktop Summary field.

Now you want to push your changes to the Repository. Now if you access the repository from another computer Lab02 will be there. After you push in the top right of the nav it should say "Fetch Origin" instead of "Push Origin"

GitHub Push Origin

Your are Done with Lab02

Are you someone who needs to double check that it worked? If you want to make sure the push was successful click on the "View on GitHub" button from GitHub Desktop. It will open up your repository in the browser. From there you should be able to see all of your files.

...What if I need to make a change after pushing?

So let's say you have already pushed but noticed an error. No worries, this is easy to fix.

In visual studio code make any changes you need to. Once you are done making corrections. Save.

Go back to GitHub Desktop. You should see your changes to the documents listed there.

GitHub fixing an error.

Fill out the Summary field again. I suggest saying what you fixed. For example: "Fixed paragraph error on Sea-Jellies"

Click "Commit to main"

Click "Push Origin" and you are done.

On the next page you will drag and drop your Lab2 folder (unzipped) into the box on the Github form.

Github Drag files box..
Once your files have finished loading you will see them listed out.

Github files uploaded list

Fill out the field under Commit Changes with "Lab2". Then click Commit Changes.

Now your repository should show Lab2. If you click on Lab2 you will see all of your files. If they are all there you are done with the lab.

Github Lab2 uploaded to repository