CiTi · Computer Coding · Year One · Catch-Up
HTML, a first look at CSS, SFTP, and the start of WebDNA, in five days
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.
| Day | Topic | You finish with |
|---|---|---|
| 1 | The web, SFTP with Cyberduck, first page | A page live on the server |
| 2 | HTML: text, lists, links, images | Two linked pages |
| 3 | Starting CSS: selectors, box model, columns | A styled two-column site |
| 4 | WebDNA: date, time, includes | Shared header, nav, footer |
| 5 | Text variables, then put it all together | A finished mini site |
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 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.
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.
Right-click the file, choose Edit With, then Sublime Text. Sublime opens with the file's contents.
Type in Sublime. Small changes are easier to fix than big ones.
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.
Switch to the browser tab with your live address. Press Cmd+R (Mac) or Ctrl+R (Windows). You should see your change.
index.html in different folders are different pages.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.
This video is not uploaded yet. Read the key points below and use the links.
This video is not uploaded yet. Read the key points below and use the links.
This video is not uploaded yet. Read the key points below and use the links.
catchup (lowercase, no spaces). This is your site folder. Everything you build goes in it.catchup folder. In the File menu choose New File and name it index.html.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.| Protocol | |
| Host | |
| Port | |
| Username | |
| My remote folder | |
| My live address |
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.
This video is not uploaded yet. Read the key points below and use the links.
This video is not uploaded yet. Read the key points below and use the links.
This video is not uploaded yet. Read the key points below and use the links.
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>).<ol> with three steps for something you know how to do.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">.about with its own index.html in it. Put a heading and two sentences on it.<a href="about/index.html">About</a>. On the About page, link back with href="../index.html". Click both links on the live site.Me.JPG is not the same file as me.jpg.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.
This video is not uploaded yet. Read the key points below and use the links.
This video is not uploaded yet. Read the key points below and use the links.
This video is not uploaded yet. Read the key points below and use the links.
This video is not uploaded yet. Read the key points below and use the links.
css folder inside catchup. Make a file in it named style.css (File menu, New File) and open it with Edit With, Sublime Text.<head> of both of your pages. The about page needs ../css/style.css because it lives one folder deeper.style.css. Save, refresh, and watch the page change. Then change three values (a color, a font size, a margin) to make it yours.class="highlight" to one paragraph and write a .highlight rule that gives it a background color and padding..col-left and .col-right in your CSS.style.css (the panel changes are temporary).href of the link to a wrong folder and see the page lose all its style.Link line (inside the head of every page)
Starter style.css
Two columns: HTML
Two columns: CSS
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.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.
This video is not uploaded yet. Read the key points below and use the links.
This video is not uploaded yet. Read the key points below and use the links.
This video is not uploaded yet. Read the key points below and use the links.
Angle brackets. The browser reads it.
Square brackets. The server runs it, then sends the result to the browser.
%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.
[date format=%B %d, %Y] [date format=%a %m/%d] [time format=%I:%M %p] [date format=%A, day %j of %Y]%M to %m in the time tag and see what it prints. Then misspell [date] as [dat]. Fix both.includes folder inside catchup. Make header.inc, nav.inc, and footer.inc in it.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.nav.inc only. Check that it shows up on both pages. That is the whole point of includes: one edit, every page.header.inc
nav.inc
footer.inc
A page file (index.html)
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.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.
This video is not uploaded yet. Read the key points below and use the links.
A [text] tag holds a name and a value. It prints nothing.
Put the name in square brackets. The server swaps in the value.
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 =.
includes/vars.inc. Use your own folder path for pathvar. Everything else is built from it. Comments use [!]...[/!] and the server skips them.vars.inc on line 1 (the variable does not exist until this file has been read).[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].[text]titlevar=Home[/text] just before the header include on each page and use [sitenamevar] | [titlevar] inside the <title> in header.inc.sitenamevar in vars.inc only. Check both pages and both browser tabs. One edit, whole site.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
A page file (index.html)
The finished folder
[cssvar] or a full path.vars.inc has not been included yet on that page, or it is included after the line that uses the variable.pathvar is copied into every path built from it.vars.inc first.When everything above works, send your teacher your live address. You are ready to join the class.
| Tag | What 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 |
| Property | What it does |
|---|---|
| color | text color |
| background-color | fill color |
| font-family, font-size | font and size |
| margin | space outside the box |
| padding | space inside the box |
| border | line around the box |
| display: flex, flex, gap | side-by-side columns |
| Tag | What 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 |
Questions, reminders, code you want to keep.