Thu Sep. 28
Hyperlinks / Lists
9 – 12h Teaching
Teacher:
- Monorom
Goals
- I understand the semantic meaning of HTML lists. I use lists in my HTML Template.
- I understand the concept of hyperlinks. I can build a HTML structure.
- I work mobile first.
Content
- List
- Viewport Meta-Tag
- Links (external, local, anchor, e-mail, block-element)
RECAP – 26.09. HTML & FTP
- HTML Syntax
- FTP
- Q&A
HTML lists
Lists are used to group related pieces of information. Lists are frequently used for navigation as well as general content. For semantic correctness, HTML has the ability to express lists of things, and it helps the Google robot and most important it helps screen readers.
Viewport Meta-Tag – We work mobile first
<meta name="viewport" content="width=device-width, initial-scale=1.0">
Mobile first
Exercise – Portfolio #1– Navigation
- Create a subfolder in your website folder, name it portfolio.
- The first file must be index.html
- Don't forget the Viewport Meta-Tag. It's part of the basic structure,
- Now create the basic HTML structure for the index.html (header, footer, main, nav etc.)
- Use default content and HTML elements to structure the text.
HTML Links - Hyperlinks
You can click on a link and jump to another document, image or site. A link can be an image or any other HTML element, it does not have to be text.
Hyperlink Syntax <a>
<a href="url">link text</a>
external links
<a href="http://powercoders.org/">Impacting lives by teaching to code</a>
local Links
<a href="portfolio.html">Portfolio</a>
<a href="portfolio/index.html">Portfolio</a>
<a href="../index.html">Portfolio</a>
target
Does it make sense to open a new window?
<a href="portfolio/index.html" target="_blank">Portfolio</a>
Exercise – Portfolio #2 – subpages
Create Subpages for your Portfolio
- Create a folder for each sub-page. (About / Projects / Contact). Each folder contains an
index.html.
- Add the navigation links in all index.html pages.
- Change some content on each page.
- Upload all files to the webserver.
- Test it in your browser.
Anchor Links
Normal links always point to the top of a page. Anchors point to a place within a page. html anchor link
Block-element links
<a href="xyz.html">
<h1>Nice</h1>
<p>Lore ipsum</p>
</a>
Links inside Block-element links
<a href="xyz.html">
<h1>Nice</h1>
<p><object><a href="#">Lore ipsum</a></object></p>
</a>
Your HTML must be valid
Please use Markup Validation Service to make you HTML valid.
12 – 13.30h Lunch (Restaurant Paprika)
13.30 – 16h Coaching
Coaches:
- Hussam
- Matthias
Goals
- The basic portfolio structure is on the webserver.
Exercises
- Finish the basic portfolio template.
- Keep on working with freeCodeCamp or codecademy.
- Find content for the portfolio.
- Prepare an image for the about section.
- Update your FileZilla settings
Filezilla Settings Update
We will configure FileZilla further so you don't overwrite the main index.html file anymore.
- Open FileZilla: open menu "File > Site Manager"
- Select your site (Powercoders 002)
- Select the Advanced tab
- Select your project folder on the Desktop as your Default local directory
- Define
/students/[your-name]
as your Default remote directory - Check Use synchronized browsing checkbox
- Check Directory comparison checkbox
- Select the Transfer Settings tab
- Check Limit number of simultaneous connections checkbox
- Make sure that the maximum number of connections is
1
- Press OK to save your settings!
IN valid Code we trust
Please use Markup Validation Service to make you HTML valid.
16 – 18h Community Meet-Up
Community Meetup
Everybody who is interested to get to know our Powercoders is invited to join!