HTML Flashcards
Where to put non-visible content?
in the <head> element
Where to put visible content?
in the <body> element
Where do the <head> and <body> tags go?
in the <html> element
What is the purpose of a <!DOCTYPE> declaration?
it tells the browser what type of html we are using
Give five html element types
<body> <h1> <p> <img></img> <title>
</title></p></h1></body>
What is the purpose of HTML attributes?
it gives more information about the contents of an element
Give an example of an HTML entity(escape characters)
© × & ®
How do block-level elements affect the document flow?
It separates into blocks creating a container.
How do inline elements affect the document flow?
It doesn’t. It changes the element in a line so it doesn’t change the flow.
What is the default height and width of a block-level element?
Size of the entire width of the page.
What is the default height and width of a inline element?
It is the size of the content.
Difference between ordered and unordered lists.
Ordered <ol> lists are either numbered or lettered while unordered <ul> are listed in bullet points.
Is an HTML list a block or inline element?
It is a block element.
What HTML tag is used to link another website?
anchor tag <a></a>
Example of an absolute URL
https://www.google.com