Common knowledge points of HTML

Source: Internet
Author: User

HTML Basics on page Three: HTML CSS javascript path: The relative path used when making a Web page. Images/aaa.jpg Web page in the same directory to find Images folder, and then images inside find Aaa.jpgimages/ +/aaa.jpg Web page in the same directory to find Images folder, then in images find 1000 folders, and then in 1000 folder to find Aaa.jpg./images/Aaa.jpg Find the top level file on the page, find the Images folder in the first level folder on the webpage, find aaa.jpg in the Images folder./.. /images/aaa.jpg Find the page level two file, on the Web page two folder to find Images folder, in Images folder find Aaa.jpg one, Body:bgcolorbackgroundtopmarginrightmarginbottommarginleftmarginbody attributes above are only understood. Second, the label: (a) The basic label:1. Format control:<font face="Font name"Color="Color"Size="size"></font>Font<b></b> Bold <strong></strong><i></i> Tilt <em></em><u></u >Underline<br> <pre></pre> <center></center>escape:--Need to remember&nbsp;--Spaces&lt;--less than <&gt;--greater than sign >&amp;--&&Copy;--©2. Content container:--title. By default, bold, independent line<p></p>--paragraph. Independent paragraph, by default, there will be a line of blank space before and after paragraphs. <div></div>--zone label, Layer label. Used to divide the page area and page layout. Wrap the line before and after. <span></span>--zone label, Layer label. Do not wrap around the line. <ul></ul>--unordered list label. <ol></ol>--ordered list label. <li></li>--list item label, used to put in OL or UL inside. (ii) commonly used tags:1. Hyper-Link<a href="the path to the hyperlink"target="_blank"> Hyperlinks Display content </a>Bookmarks: First step: Defining Bookmarks<a name="Book Signature"> Content </a>Step Two: Define hyperlinks<a href="page Name # book signature"> Hyperlink Text </a>2. Picture"path (relative)"Width=""height=""alt=""/>3. Picture Hyperlinks<a href="the path to the hyperlink"> "Picture Path"/> </a>(c) forms:<table></table>bgcolor: Background color. Align: How the table is aligned in the page. Width: wide pixels, percent. Border: Border width cellpadding: margin cellspacing: Pitch<tr></tr>bgcolor: Background color align: the alignment of text in this line height: high, usually pixels, or a percentage. <td></td>bgcolor: Background color align: horizontal alignment valign: Vertical alignment Width: Wide height: high colspan: The span of the column. RowSpan: The span of the row. Note: When merging cells, be sure to calculate the good grid. (iv) Forms:<form id=""Name=""action=""Method=""></form>1. Text class single-line text box:<input id=""Name=""Type="text"Value="content"/>Multiline text box:<textarea id=""Name=""Rows="Number of rows"cols="Number of columns"> Content </textarea>Password Box:<input id=""Name=""Type="Password"Value="content"/>Hidden fields:<input id=""Name=""Type="Hidden"Value="content"/>2. Button class Normal button:<input id=""Name=""Type="Button"Value="text on the button"/>Submit button:<input id=""Name=""Type="Submit"Value="text on the button"/>Reset button:<input id=""Name=""Type="Reset"Value="text on the button"/>Picture button:<input id=""Name=""Type="Image"Src="the path to the picture"Width="Wide"height="High"/>3. Select the class radio check list file
2. Foreground font: (ii) Boundary and Border border (table border, style, etc.), margin (off-table spacing). Padding (content and cell spacing).
(c) the list and block width, height, (top, bottom, left, right) are useful only in the case of absolute coordinates.

Common knowledge points of HTML

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.