HTML Flashcards
Where do you put non-visible content about the HTML document?
In the “head” element. Also can add the Meta, title, and link for CSS Style etc.
Where do you put visible content about the HTML document?
In the “Body” element.
Where do the HEAD and BODY tags go in a valid HTML document?
Nested inside of the “HTML” element. HTML is the parent and “head” and “body” will be the child element of the HTML element.
Or Some developers make the HEAD and the BODY the sibling element of the HTML element, but nested within HTML tag.
What is the purpose of a “!DOCTYPE html” declaration?
To tell a browser which version of HTML the page is using.
Give five examples of HTML element types.
HEAD, BODY, H1, P, SPAN
What is the purpose of HTML attributes?
Attributes provide additional information about the contents of an element. Made of 2 parts: attribute (name) and a value (key).
Give an example of an HTML entity (escape character).
copyright © registered trademark ®
& copy ; & reg ;
How do block-level elements affect the document flow?
Block-level elements will always appear to start on a new line in the browser window.
How do inline elements affect the document flow?
Will always appear to continue on the same line as their neighbouring elements.
What are the default width and height of a block-level element?
Default width is the full 100% width of the line and height is auto.
What are the default width and height of an inline element?
The width of the content and the height of the content: auto.
What is the difference between an ordered list and an unordered list in HTML?
The ordered list will appear in numerical order from 1, 2, 3,…
The unordered list will appear as a bullet points
Is an HTML list a block element or an inline element?
List is a block element, will start a new line.
What HTML tag is used to link to another website?
an opening anchor tag “a” with href (Hypertext REFerence) and a closing tag “/a”
What is an absolute URL?
The full web address for the site. Starts with the domain name for that site, and can be followed by the path to a specific page.