Khurram Virani
Head Instructor @ Lighthouse Labs. Vancouver, BC
How does HTML work?
<>
These are called angle brackets
Text inside of angle brackets is an HTML tag.
Everything else is just text.
<p>This is normal text surrounded by HTML tags .</p>
Note how the closing tag has a forward slash.
This forms a paragraph Element .
<h1>Khurram Virani</h1> <p> <em>Bio:</em> Co-founder of Lighthouse Labs <br> <em>E-mail:</em> khurram@lighthouselabs.ca </p>
The
src
attribute is how we get
CAT PICTURES
Used within the <img> element
<img
src="
http://images.com/cute_kitten_charlie.jpg">
HTML defines the elements on a webpage
CSS defines the design of those elements.
Structure: Our house's scaffolding.
Defining block of content that should go within another block, etc.
Design: Our house's paint and decor.
How those blocks should actually look:
what colour they are, how big they are, etc.
CSS is a two-step process
1. It targets an element on a page.
2. It applies styles ("properties") to it.
Common CSS properties include:
color, font-size, text-align
DIVING DEEPER INTO THE CSS
In CSS we can now target that element using #
In
CSS
we can now target that element using
. (a period)
By Khurram Virani
Sunday 50 minute Workshop