HTML Flashcards
Where do you put non-visible content about the HTML document?
Between the Head element tag eg head non-visible content /head
Where do you put visible content about the HTML document?
Between the Body element tag eg body visible content /body
Where do the and tags go in a valid HTML document?
Between the Html element tag
tag should be above tag and must be close before opening tag
What is the purpose of a declaration?
declaration defines what version of HTML the page is written in.
Give five examples of HTML element tags.
div, h1, a, p & img
What is the purpose of HTML attributes?
to provide additional information about the element
Give an example of an HTML entity (escape character).
©
®
<
&rt;
How do block-level elements affect the document flow?
Anything after the block-level element is added to new line
How do inline elements affect the document flow?
Anything after the inline element is added to same line
What are the default width and height of a block-level element?
width 100% and height auto
What are the default width and height of an inline element?
width auto and heigh auto
What is the difference between an ordered list and an unordered list in HTML?
Ordered list Used to create a list in a specific order.
Unordered list Used to create a list in no particular order.
Is an HTML list a block element or an inline element?
HTML list a block element
What HTML tag is used to link to another website?
Anchor tag is used to link another webpage
eg “<a>text content </a>
What is an absolute URL?
Contains all the information including domain name
What is a relative URL?
does not contain all information exclude domain name
How do you indicate the relative link to a parent directory?
use “../” before filename
eg “../filename”
How do you indicate the relative link to a child directory?
use “/” before the filename
eg “/filename”
How do you indicate the relative link to a grandparent directory?
using “../ ../”
eg “../../filename”
How do you indicate the relative link to the same directory?
just giving the filename of the destination file
What is the purpose of an HTML form element?
To pass user data to the server
Give five examples of form control elements.
input, textarea, button, select & option
Give three examples of type attributes for HTML input elements.
text, password, radio
Is an HTML input element a block element or an inline element?
HTML input element is an inline element
What are the six primary HTML elements for creating tables?
table, tr, td, th, thead & tbody
What purpose do the thead and tbody elements serve?
thead and tbody are used to group table rows into logical sections based on their content
Give two examples of data that would lend itself well to being displayed in a table.
Financial, stocks listing & tabluar data