CiTi · Computer Coding · Year One · Catch-Up

Catch-Up Guide: Ground Zero to MySite

HTML, a first look at CSS, SFTP, and the start of WebDNA, in five days

The 5-Day Plan

About 10 hours total. Each day: watch the short videos, skim the linked pages, then build. The videos are the quick version. The W3Schools and WebDNA links are where you look things up later.

DayTopicYou finish with
1The web, SFTP with Cyberduck, first pageA page live on the server
2HTML: text, lists, links, imagesTwo linked pages
3Starting CSS: selectors, box model, columnsA styled two-column site
4WebDNA: date, time, includesShared header, nav, footer
5Text variables, then put it all togetherA finished mini site
Your directory: your teacher gives you your own directory on the server when you start. Type your site path (that directory plus catchup/, starting and ending with /) into the box at the top of this page. Every example below that shows a path then fills in your own.
You will need: Cyberduck, Sublime Text, Chrome, your SFTP login from your teacher, and one photo. Your answers and checkmarks on this page save in this browser only, so use the same browser each day.
Stuck for more than 10 minutes? Write down what you tried and what you saw, then ask. Screenshots help. Most problems are a wrong path or a missing closing tag.
The Workflow Loop read this first, you will use it every day

You will do this hundreds of times. Learn it today and the rest is easy. Your files live on the server. You do not keep a copy on your desktop. You edit the server's file, and Cyberduck handles the trip back and forth.

1Find it in Cyberduck

Connect with your bookmark and open your site folder. For a new file, use the File menu and choose New File. Name it in lowercase with no spaces.

2Open it in Sublime

Right-click the file, choose Edit With, then Sublime Text. Sublime opens with the file's contents.

3Make one change

Type in Sublime. Small changes are easier to fix than big ones.

4Save

Press Cmd+S (Mac) or Ctrl+S (Windows). The first time, Cyberduck may ask what to do. Choose to upload. After that, every save goes to the server by itself.

5Refresh the browser

Switch to the browser tab with your live address. Press Cmd+R (Mac) or Ctrl+R (Windows). You should see your change.

If the page does not change

  • Did you save? Sublime shows a dot on the tab when a file is not saved.
  • Hard refresh. Press Cmd+Shift+R (Mac) or Ctrl+Shift+R (Windows). Browsers sometimes hold on to the old copy.
  • Are you on the live address? A file opened from your desktop is not the live page, and WebDNA tags will not run there.
  • Did you edit the right file? Check the Sublime tab name and which folder it came from. Two files named index.html in different folders are different pages.
  • Check Cyberduck. Look at the file's modified time. If it did not update, the save did not reach the server. Save again.
Three rules: always edit through Cyberduck, always test on the live address, and change one thing at a time.
Day 1 The Web, SFTP, and Your First Page about 2 hours

Goal: By the end of today you can connect to the server, edit a file there with Sublime, and see your change in a browser at its own web address.

Video 1How a website gets to your screenabout 1 min
Key points from this video
  • Your computer is the client. The server is a computer that is always on and shares files.
  • A URL is the address of a file on a server.
  • A file on your computer is private until you upload it to the server.
Video 2Connect with Cyberduckabout 1 min
Key points from this video
  • SFTP is a secure way to move files to a server.
  • You need a host, a port, a username, and a password.
  • Save a bookmark so you can reconnect in one click. Then open the directory your teacher gave you.
Video 3Publish your first pageabout 1 min
Key points from this video
  • Open your site folder, then File menu, New File.
  • Right-click the file, Edit With, Sublime Text. Save with Cmd+S and Cyberduck sends it to the server.
  • The loop is edit, save, refresh the browser.

Read and bookmark

Do it

  1. Get your login. Ask your teacher for the SFTP host, port, username, password, and your remote folder. Write them in the box below. You will use them all year. Your teacher also gives you your own directory on the server.
  2. Make a Cyberduck bookmark. Open Cyberduck, click Open Connection, choose SFTP (SSH File Transfer Protocol), and fill in the server, port, username, and password. Save it as a bookmark so you can reconnect in one click.
  3. Connect and look around. Double-click your bookmark. Open the directory your teacher gave you. Use the File menu, choose New Folder, and make a folder inside it named catchup (lowercase, no spaces). This is your site folder. Everything you build goes in it.
  4. Make your first file in Cyberduck. Open your catchup folder. In the File menu choose New File and name it index.html.
  5. Edit it in Sublime. Right-click index.html, choose Edit With, then Sublime Text. Type the starter page below. Save with Cmd+S (Mac) or Ctrl+S (Windows). Cyberduck sends the saved file to the server for you.
  6. View it live. Switch to your browser and open your page at its web address. Take a screenshot and keep it.
  7. Run the loop three times. Go back to Sublime, change the heading, save, switch to the browser, and refresh. Do it again with the paragraph. This loop (see The Workflow Loop) is how you will work all year.
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>My First Page</title> </head> <body> <h1>Hello, world</h1> <p>This page is live on the internet.</p> </body> </html>

