HTML day 1 Flashcards
Where do you put non-visible content about the HTML document?
Head Tags
Where do you put visible content about the HTML document?
Body Tags
Where do the and tags go in a valid HTML document?
Head Tags go under HTML Tag and Body Tags go under Head Tags
What is the purpose of a declaration?
The DOCTYPE declaration is an instruction to the web browser about what version of HTML the page is written in.
Give five examples of HTML element tags.
The most commonly used block-level elements are <div> , <p> , </p><h1> through <h6> , </h6></h1> , <ol> , </ol><ul> , <li> , and so on. Whereas, the commonly used inline-level elements are <img></img> , <a> , <span> , <strong> , <b> , <em> , <i> , <code> , , , etc.</code></i></em></b></strong></span></a></li></ul></div>
What is the purpose of HTML attributes?
HTML attributes provide additional information about HTML elements.
Give an example of an HTML entity (escape character).
copyright = © registered trademark = ®
How do block-level elements affect the document flow?
In the normal flow, block-level elements stack on top of one another.
How do inline elements affect the document flow?
inline elements fill the available space and only take as much width as necessary
What are the default width and height of a block-level element?
All block level elements inherit the width of their parent element by default.
What are the default width and height of an inline element?
Any height and width properties will have no effect to inline element.
What is the difference between an ordered list and an unordered list in HTML?
ordered list is numbered and unordered list will use 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?
anchor tag.
What is an absolute URL?
An absolute URL starts with the domain name for that site, and can be followed by the path to a specific page. If no page is specified, the site will display the homepage.