HTML Flashcards
Where do you put non-visible content about the HTML document?
head element
Where do you put visible content about the HTML document
body element
where do the <head> and <body> tags go in a valid HTML document?
in a html element
what is the purpose of a <!DOCTYPE> declaration
To declare specific type of document, which is usually HTML
Give 5 examples of HTML elements types
html
head
title
body
div
what is the purpose of HTML attributes?
To add features of its content such as color, size, height, width, and etc
Give an example of an HTML entity
registered symbol = & reg;
trade mark = & trade;
ampersand = & amp;
how do block-level elements affect the document flow
It starts an element in a new line
How do inline elements affect the document flow?
it is continuous in the same row
What are the default width and height of a block-level element?
width: 100%
height: auto
What are the default width and height of an inline element?
width: auto
height: auto
What is the difference between an ordered list and an unordered list in HTML?
ordered list are numbered unless it’s modified with CSS
Unordered list would be bullet points
Is an HTML list a block element or an inline element?
Block element because it starts a new item on the next line
What HTML tag is used to link to another website?
a
anchor element
What is an absolute URL?
absolute URL is an URL that links to a completely different website
What is a relative URL?
relative URL is a link that links to a specific spot within the same document or website
How do you indicate the relative link to a parent directory?
using “../”
How do you indicate the relative link to a child directory?
You use the directory of the folder to the folder
example: abcd/javascript.jpg
How do you indicate the relative link to a grand parent directory?
using ../../
need to use it twice
How do you indicate the relative link to the same directory?
using a period
What is the purpose of an HTML form element?
to display interactive controls for submitting information
Allows you to group together the form of the data
Give five examples of form control elements.
text input
text area
select
options
buttons
Give three examples of type attribute values for HTML <input></input> elements.
button
checkbox
color
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
tr
td
thead
tbody
What purpose do the thead and tbody elements serve?
thead defines a set of rows defining the head of the columns of the table
tbody encapsulates a set of table rows - content of the table
Give two examples of data that would lend itself well to being displayed in a table.
groups of data with the same data that represents something
sports stats, financial numbers, stock information