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