This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
en:web_development:lists:multilevel_lists [2021/11/25 08:30] mag created |
en:web_development:lists:multilevel_lists [2023/08/16 09:33] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Web Development Lesson 3 - Lists ====== | ====== Web Development Lesson 3 - Lists ====== | ||
===== Multi-level Lists ===== | ===== Multi-level Lists ===== | ||
+ | ==== Objectives ==== | ||
+ | In this exercise you will: | ||
+ | * create multi-level lists | ||
+ | * start using Visual Studio Code, a professional coding platform | ||
+ | * learn one way to target specific elements with CSS | ||
==== Setup ==== | ==== Setup ==== | ||
- | * We'll start from a blank slate, so delete all the HTML and CSS you've entered so far. | + | * We'll start from a blank slate in [[https:// |
==== Nesting Lists ==== | ==== Nesting Lists ==== | ||
Line 52: | Line 57: | ||
* See how only the hobbies list is bold? The top level list is an < | * See how only the hobbies list is bold? The top level list is an < | ||
* The combined selector < | * The combined selector < | ||
+ | |||
+ | ==== Tools: Visual Studio Code ==== | ||
+ | * jsfiddle is great for quickly testing a piece of code, but it has limitations. | ||
+ | * Primarily, you can't easily see a full screen result. | ||
+ | * Simalarly, it's difficult to see large blocks of code. | ||
+ | * Instead, there are many full web development source code editors available with varying benefits and levels of complexity. We will be using Visual Studio Code, which is one of the most powerful. | ||
+ | * First, create a folder on your desktop with your name. | ||
+ | * Open Visual Studio Code. | ||
+ | * Navigate to File -> Open Folder and select the folder you created. | ||
+ | * Hit Ctrl-N to create a new file. Hit Ctrl-S to save the file and name it ' | ||
+ | |||
+ | ==== HTML Structure ==== | ||
+ | |||
+ | * Type ' | ||
+ | * Visual Studio automatically enters the structure of a full HTML document. | ||
+ | |||
+ | < | ||
+ | <html lang=" | ||
+ | < | ||
+ | <meta charset=" | ||
+ | <meta http-equiv=" | ||
+ | <meta name=" | ||
+ | < | ||
+ | </ | ||
+ | < | ||
+ | | ||
+ | </ | ||
+ | </ | ||
+ | * < | ||
+ | * < | ||
+ | * Copy the HTML code from jsfiddle and paste it inside the < | ||
+ | * Right click and select 'Open with Live Server' | ||
+ | * Notice that the result is what we saw in jsfiddle before we added CSS and Javascript. | ||
+ | * Also notice the label in the browser tab says ' | ||
+ | * Edit the < | ||
+ | * Notice that the label has now changed. | ||
+ | |||
+ | ==== Adding CSS ==== | ||
+ | * Create a new line inside the < | ||
+ | * This adds a line that says < | ||
+ | * Hit Cltr-N to create a new file and Ctrl-S to save it as ' | ||
+ | * Now we can copy the CSS code from jsfiddle to your ' | ||
+ | * Save that and again open the code in Live Server. It should now have the formatting we added. | ||
+ | |||
+ | ==== Final Code ==== | ||
+ | If your code doesn' | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | |||
+ | [[en: |