Unit 1 Chapter 3 & 4
Some Key Points from Chapter 3 & 4
What are HTML elements:
html
,head
, hyperlinks,title
,body
,h1
,h2
,h3
,p
,div
,span
,img
,ul
,ol
,li
,em
,strong
,a
<a href="Link here">Content here</a>
, wherehref
stands for hypertext reference;Difference between
id
andclass
: each element can only have oneid
and eachid
can be used only once. In contrast, elements can have multipleclass
(separated by space), and eachclass
can be used for multiple times.Comments: “
<!-- Comments here -->
”DOM stands for Document Object Model, which refers to “the hierarchical structure of HTML” (p.50).
CSS: Cascading Style Sheets. How to use CSS: Check here.
In CSS, a child adopts the style of the parent.
JavaScript: Arrays, Objects, JSON (JavaScript Object Notation)
SVG: Scalable Vector Graphics