HTML Flashcards
(322 cards)
Where do you put non-visible content about the HTML document?
In the ‘head’ element.
The head element is commonly used to articulate functionality or visual attributes of the document.
Where do you put visible content about the HTML document?
In the body.
Where do the & elements go in valid HTML documents?
They both go inside of the tag, and the tag is opened and closed before the body element begins.
Check this one
What is the purpose of an html document type declaration?
It allows the browser to know what type of document it is reading.
Give an example of Five HTML tags.
h2, img, b, i, u
What is the purpose of HTML attributes?
Attributes provide additional information about the contents of an element. They appear on the opening tag of the element. They have two parts, a name and a value.
https://trello.com/c/OnZ4vkfD/49-attributes
What is an HTML entity?
These are ‘reserved’ characters in HTML. They are a sequence of characters that are substituted with an actual character in their place.
How do block-level elements affect the document flow?
Some elements will always appear to start on a new line with the DOM renders. These are known as ‘block’ level elements.
The following are examples of ‘block-level’ elements.
h1,p,ul and li
So they affect the document flow by ‘breaking’ a line and starting a new one.
How do inline elements affect the document flow?
Some elements will be rendered on the same line that they are rendered on. Inline elements are an example of these.
<i> and <b> are an example of these. <del> also.</del></b></i>
i and b are examples of these. del, b are also examples.
What are the default width and height of a block-level element?
By default, a block-level element expands to a width of 100% of its parent container, whether it be the entire “body” element, a container element such as a div or something else.
What are the default width and height of an inline element?
They inherit from their parent the default width and height they are allowed to have (?)
https://developer.mozilla.org/en-US/docs/Web/HTML/Inline_elements
What is the difference between an ordered list an an unordered list in HTML
The way they are articulated within the HTML itself. One of them is started as ul and the other is started as ul
Is an HTML list a block element or an inline element
An HTML list is a block element.
What HTML tag is used to link to another website?
the Anchor tag.
What is an absolute URL?
An absolute URL is a link to a ‘foreign’ address, or a different website.
If the URL route is routed to a similar address within the website, then it is a ‘relative’ reference, and the file route to that address is provided.
What is a relative URL?
A relative URL is a ‘local’ address, or the location of a file within the program.
The technical terminology for this would be, an address to a local ‘directory’ within the program.
If the URL is ‘Aboslute’, than it is a foreign address. That means it leads to a different set of files, or a directory that is not in the local repository.
Is the img element an inline element or a block level element?
The img tag is an inline element, that means it must be put within a parent block level element. Usually a div or a p.
How many types of relative links are there?
There are 5 types of relative links.
How do you link to a file that is in the same folder as the file you are currently working with?
you name the file. Without any sort of directory declaration.
How do you link to a file that is in a child folder?
for a child folder, use the name of the folder, followed by a forward slash with the name of the file.
How do you link to a grand child folder?
Use the name of the child folder, followed by a forward slash, and then use another forward slash with the name of the grand child folder.
How do you link to a file that is in a parent folder?
You link to a file that is in a parent folder by using a pair of dots “..” then follow those dots with a forward slash, plus the name of the file.
How do you link to a file that is in a grand parent folder?
You use a pair of dots followed by a forward slash, and then you use another pair of dots followed by a forward slash, and then you name the file in question that you wish to access.
What are the six primary HTML elements for creating tables?
(table creator). row creator. column creator (td stands for ‘table tada’, is used to represent the heading of either a column or a row, , tbody> and
https://developer.mozilla.org/en-US/docs/Learn/HTML/Tables/Basics
pgs 126-132 and 135-136 Duckett