11.7-11.11 Weeks Summary (i)

Source: Internet
Author: User

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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.