Full screen? Down there.
Tools
Slides
Helpful Tips
Video
<!DOCTYPE html>
<html lang="en">
<head>
<title>Hello!</title>
<link rel="stylesheet" href="/style.css">
<script src="/script.js"></script>
</head>
<body>
<p>All Visible Content</p>
</body>
</html>
All of this is included in Glitch automatically!
Still important to learn, but Glitch makes set up very easy.
Important to know, but they standard with every project.
<!DOCTYPE html>
<html lang="en">
</html>
Add this to the top of your HTML document every time. Should be the first line.
This tells the document "the following will be HTML code".
<html>
</html>
The HTML tag holds all of the rest of the code inside of it. It is the starting point.
It takes an optional attribute of lang="en". This sets the language as english. Important for computer reasons.
<!DOCTYPE html>
<html lang="en">
<head>
<title></title>
<head>
</html>
Many tags can go inside the Head tag. Including the title tag. Which sets the title of the page.
<head>
</head>
The Head tag holds many important assets for the HTML file. Including references to the CSS, JS & Font files
I look at it like the engine of the car. Underneath the hood of your HTML file, there are important pieces which your HTML needs to run. It is the one place where you place connections to other files. It houses your title and other meta information.
This sets what you see on your tab in the browser.
<title>
</title>
Link tag to reference css stylesheets and fonts.
<link />
<!-- import the webpage's stylesheet -->
<link rel="stylesheet" href="/style.css">
href | where the css file is and its path
the rel attribute. Usually set to "stylesheet"
Script tag to reference JS files
<script>
</script>
<!-- import the webpage's javascript file -->
<script src="/script.js"></script>
src | where the js file is and its path
Everything visible on the page
<body>
</body>
<body>
<div class="header">
<p>content</p>
<p>content</p>
</div>
</body>
If it's not in the body, you will not see it on the page.
<!DOCTYPE html>
<html lang="en">
<head>
<title>Hello!</title>
<link rel="stylesheet" href="/style.css">
<script src="/script.js"></script>
</head>
<body>
<p>All Visible Content</p>
</body>
</html>
html
head
title
link
script
/head
/script
/link
/title
body
p
/p
/body
/html
Important for accessibility, but they really are just named boxes.
A container for introductory content
<header>
</header>
<body>
<header>
<p>content</p>
<ul>content
<li>list item</li>
<li>list item</li>
</ul>
</header>
</body>
just another container
A container for navigation links
<nav>
</nav>
<nav>
<ul>
<li>list item</li>
<li>list item</li>
<li>list item</li>
</ul>
</nav>
only for the MAJOR nav
A container for main content
<main>
</main>
<main>
<p>all content</p>
</main>
just a container
A container for each section
<section>
</section>
<main>
<section>
<p>some content</p>
</section>
</main>
just a container
A container for the sidebar content
<aside>
</aside>
<main>
<aside>
<p>some content</p>
<ul>
<li>list item</li>
</ul>
</aside>
</main>
for the sidebar
A container for the footer
<footer>
</footer>
<footer>
<section>
<p>some content</p>
</section>
</footer>
just a container
Articles
Websites
Tutorials
Extras
1. Create your own project in Glitch
2. Complete Optional Glitch Challenge
Click this link to begin! Create anything you want with what you've learned!
The next slide will be the last slide :)