Web Development Deck Flashcards
Where do you put non-visible content about the HTML document?
In the head element
Where do you put visible content about the HTML document?
In the body element
Where do the head and body element tags go in a valid HTML document?
In between the html element
What is the purpose of a !DOCTYPE declaration?
It lets the web browser know what version of HTML it is running
Give five examples of HTML element types.
- head
- body
- p
- img
- html
What is the purpose of HTML attributes?
HTML attributes provide additional information about the contents of an element
Give an example of an HTML entity (escape character).
© - copyright
How do block-level elements affect the document flow?
They are structural markups that always starts on a new line. Any content on the left or right side gets pushed up or down
How do inline elements affect the document flow?
They are semantic markups that provide extra information and does not disrupt the document flow
What are the default width and height of a block-level element?
The height is dictated by the content and the width takes up 100% of is parent container
What are the default width and height of an inline element?
Width and height are dictated by its content
What is the difference between an ordered list and an unordered list in HTML?
An ordered list uses numbers to indicate a list of steps, but an unordered list uses bullet points to display a list
Is an HTML list a block element or an inline element?
Block element
What HTML tag is used to link to another website?
An a tag with attribute href=”(website URL)”
What is an absolute URL?
The full web address used when linking to a different website
What is a relative URL?
a shorthand used when linking to another page within the same site
How do you indicate the relative link to parent directory?
../
How do you indicate the relative link to a child directory?
directory name and file name
How do you indicate the relative link to a grand parent directory?
../../
How do you indicate the relative link to the same directory?
Just the file name
What is the purpose of an HTML form element?
HTML forms gives you a set of elements to collect data from your users
Give five examples of form control elements.
textarea, option, select, button, label
Give three examples of type attributes values for HTML input elements.
text, radio, checkbox
Is an HTML input element a block element or inline element?
It is neither