CSS
Use an external style sheet when you want to apply the same style consistently across all or part of a Web page on a site. defining styles in one or more external style sheets and linking them to all pages ensures consistent appearance across all pages . If people decide to change the style, they only need to be modified once in the external style sheet, and the change will be reflected on all pages linked to the style sheet. Usually external style sheets are file extensions with. css, such as MYSTYLES.CSS. Then link it in a page that requires this style.
This is a kind of design language that can really achieve the separation of Web performance and content. Compared to the performance of traditional HTML, CSS can control the placement of objects in the Web page with pixel-level precision, support almost all font size styles, have the ability to edit Web objects and model styles, and be able to conduct preliminary interaction design, is currently based on the best performance design language text display.
<link rel= "stylesheet" href= "/css/font.css"/>
DIV (the position and hierarchy of cascading style sheet cells)
DIV is the positioning technique in cascading style sheets, and the full name division is divided.
Div is also called integer division in programming, that is, a quotient of integers. A DIV element is an element that provides the structure and background for the contents of a chunk (Block-level) within a document for HTML (an application under the standard Universal Markup Language).
<div class= "container" id= "container" > Define div's name
Class is the set of label classes, the class attribute is used to specify which style the element belongs to, and the ID is the identity of the set label that defines the unique style of an element.
The ID is a label that distinguishes between different structures and content, like your name, and if a room has 2 people with the same name, there will be confusion;
Class is a style that can be set on any structure and content, like a garment;
The ID is the first to find the structure/content, and then to define the style, class is to define a style, and then set to multiple structures/content.
Table
The table is defined by the <table> tag.
Each table has several rows (defined by the <tr> tag) and each row is split into several cells (defined by the <td> tag). The letter TD refers to the table data, which is the contents of the data cell. Data cells can contain text, pictures, lists, paragraphs, forms, horizontal lines, tables, and so on.
The table header is defined using the <th> tag.
<table> |
Defining tables |
<caption> |
Defines the table title. |
<th> |
Defines the table header for the table. |
<tr> |
Defines the row for the table. |
<td> |
Defines a table cell. |
<thead> |
Defines the header of the table. |
<tbody> |
Defines the body of the table. |
<tfoot> |
Defines the footer of the table. |
<col> |
Defines the properties used for table columns. |
<colgroup> |
Defines the group of table columns. |
<c:forEach>
In the development of JSP, iteration is the most frequently used operation. For example, a row-by-line display of the results of a query. The function of the < c:foreach> tag is to iterate over the contents of the output tag. It can either perform a fixed number of iterations, or determine the number of iterations depending on the number of objects in the collection.
The syntax definition for the <c:forEach> tag is as follows.
<c:foreach var= "name" items= "expression" varstatus= "name"
begin= "expression" end= "expression" step= "expression" >
Body Content
</c:forEach>
The <c:forEach> tag has some of the following properties:
L var: the name of the iteration parameter. The name of the variable that can be used in the iteration to represent each iteration variable. Type is string.
L Items: the collection to iterate. The types that it supports are explained below.
L Varstatus: The name of the iteration variable that represents the state of the iteration and can access information about the iteration itself.
L Begin: If items are specified, the iteration begins with Items[begin] and, if items are not specified, iterates from begin. Its type is an integer.
L End: If items are specified, the iteration ends at Items[end], and if items are not specified, end the iteration at end. Its type is also an integer.
L Step: The step size of the iteration.
This article is from the "Programmer's Training" blog, make sure to keep this source http://zhoum1118.blog.51cto.com/10054110/1629531
Java Web JSP syntax detailed