HTML Flashcards
What is an absolute URL?
It is the full web address for a site.
What is a relative URL?
They are a shorthand way of telling the browser where to find your files.
What other ways can we use an anchor tag?
- Links from one website to another 2.Links from one page to another on the same website 3. Links from one part of a web page to another part of the same page 4. Links that open in a new browser window 5. Links that start up your email program and address a new email to someone
How do you indicate the parent folder in a path?
../
How do you indicate the child folder in a path?
just folder name
How do you indicate the grand parent folder in a path?
../../
How do you indicate the current folder in a path?
./
What are the six primary HTML elements for creating tables?
What purpose do the and elements serve?
is used to group header content in an HTML table and is used to group the body content in an HTML table
Give two examples of data that would lend itself well to being displayed in a table
data with multiple dates, students, or time
Why are forms useful?
Because it allows an interaction between a user and a website/application. (Forms allow users to enter data, which is generally sent to a web server for processing and storage, or used on the client-side to update the interface in some way.
What attribute do you have to match between a label and an input?
label’s for and input’s id attribute.
What type of input allows you to select multiple items in a dropdown?
You can use tag and tags inside the tag.
What is the action of a form?
The action attribute defines the location (URL) where the form’s collected data should be sent when it is submitted
What is the purpose of an HTML form element?
To capture user input.
Give five examples of form control elements.
text input, checkboxes, radio box, select box, file select, submit and reset buttons, etc.
Give three examples of type attributes for HTML elements.
text, submit, radio, checkbox, etc.
Why would we choose specific element types when we have elements such as div and span which can be used for anything?
Div and span are just containers for the content and we use specific element in many cases because they come with more functionality. like h1 gives you larger font size, select and option tags let you select.
readability search engines etc
What factors contribute to a well-designed HTML doc?
DOCTYPE, opening and closing html tags, head body and title tags, separate css and html, js files.
Name three different types of values you can use to specify colors in CSS
rgb values, hex color, color names
What CSS properties make up the box model?
content, padding, border, and margin box
Which CSS property pushes boxes away from each other?
margin
Which CSS property pushes box content away from its border?
padding
What are three important considerations for choosing fonts?
Readability, demographics, accessibility, sticking with your theme of your website.
Why must you have backup fonts assigned when selecting custom fonts?
Because some browsers don’t support some fonts.
What purpose does the CSS Cascade serve?
It determines which styles can be applied to an element and the cascade controls all CSS priorities.