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
For definition lists:
Term tag -
Describe a term tag-
Definition list tag -
Term tag - <dt>
Describe a term tag- <dd>
Definition list tag - <dl>
The img tag uses ___ to specify the path to an image source
src
When it comes to links - Linking to an img on your computer is considered a _______ path, linking a website is considered an ________ path
relative path, absolute path
T/F - each div element starts a new line and will end a line
True
3 types of form attributes:
Action, method, enctype
This form attribute is a URL to use for form submission
action attribute
This form attribute is the HTTP method to use for form submission
method attribute
This form attribute is the encoding type to use for form submission
enctype
This request method sends all of the form data encoded into the URL
get request
This request supplies additional data from data from the browser to the server in the message body
post request
What is more secure, a get or post request? What one can be bookmarked?
POST is more secure, GET can be bookmarked
Post or get, which one is more often used?
GET