CCT260H5 Lecture Notes - Lecture 4: Responsive Web Design, Hypertext, Javascript

51 views2 pages
Class 4, Week 2 (Reminder, midterm next week, day 6!)
Intro to basic HTML
Doctype
o Good form to designate what is to come as HTML
Head
o Where document meta-information should be
<head> tags and attributes
While not necessary, good practice to separate document
metadata from content
Can define many things here but some (ex. Charset) are
assumed unless stated otherwise
UTF-8 charset pretty much every representable symbol
Meta iforatio useful for SEO ad aessiilit ut do’t ause
meta keywords (Google identifies attempts and will bury/blacklist
sites)
Body
o Where content should be
Nested elements
o Failure to close tags in right place will mess things up
HTML elements
o Traditionally, elements in lowercase
Works upper-case as well
o Most elements have open/close tags, even if they work without them
o Many elements have attributes that pass on required info and can be useful
Ex. Alt attributes in images good for both accessibility and SEO
<ig sr=”shools.jpg” alt=”WShools.o” idth=””
height=””>
o SRC = source (file name)
Same with headers - <h> <h> …<h6> has speifi eaig to
screen readers and is scanned by search engine spiders to
understand semantic value of page
o Other semantic tags
Same with <b> vs. <strong>; <i> vs. <em> - bold and italic is style (visual)
strong and em implies marked text is important (semantics)
Shows up the same but has different meanings
<blockquote> <abbr> <address> <cite> - all have specific semantic
meanings, even if you can display this through other means, it often
makes sense to code the semantic value in HTML and worry about display
in CSS
<a> = anchor
<href> = hypertext reference
Layout and Spacing
find more resources at oneclass.com
find more resources at oneclass.com
Unlock document

This preview shows half of the first page of the document.
Unlock all 2 pages and 3 million more documents.

Already have an account? Log in

Get access

Grade+
$40 USD/m
Billed monthly
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
10 Verified Answers
Class+
$30 USD/m
Billed monthly
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
7 Verified Answers