Very seriously presented by the
Techies Lab
wifi: CoStationCity
key: BeMoreCurious
Anne
Margo
14h Welcome + download Sublime Text
14h20 INTRO
14h50 Mini break
15h HTML
15h40 Snack
16h00 HTML + CSS
content and structure
style and appearence
animations
+ browser
Hey, I've seen a cat.
"Really? That's
Supercalifragilisticexpialidocious!"
He told me: *I'm Bob-the-Cat*.
(I thought > Bob = _very ^bizzare_!!!)
</ @ no, common >
{ duh | duh | dial #10285833 }
a web site = a folder full of files
1. On our desktop, let's create a folder called, for example, my_first_website
2. Let's drag & drop this folder in Sublime Text
In Sublime Text, right-click on the name of the folder and add a new HTML file named
index.html
How do we write an HTML file ?
Let's write whatever comes to our mind!
Isn't it funny - or drôle, as say the French?
Here's my todo list:
- add nice colors;
- add images;
- a video?
A little X will appear at the top right corner of the tab! It means your work is saved.
Let's save our modifications by clicking the keys
Ctrl (or Cmd) + S.
Let's check our webpage: let's open the index.html file in the browser
We need HTML tags
PARAGRAPH Tag
<p>Let's write whatever comes to our mind!</p>
<p>Isn't it funny - or drôle, as say the French?</p>
<p>Here's my todo list:
- add nice colors;
- add images;
- a video?
</p>
Let's organize our code
<!DOCTYPE html>
<html>
<head>
(...)
</head>
<body>
<p>Let's write whatever comes to our mind!</p>
<p>Isn't it funny - or drôle, as say the French?</p>
<p>Here's my todo list:
- add nice colors;
- add images;
- a video?
</p>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<title>Bob the cat's website</title>
<!-- browser tab and Google search -->
<meta charset="utf-8"/>
<!-- for special characters -->
</head>
<body>
<p>Let's write whatever comes to our mind!</p>
<p>Isn't it funny - or drôle, as say the French?</p>
<p>Here's my todo list:
- add nice colors;
- add images;
- a video?
</p>
</body>
</html>
<body>
<h1>Welcome to Bob-the-Cat's Website</h1>
<p>Isn't it funny - or drôle, as say the French?</p>
<p>Here's my todo list:
- add nice colors;
- add images;
- a video?
</p>
</body>
<h1>
<body>
<h1>Welcome to Bob-the-Cat's Website</h1>
<p>Isn't it funny - or drôle, as say the French?</p>
<ul>Here's my todo list:
<li>add nice colors;</li>
<li>add images;</li>
<li>a video?</li>
</ul>
</body>
<ul> <li>
<a href="https://www.techieslab.org" target="_blank">Techies Lab</a>
<a>
<img src="logo.png" alt="Techies Lab logo">
<img src="http://jolabistouille.j.o.pic.centerblog.net/45777f7a.png" alt="Cat">
<img>
<iframe src="https://www.youtube.com/embed/oqNKD9YVe4U" width="560" height="315"></iframe>
<iframe>
In our folder, let's create a CSS file named style.css
We need to tie our
HTML and CSS files together
body {
color: orange;
}
color
/* alternative syntax : hexadecimal color codes */
/* note that this is how we write comments in CSS files */
body {
color: #FFA500;
}
body {
color: orange;
background-color: yellow;
}
background-color
body {
color: orange;
background-color: yellow;
}
h1 {
color: blue;
}
background image
divisions
<div>
div{
border-top: 1px solid red;
border-right: 2px dotted black;
border-bottom: 1px dashed green;
border-left: 2px dotted black;
}
borders
divisions and the box model
div{
background: white;
border: 1px solid lightgrey;
padding: 20px;
margin: 30px;
}
id and class
In your HTML file:
id and class
1 #logo {
2 width: 30%;
3 }
4
5 .staff {
6 border-radius: 50%;
7 }
in your CSS file