My connection info

Protocol
Host
Port
Username
My remote folder
My live address
Do not write your password in this box. Keep it in your head or in your phone, never in a shared file.

Checkpoint

Day 2 HTML Basics about 2 hours

Goal: You can build a real multi-element page by hand: headings, paragraphs, lists, links, and an image, then publish a second page that links back to the first.

Video 4Anatomy of an HTML pageabout 1 min
Key points from this video
  • Tags come in pairs: an opening tag and a closing tag.
  • Every page has html, head, and body. The title lives in the head.
  • The body is what people see.
Video 5Headings, paragraphs, and listsabout 1 min
Key points from this video
  • h1 is the main heading. Use h2 and h3 for smaller sections.
  • p holds a paragraph of text.
  • ul makes bullets and ol makes numbers. Each item is an li.
Video 6Links and imagesabout 1 min
Key points from this video
  • a href sends the visitor to another page.
  • img src shows a picture. alt describes it in words.
  • A relative path starts from the page you are on. ../ goes up one folder.

Read and bookmark

Do it

  1. Build an About Me page. Change your index.html so it has an <h1> with your name, two <p> paragraphs about you, and an <h2> called Favorites followed by a bulleted list of three things (<ul> and <li>).
  2. Add a numbered list. Add an <ol> with three steps for something you know how to do.
  3. Add an image. Make an images folder in Cyberduck inside catchup. Upload one photo or picture, named in lowercase with no spaces. Show it with <img src="images/yourfile.jpg" alt="describe it">.
  4. Make a second page. Create a folder about with its own index.html in it. Put a heading and two sentences on it.
  5. Link both ways. On the home page, add <a href="about/index.html">About</a>. On the About page, link back with href="../index.html". Click both links on the live site.
  6. Break it on purpose. Delete one closing tag, save, and look at what the browser does. Fix it. Then misspell the image file name and see the broken image. Fix it.
<h1>Jordan Diaz</h1> <p>I like building things.</p> <h2>Favorites</h2> <ul> <li>Music</li> <li>Basketball</li> <li>Pizza</li> </ul> <img src="images/me.jpg" alt="Me at the lake"> <p><a href="about/index.html">About this site</a></p>
File and folder names: all lowercase, underscores instead of spaces, never capital letters. The server is picky, and Me.JPG is not the same file as me.jpg.

Checkpoint

Day 3 Starting CSS about 2 hours

Goal: Your pages stop looking like plain text. You link one external style sheet and use it to set colors, fonts, spacing, and a two-column layout.

Video 7What CSS is and how to attach itabout 1 min
Key points from this video
  • HTML says what things are. CSS says how they look.
  • A rule is a selector, then braces holding property: value; pairs.
  • One link line in the head attaches the style sheet.
Video 8Selectors, colors, and fontsabout 1 min
Key points from this video
  • An element selector styles every tag of that kind.
  • A class selector starts with a dot and styles anything with that class.
  • Colors can be names, hex codes, or rgb.
Video 9The box modelabout 1 min
Key points from this video
  • Every element is a box: content, padding, border, margin.
  • Padding is space inside the border. Margin is space outside it.
  • Use Inspect to see the boxes on any page.
Video 10Two columns with col-left and col-rightabout 1 min
Key points from this video
  • display: flex on the wrapper puts the columns side by side.
  • flex: 0 0 30% fixes the left column's width. flex: 1 lets the right column take the rest.
  • gap puts space between them.

Read and bookmark

Do it

  1. Make the style sheet. In Cyberduck, create a css folder inside catchup. Make a file in it named style.css (File menu, New File) and open it with Edit With, Sublime Text.
  2. Link it from your pages. Add the link line below inside the <head> of both of your pages. The about page needs ../css/style.css because it lives one folder deeper.
  3. Style the page. Copy the starter CSS below into style.css. Save, refresh, and watch the page change. Then change three values (a color, a font size, a margin) to make it yours.
  4. Make a class. Add class="highlight" to one paragraph and write a .highlight rule that gives it a background color and padding.
  5. Build two columns with flexbox. Wrap two blocks of content as shown below. One column gets your photo, the other your text. Style .col-left and .col-right in your CSS.
  6. Use Inspect. Right-click your page, choose Inspect, click an element, and change its color or padding right in the panel. Anything you like, copy into style.css (the panel changes are temporary).
  7. Break it on purpose. Remove a semicolon from one rule and see what stops working. Then change the href of the link to a wrong folder and see the page lose all its style.

