HTML

Pataasin ang iyong marka sa homework at exams ngayon gamit ang Quizwiz!

Paragraph Tag

<p>

How would you insert an image into an HTML page?

Use the <img> tag, then use the 'src' attribute and set it equal to the file path or URI of the resource.

How would you make a table in an HTML page?

Use the <table> tag, using <tr> tag for a new row and either <th> for header cells and <td> for regular cells

How would I add a link to another HTML document in the current HTML document?

Use the anchor <a> element and set the attribute 'href' to the filepath or URL of the page.

What is the class attribute?

Used to associate an element with a style sheet, and specifies the class of the element.

What is the title attribute?

Used to give a suggested title for the element.

What are the two most common values used with the target Attribute?

_blank - Opens the linked document in a new window. _self - Opens the linked document in the same frame

What is the ID attribute?

Used to uniquely identify any element within an HTML page.

What is an HTML form?

Used when you want to collect some data from the site visitor.

How do you write a comment in HTML?

<!-- comment text here -->

Break Tag

<br/>

What are three different ways that you can add styles to an HTML document

Add the style inline by setting the value of the element's style attribute, define styles within the document between <style> tags, and import an external style sheet in the <link> tag in the <head>

What is an attribute?

Additional pieces of information associated with an element.

What is a void element?

An element that does not need to be closed such as <img />, <hr />

If i want to submit a form with a particular element that I do not want the user to see is being submitted, what type should I assign to it?

Assign the input element's 'type' attribute the value 'hidden' and set the value of the input element equal to the value you want to submit.

What are three ways to specify color properties?

By defined color ("black"), hexadecimal (#000000), or rgb(0, 0, 0).

What is the input tag used for?

Inside of a form, the <input> tag allows the user to enter information into the form.

What is an HTML element?

Defined by a starting tag. If an element contains other content, it ends with a closing tag

What is HTML?

HTML stands for Hypertext Markup Language. Hypertext - The way in which Web pages are linked together Markup Language - A text document with tags that that tell a Web browser how to structure it to display

What are the four core attributes of HTML attributes

Id, Title, Class, and Style

What CSS selectors you can use to access all HTML elements of a certain type, id, or class?

Just use the name of the element to select by element, use '#' to select elements by id, and use '.' to select elements by class.

What are the two parts of an attribute?

Name - The property you want to set Value - What you want the value of the property to be set; always put in quotations

Will a disabled form element be submitted with the rest of the form?

No.

How would you set a background for an element?

Set the background attribute for the element equal to the something.

What are some different values that you can assign to the input element type attribute and what data can you collect?

text - Sets the value of the input element equal to the text entered password - Masks the input of the text entered into the text box, but the value of the input attribute is equal to the text entered. radio - Allows you to select only one of several possible values to assign to the value attribute. checkbox - Allows you to set the value of the input element to 'on or off

What is required to create an HTML document

<!DOCTYPE html> - Defines the document type and HTML version <html> - The root tag for every HTML document <head> - Mainly comprised of document metadata <body> - Represents the document's body which contains all of the elements on the page

What is the difference between the <div> and <span> elements

<div> groups multiple element elements together in a block. <span> groups inline elements only.

Heading Tags

<h1> <h2> <h3> <h4> <h5> <h6>

How to make text Italic? Bold? Underline?

<i>, <b>, <u> inside of the <body>

What are three types of list tags you can use on an HTML document?

<ul> - Unordered list with plain bullets <ol> - Ordered list using a numbering scheme to list items <dl> - Definition list - Arranges your items in alphabetical order

What are some of the form attributes that you can set for the form?

action = path to a back-end operation to process the data passed by the form method - The HTTP method used to send the request, most frequently 'GET' and 'POST'


Kaugnay na mga set ng pag-aaral

5-2 Properties of Quadratic Functions in Standard Form

View Set

13; The British Invasion Continues

View Set

EMT - O2 delivery, tanks, rates, and masks

View Set