Module 1 Flashcards
Where do you put non-visible content about the HTML document?
This type of content goes in the head element
Where do you put visible content about the HTML document?
This type of content goes in the body element
Where do the head and body tags go in a valid HTML document?
These tags go in the html element
What is the purpose of a !DOCTYPE declaration?
This tag tells you what type of document you are working on and also specifies the specific version
Give five examples of HTML element tags.
<p> p
</p>
<h1> h1 </h1>
through<h6> h6 </h6>
<img></img> img
<a> a</a>
<div> div </div>
</a>
What is the purpose of HTML attributes?
these allow you to provide additional information about your html elements by assigning attributes to specific values.
Give an example of an HTML entity (escape character).
without spaces
© “& copy ;”
® “& reg ;”
€ “& eruo ;”
& “& amp ;”
How do block-level elements affect the document flow?
These types of elements take up as much space as they can and elements always start on a new line
How do inline elements affect the document flow?
These types of elements take up as much space as they need and appear adjacent to other elements
What are the default width and height of a block-level element?
Default width=full width available on the screen
Default height=height of the content
What are the default width and height of an inline element?
Default width=width of the content *cannot be changed
Default height=height of the content
What is the difference between an ordered list and an unordered list in HTML?
Unordered lists <ul> are not in a specified order and by default notated with bullet points
Ordered lists </ul><ol> are numbered and in a specified orderer</ol>
Is an HTML list a block element or an inline element?
This is a block element
What HTML tag is used to link to another website?
The anchor tag <a></a>
What is an absolute URL?
The full web address containing domain name
To be used for external links on other sites
What is a relative URL?
The file path for a file within the same domain, can notate this shorthand in html
To be used for internal links to link files on the same site
How do you indicate the relative link to a parent directory?
to indicate
a href=”../file-name”>Text Content /a
How do you indicate the relative link to a child directory?
to indicate
a href=”folder-name/file-name”Text Content/a
How do you indicate the relative link to a grand parent directory?
a href=”../../file-name”>Text Content/a
How do you indicate the relative link to the same directory?
to indicate
a href=”file-name”>Text Content/a
What is the purpose of an HTML form element?
the purpose of this is to allow users to input information on a webpage via a form which is tracked by key value pairs i.e. Name: Hannah (key value pair would be saved as name=name, value=Hannah)
Give five examples of form control elements.
5 examples are:
1. Text input
2. Password input
3. Radio buttons
4. Checkboxes
5. Submit buttons
Give three examples of type attributes for HTML elements.
3 examples are:
1. type=”text”
2. type=”password”
3. type=”radio”
Is an HTML input element a block element or an inline element?
this element is inline