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