Week 04: HTML
1
Agenda
What is HTML5
HTML document structure
Inline, Block elements
Tables, Forms
Meta tags
Lightouse, inspect
Demo
Hands on: Iteration 3
2
Let's start!
3
What is HTML5
HTML = HyperText Markup Language
used for web documents
not a programming language
HTML5 is the latest specification of HTML
current standard
new tags for semantic only ( , , )
elements for multimedia ( , )
since 2014, previous version from 1997
4
Document structure
A simple HTML document
Hello World!
5
Document structure..
Page title
Article heading
Lorem ipsum
Lorem ipsum
6
Common inline elements
span
link
bold
italic
underline
code
button
7
Block elements
block
paragraph holds text
heading 1
heading 6
ordered
list
8
Block vs inline elements
Block Inline
width parent block content only
break line yes no
children any inline or text
9
Tables
Name
Age
Jill
Smith
43
Eve
Jackson
57
10
Forms
11
Meta tags
not readable, for search engines
page title nad description in search results
og: properties for social media previews
title, favicon in tab
My page
12
Reserved characters in HTML
If you use the less than (<) or greater than (>) signs in your text, the browser might mix them with tags.
Character entities are used to display reserved characters in HTML.
13
Lighthouse demo
https://pagespeed.web.dev
14
Inspect demo
15
Demo: Itearation 03
go through common elements in html document example
download from interactive syllabus
16
Questions?
17
Hands on: Iteration 03
You can find the assignment in Gitlab Issues as well as in the Interactive syllabus.
Before you start:
please check if your tutor has already accepted your MR
if they have, make sure you merged your solution from the previous week
Note: if your tutor haven't got to your MR yet, it's completely ok. You don't have to have the previous iteration
merged to be able to work on a new one - iterations are independent. However, if you have an accepted MR
that is not merged, it's still open and not incorporated in your 'main' branch.
18