HTML 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 and tags go in a valid HTML document?
They go inside the html
element
What is the purpose of a declaration?
This is used to tell the browser which version
of HTML the page is using
What is the purpose of HTML attributes?
hey provide additional information about the content of an element
Give five examples of HTML element types
– h1 - Heading 1 – img - Images – p - Paragraphs – head - meta data – body - visible html content – title - title of the page displayed by the browser
What is the purpose of HTML attributes?
They provide additional information about the content of an element
Give an example of an HTML entity (escape character).
Less-than sign < or Ampersand &.
We use escape characters to type a symbol that has a special meaning in the programming language
How do block-level elements affect the document flow?
Block elements will always appear to start on
a new line. Some examples are: h1, p, ul, li
How do inline elements affect the document flow?
Inline elements will always appear on the same line
as their neighboring elements. Some examples are: a, b, em, img
What are the default width and height of a block-level element?
height: a new line above and below
the block element. It will be dictated by the content: width of the containing block of the containing
element
What are the default width and height of an inline element?
height and width: only occupy the space
bounded by the tags defining the element
What is the difference between an ordered list and an unordered list in HTML?
ordered lists are where each item is numbered whereas unordered lists are bullet points rather than characters indicating order. As an example, <ol> will reate an ordered list and </ol><ul> will create an unordered list. <li> are used for list elements</li></ul>
Is an HTML list a block element or an inline element?
HTML list is a block element
What HTML tag is used to link to another website?
<a> is the tag used for linking to another website</a>