Link line (inside the head of every page)

<link rel="stylesheet" href="css/style.css">

Starter style.css

body { font-family: Arial, sans-serif; background-color: #f4f1ea; color: #222222; margin: 0; padding: 20px; } h1 { color: #1a2335; border-bottom: 3px solid #c8a84b; padding-bottom: 8px; } a { color: #1a5fb4; } .highlight { background-color: #fff3c4; padding: 10px; }

Two columns: HTML

<div class="columns"> <div class="col-left"> <img src="images/me.jpg" alt="Me at the lake"> </div> <div class="col-right"> <h2>About me</h2> <p>Text goes here.</p> </div> </div>

Two columns: CSS

.columns { display: flex; gap: 20px; } .col-left { flex: 0 0 30%; } .col-right { flex: 1; } .col-left img { width: 100%; }
display: flex on the wrapper puts its children side by side. flex: 0 0 30% means the left column keeps a width of 30% and never grows or shrinks. flex: 1 means the right column takes whatever space is left. gap is the space between them. Break it on purpose: delete display: flex, save, refresh, and watch the columns stack.

Checkpoint

Day 4 WebDNA: Date, Time, and Includes about 2 hours

Goal: You meet the server-side language that runs the rest of the year. A footer that updates its own year, a live clock, and one set of header, nav, and footer files shared by every page.

Video 11What WebDNA isabout 1 min
Key points from this video
  • HTML uses angle brackets. WebDNA uses square brackets.
  • WebDNA runs on the server first, then the browser gets plain HTML.
  • Always test through your live address, never from your desktop.
Video 12[date] and [time]about 1 min
Key points from this video
  • [date format=...] and [time format=...] print the server's date and time.
  • Each % code is one piece: %Y year, %B month name, %I hour, %M minute.
  • Case matters: %M is minutes and %m is the month.
Video 13[include]: one header, nav, and footerabout 1 min
Key points from this video
  • An include pastes one file into a page.
  • Header, nav, and footer live in includes/ and every page uses them.
  • Use the full path starting with / so it works from any folder.

Read and bookmark

HTML (browser)

Angle brackets. The browser reads it.

<p>Hello</p>
WebDNA (server)

Square brackets. The server runs it, then sends the result to the browser.

[raw][date format=%Y]
WebDNA only works through your live web address. If you open the file from your desktop or from Sublime's preview, no server runs it and you will see the raw tag as plain text.

Date and time format codes

%A Monday · %a Mon · %B October · %b Oct · %m month 01-12 · %d day 01-31 · %Y 2026 · %y 26 · %j day of year · %I hour 01-12 · %H hour 00-23 · %M minute · %S second · %p AM/PM. Capital and lowercase letters mean different things: %M is minutes, %m is the month.

Do it

  1. Format lab. Put each tag below on your home page, one per line. Predict first what it will show, then save and check the live page. [date format=%B %d, %Y] [date format=%a %m/%d] [time format=%I:%M %p] [date format=%A, day %j of %Y]
  2. Break it. Change %M to %m in the time tag and see what it prints. Then misspell [date] as [dat]. Fix both.
  3. Make three include files. In Cyberduck create an includes folder inside catchup. Make header.inc, nav.inc, and footer.inc in it.
  4. Move the shared code. Put the top of your page (doctype, head, title, link to CSS, opening body) in header.inc. Put your links in nav.inc. Put the footer and the closing tags in footer.inc. Use a self-updating year in the footer.
  5. Slim down both pages. Each page file should now hold only three include lines and the content for that page. Use your full site path in the include lines (see below) and in every link, image, and CSS path inside the include files.
  6. Prove it works. Add a third link to nav.inc only. Check that it shows up on both pages. That is the whole point of includes: one edit, every page.

header.inc

<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>My Catch-Up Site</title> <link rel="stylesheet" href="/citi/coding/2027/1/YOURINITS/catchup/css/style.css"> </head> <body>

nav.inc

<nav> <a href="/citi/coding/2027/1/YOURINITS/catchup/index.html">Home</a> <a href="/citi/coding/2027/1/YOURINITS/catchup/about/index.html">About</a> </nav>

footer.inc

<footer> <p>&copy; [date format=%Y] Jordan Diaz. Page loaded [time format=%I:%M %p] on [date format=%A, %B %d].</p> </footer> </body> </html>

A page file (index.html)

[include file=/citi/coding/2027/1/YOURINITS/catchup/includes/header.inc] [include file=/citi/coding/2027/1/YOURINITS/catchup/includes/nav.inc] <h1>Welcome</h1> <p>Content for this page only.</p> [include file=/citi/coding/2027/1/YOURINITS/catchup/includes/footer.inc]
Why the full path? An include file is pasted into whatever page loads it, so a short path like css/style.css works on the home page and breaks on about/index.html. A path that starts with / works everywhere. Type your own site path in the box at the top of this page and every example updates for you.

Checkpoint

Day 5 Variables, and Put It All Together about 2 hours

Goal: You store each setting once with a text variable, then finish with a small site that uses everything from the week and matches what the class built.

Video 14[text] variables and vars.incabout 1 min
Key points from this video
  • [text]name=value[/text] stores a value and prints nothing.
  • [name] uses it anywhere after it is set.
  • Put your settings in vars.inc and include it first on every page.

Read and bookmark

1. Set it

A [text] tag holds a name and a value. It prints nothing.

[text]sitenamevar=Jordan's Site[/text]
2. Use it

Put the name in square brackets. The server swaps in the value.

<h1>[sitenamevar]</h1>

Class rule: every variable name is lowercase and ends in var (pathvar, sitenamevar). That way you can always tell your own variables apart from WebDNA's tags. No spaces around the =.

Do it

  1. Make includes/vars.inc. Use your own folder path for pathvar. Everything else is built from it. Comments use [!]...[/!] and the server skips them.
  2. Include it first on every page. Use the full path to vars.inc on line 1 (the variable does not exist until this file has been read).
  3. Switch to your variables. Change your other include lines to [include file=[incvar]header.inc]. Change the CSS link in header.inc to href="[cssvar]style.css" and the nav links to start with [pathvar].
  4. Give each page its own title. Set [text]titlevar=Home[/text] just before the header include on each page and use [sitenamevar] | [titlevar] inside the <title> in header.inc.
  5. Rebrand test. Change sitenamevar in vars.inc only. Check both pages and both browser tabs. One edit, whole site.
  6. Final check. Add a third page (photos/index.html with an image), link it from nav.inc, and use the checklist below. Then you are caught up with the class.

includes/vars.inc

[!] settings: change a value here and every page updates [/!] [!] pathvar is the base. The others are built from it, so it comes first. [/!] [text]pathvar=/citi/coding/2027/1/YOURINITS/catchup/[/text] [text]cssvar=[pathvar]css/[/text] [text]incvar=[pathvar]includes/[/text] [text]imgvar=[pathvar]images/[/text] [!] site info [/!] [text]sitenamevar=Jordan's Catch-Up Site[/text] [text]authorvar=Jordan Diaz[/text]

A page file (index.html)

[include file=/citi/coding/2027/1/YOURINITS/catchup/includes/vars.inc] [text]titlevar=Home[/text] [include file=[incvar]header.inc] [include file=[incvar]nav.inc] <h1>[sitenamevar]</h1> <p>Content for this page only.</p> [include file=[incvar]footer.inc]

The finished folder

catchup/ index.html about/index.html photos/index.html css/style.css images/me.jpg includes/vars.inc includes/header.inc includes/nav.inc includes/footer.inc

Common mistakes

  • You see the raw tag on the page. You opened the file from your computer instead of the live address, or the tag name is misspelled.
  • The page is blank or half there. A path is wrong in an include line. Check the full path, the folder name, and the file name, all lowercase.
  • Style is missing on one page only. That page's CSS path is relative. Switch to [cssvar] or a full path.
  • A variable shows as literal text, like [pathvar]. vars.inc has not been included yet on that page, or it is included after the line that uses the variable.
  • Stray space. One extra space at the end of pathvar is copied into every path built from it.
  • Variables only last for one page. That is why every page includes vars.inc first.

Final checklist

When everything above works, send your teacher your live address. You are ready to join the class.

Quick Reference

HTML tags
TagWhat it does
<h1>..<h6>headings, biggest to smallest
<p>paragraph
<ul> <ol> <li>bulleted list, numbered list, item
<a href="">link
<img src="" alt="">image
<div>a box to group content
<link rel="stylesheet">attach a CSS file
CSS you used
PropertyWhat it does
colortext color
background-colorfill color
font-family, font-sizefont and size
marginspace outside the box
paddingspace inside the box
borderline around the box
display: flex, flex, gapside-by-side columns
WebDNA you used
TagWhat it does
[date format=%B %d, %Y]today's date, in the format you choose
[time format=%I:%M %p]the server's time
[include file=/full/path/file.inc]paste another file here
[text]namevar=value[/text]set a variable (prints nothing)
[namevar]use a variable
[!] note [/!]comment, the server skips it

My Notes

Questions, reminders, code you want to keep.