Exam Review Flashcards
What can be selected in CSS?
Elements, class, ID
What is an HTML Element?
The components of html that build the content structure of the web page.
Always have triangular brackets
What is an html Attribute?
Describes an element
A kind of meta data
What is an opening element?
Doesnt have a leading forward slash
Closing element?
Has a leading forward slash
What are empty or stand alone elements?
Doesnt need the closing element to work properly
What is correct nesting?
The tags/elements should not overlap
What does it mean to validate web code?
Running your code througg a web validator to analyze your code. It will point out an error or if you are not following W3C best practices.
How does html and css seperate content and presentation?
Html structures content
Css styles the presentation of the content
Css handles positioning, colours etc
How do we look at code?
Web inspector, right click view source, F12 inspect elements
Web inspector is more powerful because you can view the html, css, and even box model
What is a div?
General block line element, starts a new line
What is a span?
A generic line element.
What is a semantic div?
Prenames div. E.g. header, body, footer, nav, aside, section
This makes your code more readable
What is semantic html?
Using an html element the way it was intended
Ex unordered list used an an unordered list
What is the header elemet?
A semantic div
Content is displayed in web browser
Eg logo, navigation
What is a head element?
Links to external css, identifies language being used. Meta data of the page, set favicon, charactor impoduim
Block line element
Breaking elements- div
Inline elements
Non breaking elements-span