Please enable JavaScript.
Coggle requires JavaScript to display documents.
Week 1 Content (The Web (HTML: HyperText Markup Language, URL: Uniform…
Week 1 Content
The Web
HTML: HyperText Markup Language
URL: Uniform Resource Locator (or Web address)
HTTP: HyperText Transfer Protocol
W3C: World Wide Web Consortium
HyperText
Elements, Tags, Attributes
Elements/ DOM elements
the pieces themselves
p: paragraph
header
body
html
Most elements can contain other elements
:unlock: parent element
Attributes
Written inside the opening tag
:red_flag:See "Week 2"
Tags
Self-closing Tag
Open and Close Tag
examples: <p>, <em>
Comments
HTML5: <! -- This is a comment -->
:!!:HTML CSS and JavaScript have own way of writing comments
Character encoding
Always use the Unicode "UTF-8"
<meta charset="utf-8">
placing right after <head> tag
:red_flag: character references
< >
&
(space)
"
Others
Link Title
The Big Three
CSS
"Theme" in word process
JavaScript
Actions
HTML5
Best Practices
Do¨s and Don'ts
Tree structure: how to place elements
Follow rules not depend on browser
Use indentation
Consistent quote of strings
White space and other niceties
Case matters, except when it doesn't
White space is ignored, expect when it's not
Any kind of Quotes for strings
The important thing is to look good