Through the first week of the introduction of PHP to understand, in general, PHP has a preliminary understanding. The following is a summary of this week's study.
First of all to understand the two sites default home: Index.html and default.html.
Div
Then learn the Div, the intention of the Div is the box, but we have all the elements can be automatically wrapped as a div, that is, the box model. Some commands in the div: Background-color background color, width width, height height, float float, and clear float. Clear. There are also border borders, margin margins, padding padding, and Border-radius rounded corners.
Text
The text is added and set:
List
List:<ul> unordered list, <ol> ordered table, List-style:none, text-align:center text horizontally centered, line-height row height (sets the horizontal center of text by setting row height in the list), <li> define a list, hover select a special style on the link (available for all elements, not just links).
Image
picture: picture label, </img>, Alt function has two 1. Displays a placeholder 2 when the picture does not exist. Facilitate SEO (search engine) optimization.
Hypertext Links
Hyperlinks:<a> hyperlinks, <a herf= "addresses" ></a>,<a> tags have three functions: 1. Hyperlinks as local files 2. Hyperlink to Page 3. As an anchor, open a new page to keep the original page. <a target= "_blank" > Use the target property to define where the linked document appears </a>, text-decoration text links to remove the underline.
Table
Table:<table> table, <caption> table header, <th> header, <tr> row, <td> column, <thead><tbody> table header, and content Facilitates SEO (search engine) of the distinction, does not show any effect, colspan merge row cell, rowcolspan merge column cell, font-size font size.
Background Image
Background Image: Background-image background image URL attribute add address, background-repeat background repeat (three attributes no-repeat not repeating, repeat-x horizontal repetition, Repeat-y portrait repeat) background-size background picture size.
The first week is mainly based on getting started, for the layout of code format is more important, to clearly express their parent-child inclusion relationship, to develop a good writing habits will be very organized, convenient late code inspection and changes.
11.7-11.11 Weeks Summary (i)