prep-html-qna Flashcards
How do link to a file in the same folder as the current HTML document?
use <a> tags with href in HTML File paths</a>
../ - for pathing one folder above
/ pathing to another folder
What tags are necessary for a complete HTML Skeleton?
the type of document it will be for an HTML5 document !DOCtype html
html element - which the doc begins and ends in
body - visible part of the document
What type of content belongs within the head of an HTML document?
Any part containing meta information of the document
i.e. title goes in the head
What type of content belongs within the body of an HTML document?
the element defines the document’s body
is a container for all the visible contents, such as headings, paragraphs, images, hyperlinks, tables, lists
Where must the DOCTYPE declaration appear in a valid HTML document?
Above the html element at the very top of the document
Do all HTML elements require a closing tag?
no, some have self closing
i.e. img tag
What are attributes for in HTML?
provide additional information about elements and is defined in the start tag with “a”
usually come in name/value pairs like: name=”value”
What is the purpose of the alt attribute used on img elements?
tag specifies an alternate text for an image if the image cannot be displayed
How many heading elements are available in HTML?
6
h1, h2, h3, h4, h5, h6
each heading gets progressively smaller in font size
How do you link to a file in a folder one level up from the folder containing the current HTML document?
../
What is an absolute file path on the Web?
the full URL to a file
What is a relative file path on the Web?
points to a file relative to the current page
What is a hyperlink?
used to link from one page to another