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 <head> and <body> tags go in a valid HTML document?
In the parent <html> element
What is the purpose of a <!DOCTYPE> declaration?
tells the browser what version of HTML the document is written in.
Give five examples of HTML element types
html, head, title, body, h1,
What is the purpose of HTML attributes?
To give elements additional info and provides easier access towards customization in css styling
Give an example of an HTML entity (escape character)
© ; , and ® ;
How do block-level elements affect the document flow?
Elements will always appear to start on a new line in the browser window.
How do inline elements affect the document flow?
Some elements will always appear to continue on the same line as their neighboring elements.
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 and height: auto
What is the difference between an ordered list and an unordered list in HTML?
ordered list <ol> creates list items <li> with numbers set to be preformed in order, while unordered list <ul> creates list items <li> with bullet points.
Is an HTML list a block element or an inline element?
block element
What HTML tag is used to link to another website?
The <a> or anchor tag</a>
What is an absolute URL?
The full web address for the site is in the href. Always include the “https://”.