Html and css two days of learning

After two days of learning, I learned some HTML and CSS-based applications, then summarized:

First, including some HTML tags, such as <h1> </ h1> tag is heading, there are six different patterns of header sizes, respectively, h1 ~ h6 '; <p> </ p> tag is a paragraph; then there < u> </ u> this is underlined; <strong> </ strong> this is bold; <em> </ em> this is slanted, <img src = ""> this is the image tag, <a href = "" target = ""> </a>, this is a hyperlink label, target is set to open his way. <a name="top"> top </a> <a href="#top"> Top </a>, this is an anchor tag, first set up an anchor, then it is good with a hyperlink then you can click on the link in the past, remember to add # in front of the name of the link.

There <table> </ table> is a table, the table there are several commonly used code is the setting table cellpadding padding, cellspaceing direct distance setting table, border frame size is set, and <caption > </ caption> this is generally the first line under the under the table to make the text on the center, do the table headers;

Then into the form <tr> </ tr> with the <td> </ td>, respectively, the rows, and each row has few cells. colspan to merge column, rowspan to merge lines.

<Form> </ form> is the form, the form it is generally used for landing or a registration page, which also has a lot of labels, such as

<Input type = "text" />, the username

<Input type = "password" />, this is the password

<Input type = "radio" />, is this radio button if you want to set a button that can only point to the two buttons will be set up with a name

<Input type = "checkbox" />, this check box is

Text <input type = "submit" value = "" />, this is the submit button, value which is displayed on the button

<Input type = "reset" value = "" />, the reset button is, value which is displayed on the button text

<Input type = "hidden" />, this is the hidden items.

And <div> </ div> tag, the tag is a box

<Ul> </ ul> This is an unordered list, <ol> </ ol> This is an ordered list,

The following Table <li> </ li> represents a cell.

There is a <select> </ select> This is a drop-down box label,

<select>

<option>1999</option>

<option selected="selected">2000</option>

</select>

<Option> </ option> tag is the content written by drop-down box

selected = "selected" to add a line of code will be selected by default.

 

Guess you like

Origin www.cnblogs.com/yzxyzx/p/11220934.html