Week 1 Flashcards
Where do you put non-visible content about the HTML document?
<head> element
</head>
Where do you put visible content about the HTML document?
<body> element
</body>
Where do the <head> and <body> tags go in a valid HTML document?
The <head> goes after <html> and before <body>. <body> goes after the <head> and before the closing tag </html>.
What is the purpose of a <!DOCTYPE> declaration?
To let the browser know which version of HTML we are using and for this case we are using HTML5.
Give 5 examples of HTML element types?
<head>, <body>, <a>, <html>, <p>
</p></html></a></body></head>
What is the purpose of HTML attributes?
The purpose of the HTML attributes is to provide more information about the contents of an element by adding attributes to change anything about the contents.
Give an example of an HTML entity (escape character).
Copyright symbol: © or ©
How do block-level elements affect the document flow?
Elements that will always appear on a new line. Takes a block out of the document.
How do inline elements affect the document flow?
Elements that continue on the same line as their neighbouring elements.
What are the default width and height of a block-level element?
The default height of a block-level element is the height of the content. The default width of a block-level element is the length of the page. The width and height can also be adjusted using CSS styling.
What are the default width and height of an inline element?
The default width and height of an inline element is according to the element that it is in.
What is the difference between an ordered list and an unordered list in HTML?
An ordered list (<ol>) numbers the list. The unordered list (<ul>) puts the list into bullet points.
Is an HTML list a block element of an inline element?
A block element.
What HTML tag is used to link to another website?
<a> tag</a>
What is an absolute URL?
Has the https and is the entire link to another website
What is a relative URL?
When you are linking to other pages within the same site, you do not need to specify the domain name in the URL. You can use a shorthand known as relative URL. It does not have https
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.
How do you indicate the relative link to a child directory?
The name of the child folder, followed by a forward slash, then the file name,
How do you indicate the relative link to a grand parent directory?
Use ( ../ ) twice: ( ../../ ) to indicate that you want to go up two folders (rather than one), then follow it with the file name.
How do you indicate the relative link to the same directory?
Use the file name.
What is the purpose of an HTML form element?
The purpose is to collect information from visitors to your site.