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 <html> element.
What is the purpose of a <!DOCTYPE> declaration?
To declare the version of HTML being used.
Give five examples of HTML element types.
<body>, <p>, <div>, <h1> to <h6>, <head>, <html>, <title>, <article>, <address>, <header>
</header></address></article></title></html></head></h6></h1></div></p></body>
What is the purpose of HTML attributes?
These are additional values that configure the elements. They make them unique.
Give an example of an HTML entity (escape character).
& amp ; & lt ; & gt ; & copy ; & reg ;
How do block-level elements affect the document flow?
A block-level element always starts on a new line and takes up the full width available (stretches out to the left and right as far as it can).
How do inline elements affect the document flow?
An inline element does not start on a new line and only takes up as much width as necessary.
What are the default width and height of a block-level element?
width: 100% of its parent container, height: auto (depends on content). selfish.
What are the default width and height of an inline element?
width: auto, height: auto; takes only as much space as needed. selfless.
What is the difference between an ordered list and an unordered list in HTML?
ol - numbered list; ul - bullet list
Is an HTML list a block element or an inline element?
block element
What HTML tag is used to link to another website?
<a> , anchor element.</a>
What is an absolute URL?
Full URL that includes the domain.
What is a relative URL?
Does not use full web address. relative path within same domain.
Difference between internet and world wide web?
Internet is the infrastructure that connects computer networks together. WWW is a way of accessing information/pages on the internet.
How do you indicate the relative link to a parent directory?
Use ../ to indicate the folder above the current one, then follow it with the file name. (../index.html)
How do you indicate the relative link to a child directory?
For a child folder, use the name of the child folder, followed by a forward slash, then the file name. (music/listings.html)
How do you indicate the relative link to a grand parent directory?
Repeat the ../ to indicate that you want to go up
two folders (rather than one), then follow it with the file name. (../../index.html)
How do you indicate the relative link to the same directory?
To link to a file in the same folder, just use the file name. (Nothing else is needed.) (index.html)
What is the overall purpose of forms?
User interaction
What is the purpose of an HTML form element?
To collect input data from users and create boundaries for the form.
Give five examples of form control elements.
input, select, textarea, option, checkboxes, radio buttons, drop-down boxes
, | , , |
---|