HTML Flashcards
Give 5 examples of html element types
H1
P
H2
Span
Section
Ul
Ol
What is the purpose of html attributes?
to tell us more about the content of that element
Give an example of an html entity
€ euro € €
© copyright © ©
® registered trademark ® ®
How do block-level elements affect the document flow?
Always take up a new line. Takes up the full width of the containing block.
How do inline elements affect the document flow?
they do not force a new line to begin a document flow
Where do you put non-visible content about the HTML document?
in the header
Where do you put visible content about the HTML document?
in the body
Where do the <head> and <body> tags go in a valid HTML document?
in between the html tags
What is the purpose of a <!DOCTYPE> declaration?
It is an “information” to the browser about what document type to expect
What are the default width and height of a block-level element?
100% wide and takes height of its inner content
What are the default width and height of an inline element?
Both are the size of the content ;only occupy the space bounded by the tags defining the element
What is the difference between an ordered list and an unordered list in HTML?
Ordered list is numbered while unordered is bulletin
Is an HTML list a block element or an inline element?
Block
They’ll be vertical not horizontal
What HTML tag is used to link to another website?
a; anchor tag
What is an absolute URL?
Https; protocol
An absolute URL starts with
the domain name for that site, and can be followed by the path to a specific page. If no page is specified, the site will display the homepage.
What is a relative URL?
No https
When you are linking to other pages within the same site, you do not need to specify the domain name in the URL. You can use a shorthand known as a relative URL.
- What is the purpose of an HTMLformelement?
to collect user input
- Give five examples of form control elements.
Input, select, label, textarea, button
- Give three examples oftypeattribute values for HTML<input></input>elements.
Email, text, password, radio
- Is an HTML<input></input>element a block element or an inline element?
inline
What are the six primary HTML elements for creating tables?
Table element, table captions, row groups;thead body, column groups, table rows, table cells
- What purpose do thetheadandtbodyelements serve?
provide useful semantic information that can be used when rendering for either screen or printer.
- Give two examples of data that would lend itself well to being displayed in a table.
Grading, money, sports books
- What are the names of the individual pieces of a CSS rule?
A selector and declaration block after that its property and value