Chapter 2 Flashcards
Heading tag?
Series of tag between 1 and 6
The number represents the size of text that will be used in displaying the heading on the browser.
What are block elements?
Elements that force anything after the element to be positioned on the next line in the browser
What are inline elements?
Elements that do not force markup following it to appear on the next line, but will position it horizontally next to it.
What does id and class attribute do?
apply changes to the font size, type, color, and so on, through CSS.
What are anchors and hyperlinks?
<a> tag, named the anchor, is an inline element that is used to group text together that will be hyperlinked to another location or URL.</a>
</a><a>
Products
</a>
What does ?
Highlights a text
abc
What is a ordered list?
An ordered list contains items that will be displayed in numeric order.
What is a unordered list?
An Unordered List contains items that will not be displayed with numbers, but rather bullets will be used to display the list items
What is a description list?
A description list is used for a list of terms or items that will be defined or described. Look at the example code below and output that will display in the browser window.
What are the primary tags used to create tables?
The primary tags used when creating tables are , , , and . The element is used to define the table, but will display nothing without at least one row and one column. The element, called the table row, is used within to define a row in the table. Rows span horizontally across the page from left to right. All elements must contain at least one column that is created using the tag. The tag is used to create a column, but stands for table data because content and elements that are placed in the table must be defined within the table data tag
What is semantic elements?
Semantic elements use tag names that are easy to identify the type of content such as the <img></img> which represents an image, or which represents a table of data. Semantic elements are much more important in terms of the ability for search engines and other applications that would like to analyze and understand the content on your site.
What is form elements?
Forms and the elements within forms are used to collect input from the user. Those elements used to collect input from the user are called form elements.
What attribute should be set with element?
Action and method attribute
What is method attribute?
The method attribute describes how the data will be set. The method attribute can be set to post or get. The post value for the method attribute should be used most of the time to protect the data that is being sent, because the get value will send the data through the URL with name=value pairs of data. Therefore, if the data is being sent through the URL then the data is visible to the user if they know what to look for in the URL. Furthermore data sent using the post method is encrypted if the web server hosting the web application has an SSL certificate installed.
What is an action attribute?
The action attribute is used to specify the file that the data will be sent to. Forms can send the information to itself, meaning that the data in the form elements will be sent back to itself and will be collected by the same page that posted it through JavaScript or server-side processing like ASP.NET or PHP. If the action attribute is not set then the form will automatically post the data to itself.