Created by
Abram Hindle
(abram.hindle@ualberta.ca)
and Hazel Campbell (hazel.campbell@ualberta.ca).
Copyright 2014-2019.
The head tag is where we put information about the webpage. You will usually include a title here.
Meta tags contain meta information for browsers and other tools to help interpret.
<head>
<title>Page Title</title>
<meta charset="UTF-8">
<meta name="description" content="Example Page">
<meta name="author" content="Abram Hindle">
<!-- proprietary extensions -->
<meta name="apple-mobile-web-app-capable" content="yes" >
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" >
<!-- mobile viewport information -->
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<!-- stylesheets / css -->
<link rel="stylesheet" href="css/reveal.min.css">
<link rel="stylesheet" href="css/theme/default.css" id="theme">
<link rel="stylesheet" href="lib/css/zenburn.css">
</head>
<body>
<p>Visible content goes here.</p>
<p>Consider that you should not directly specify layout information
here but that you should mark up blocks with a class allowing you to
apply layouts later. You can abstract layout</p>
</body>
All tags should be closed to allow for ease of reading and parsing, except void tags.
Start Tags are enclosed in < and >
End Tags are enclosed in </ and >
<tag>
<enclosedtag>
</enclosedtag>
</tag>
Void tags are enclosed in < and > like start tags, but don't have a matching end tag
<tag>
<voidtag>
<br>
</tag>
<p>
Now bears us onward one of the hard margins,
And so the brooklet's mist o'ershadows it,
From fire it saves the water and the dikes.
</p>
<p>
Even as the Flemings, 'twixt Cadsand and Bruges,
Fearing the flood that tow'rds them hurls itself,
Their bulwarks build to put the sea to flight;
</p>
We can use CSS to style these text blocks. Whitespace in the <p> block doesn't matter.
That code now looks like:
Now bears us onward one of the hard margins, And so the brooklet's mist o'ershadows it, From fire it saves the water and the dikes.
Even as the Flemings, 'twixt Cadsand and Bruges, Fearing the flood that tow'rds them hurls itself, Their bulwarks build to put the sea to flight;
Now bears us onward one of the hard margins,
And so the brooklet's mist o'ershadows it,
From fire it saves the water and the dikes.
Even as the Flemings, 'twixt Cadsand and Bruges,
Fearing the flood that tow'rds them hurls itself,
Their bulwarks build to put the sea to flight;
That code now looks like:
Now bears us onward one of the hard margins,
And so the brooklet's mist o'ershadows it,
From fire it saves the water and the dikes.
Even as the Flemings, 'twixt Cadsand and Bruges,
Fearing the flood that tow'rds them hurls itself,
Their bulwarks build to put the sea to flight;
Let the user agent decide how to display the text. You don't need to control everything. But provide the appropriate semantics first. Then apply layout information to those semantics.
If you want something to show up in a certain make a CSS class and style a span or a div or a paragraph that way.
If you want a fancy layout use flexbox or grid layouts.
Now bears us onward one of the hard margins,
And so the brooklet's mist o'ershadows it,
From fire it saves the water and the dikes.
Even as the Flemings, 'twixt Cadsand and Bruges,
Fearing the flood that tow'rds them hurls itself,
Their bulwarks build to put the sea to flight;
Looks like this:
Now bears us onward one of the hard margins,
And so the brooklet's mist o'ershadows it,
From fire it saves the water and the dikes.
Even as the Flemings, 'twixt Cadsand and Bruges,
Fearing the flood that tow'rds them hurls itself,
Their bulwarks build to put the sea to flight;
It did not change.
<div>
<span style="background-color:#AAAAAA;font-weight:bold">
Now bears us onward one of the hard margins,</span><br>
And so the brooklet's mist o'ershadows it,<br>
From fire it saves the water and the dikes.<br>
</div>
<div style="font-size:150%">
Even <span style="color:red">as the Flemings</span>, 'twixt Cadsand and Bruges,<br>
Fearing the flood that tow'rds them hurls itself,<br>
Their bulwarks build to put the sea to flight;<br>
</div>
Looks like this:
Now bears us onward one of the hard margins,
And so the brooklet's mist o'ershadows it,
From fire it saves the water and the dikes.
Even as the Flemings, 'twixt Cadsand and Bruges,
Fearing the flood that tow'rds them hurls itself,
Their bulwarks build to put the sea to flight;
Hello!
Hello!
Hello!
Looks like:
Hello! Hello! Hello!
Hello!
Hello!
Hello!
Hello!
Looks like:
Hello! Hello! Hello! Hello!
Looks like this:
Apply style directly
HULKSMASH!
This is example 1
This is example 2
This is example 3.
This is example 3.
This is example 3.
ALERT in orange!
Great. Everything is yellow now.
How is this going to work?
FIXED
!relative
Relative
Big Relative
Redbox!
Bluebox!
Ab-solutely!
A pretty long line of text, it might not looked centered
A pretty long line of text, it might not looked centered
A short bit of text
Check me out! I'm not centered!
Check me out! I'm centered!
Check me out! I'm centered!
CSS is spread across many specs, so it is hard to really get a clear grasp on it.
The HTML Form elements let us accept input from browsers in a structured way and form HTTP GETs and POSTs.
In the lab you should have covered some of this.
Copyright 2014 ⓒ Abram Hindle
Copyright 2019 ⓒ Hazel Victoria Campbell and contributors
Other images used under fair use and copyright their copyright holders.
Copyright (C) 2018 Hakim El Hattab, http://hakim.se, and reveal.js contributors
Copyright (C) 2019 Hazel Victoria Campbell, Abram Hindle and contributors
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN