Test 1 Study Guide Flashcards
What HTML tag is used for adding a css stylesheet?
The HTML tag to add a CSS stylesheet is:
What are the main HTML tags that make up a website?
The main HTML tags that make up a website are:
HTML, HEAD, BODY
How can CSS be added to HTML?
CSS can be added to HTML through three main ways:
- Use of the tag.
- Use of the style property within an HTML tag.
- Embedding a stylesheet in the header using a LINK tag.
What is a CSS selector?
A CSS selector is a statement within a CSS stylesheet that modifies the behavior of selected elements of HTML. They begin with the element name, followed by a pair of curly braces. Properties are set by using a property name, followed by a colon, followed by the property value, ending with a semicolon.
What HTML tag would you use to create a first-level headline?
A first-level header would be created by using an H1 tag.
What would a CSS selector changing a first-level headline’s font-color to green look like?
Such a selector would look like:
h1 {
color: green;
}
Special characters in computer languages are called tokens. Which language tokens in HTML will open and close tags?
The HTML tokens used to open and close tags are the carrots.
What is the very first thing that must go into an HTML document’s code?
The first thing that must go into an HTML document’s code is the !DOCTYPE tag.
How do you set the character type in HTML?
The character type is set in HTML with . It goes into the HEAD tag.
How do you add a link in HTML?
Links in HTML are created using the anchor tag, a:
<a></a>
What HTML tag is used to add javascript to a web doc?
To add a javascript document to an HTML document, you use the SCRIPT tag, with the src property directed to the location of the javascript.
What is the location object?
The location object contains information about the current URL, and can be accessed as part of the “window” object, as window.location.
What HTML tag is used to create a form?
The FORM tag is used to create the base of a form.
What are the main HTML form input elements?
The main HTML form elements are: Text Textarea Button Radio Submit Select Select Multiple
In HTML forms, what is the action attribute?
In HTML forms, the action attribute serves to define the action that should be performed when the form is submitted. It is an attribute of the FORM element.