HTML Flashcards
What HTML tag is used to link another website
the a tag
What is an absolute URL
external navigation to another website/ domain name
What is relative URL
relative path inside the website
What is the difference between an ordered list and an unordered list in HTML
Ordered list is like a recipe for cooking
Unordered lists is like a shopping list
Where do you put non-visible content about the HTML document?
In the head element
Where you put the visible content about the HTML document?
The body element
Where do the head and body tags go in a valid HTML document
open html open head close head open body close body close html
What is the purpose of a !DOCTYPE declaration
It was used in the past to describe what version of HTML people were using now it defines the document as HTML5
Give five examples of HTML element tags
head, body, div, span, h1
What is the purpose of HTML attributes
They are modifiers to the element tag
Give an example of an HTML entity (escape character).
® ©
block affect the document flow
block elements are separated and give the document space
How do inline elements affect the document flow
inline elements affect only what is in the element
What are the default width and height of a block-level element?
block level elements take up one enter and the entire width
What are the default width and height of a block-level element?
Inline elements only take up as much width as they need
How do you indicate the relative link to a parent directory?
../index.html
How do you indicate the relative link to a child directory?
blah-blah/child-directory.html
How do you indicate the relative link to a grandparent directory
../../index.html
how do you indicate the relative link to the same directory
index.html
What is the purpose of an HTML form element
To interact and get data from the viewer
Give five examples of form control elements
input, button, select, textarea, fieldset
Give three examples of type attribute for HTML input elements
text, radio, checked, name, id
Is an HTML input element a block element or an inline element
inline element
What are the six primary HTML elements for creating tables?
table, thead, tbody, th, tr, td
what purpose do thead and tbody elements serve
thead contains the table head
tbody contains the whatever is stored in the body