Week 2 Flashcards
What is the extension for an html file?
.html
Who developed HTML at CERN in Geneva, Switzerland?
Who was in Paris?
Tim Berners-Lee
HTML elements have a _____ and an ___ tag
start and end tag
T/F - Tag names are case sensitive
False. Tag names are not case sensitive. <p> == </P>, but W3C recommends lower case
HTML elements contain the element name, _________, and content within the tag
attributes,
What are void elements?
They’re an instruction to the browser to do something
They do not contain any text content
They only have a start tag, no end tag
Attributes provide additional ____ about the given element. ALL HTML elements can have attributes that alter their ________. They’re put inside of the _______ tag
info, behavior, opening tag
There are 4 different types of attributes, what are they?
Required attributes, optional attributes, standard attributes, and event attributes
Required attributes,
optional attributes,
standard attributes,
event attributes
Required attributes, - needed for functionality of element
optional attributes, -can be used to modify the default functionality
standard attributes, -also called global attributes. They’re literally the standard attributes (id, class, style, title, dir, lang)
event attributes -used to cause elements to run scripts
This element generally takes up an entire line, whereas its counterpart allows many elements to appear on the same line
Block elements, as opposed to inline elements
Inline elements must be ______ inside of a block element, and they only take up as much space as
nested, as much space as the content inside of them, unlike block elements
T/F - <html> goes before <!DOCTYPE html>
False, DOCTYPE always goes first
The <html> element is the ____ element, it’s a container for all other HTML elements. (/html always ends the page)
root
This element is considered the brain of the webpage. It contains metadata about the document
<head>
</head>
T/F - The head includes the CSS design & JavaScript functionality
True
What is the title element for?
It’s displayed in the browser toolbar. The title will be used for bookmarks as well as search engine results.
What meta data is often included in the head?
charset (encoding style ie. UTF-8), author, viewport
Define viewport
Users visible area of the web page. Will differ depending on the device.
The body element is used for the _________ of the web page
Structure
T/F - The body should only contain elements that will be displayed on the page
True
T/F - The h1 element can be used a number of times on one web page
False. The h2 tag should only be used once
T/F - Heading elements behave differently from <p> elements in terms of spaces
False. Heading elements add blank lines before and after the text
T/F - Browsers automatically add a blank line before and after each paragraph
True
3 types of list:
Ordered, unordered, and
Definition lists. They use the <dl> tag