HTML Basic Operations

Source: Internet
Author: User

Page Three part content: 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.jpg
Images/1000/aaa.jpg Web page in the same directory to find Images folder, then in images find 1000 folders, and then in 1000 folders to find Aaa.jpg
.. /images/aaa.jpg find the first level file on the page, find the Images folder in a folder on the page, find the aaa.jpg in the Images folder.
.. /.. /images/aaa.jpg find the level two file on the page, find the Images folder in the level two folder on the webpage, find the aaa.jpg in the Images folder.

First, Body:
bgcolor background color
Background background image
TopMargin Top Margin
RightMargin
BottomMargin
LeftMargin
The properties above the body are only understood.

Second, the label:
(a) 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> line breaks are not segmented
<pre></pre> Paragraph
<center></center> Center
Escape:--Need to remember
&nbsp;--spaces
&lt;--, less than <
&gt;--, greater than >
&amp;--&
&copy; ——?

2. Content container:
<p></p>--paragraph. Independent paragraph, by default, there will be a line of blank space before and after paragraphs.

<div></div>--area label, Layer label. Used to divide the page area and page layout. Wrap the line before and after.
<span></span>--area label, Layer label. Do not wrap around the line.


<ul></ul>--unordered list label.
<ol></ol>--an ordered list label.
<li></li>--list item label, used to put in OL or UL inside.

(ii) commonly used tags:
1. Hyperlinks
<a href= "path to HYPERLINK" target= "_blank" > Hyperlinks display </a>
Bookmark:
First step: Define bookmarks <a name= "book signature" > Content </a>
Step two: Define the Hyperlink <a href= "page name # book signature" > Hyperlink text </a>

2. Picture

3. Photo hyperlinks
<a href= "path to HYPERLINK" > </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: How text is aligned in this line
Height: High, usually pixel, also can set 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= "Rows" cols= "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= "on the text"/>
Submit button: <input id= "" Name= "" type= "Submit" value= "button text"/>
Reset button: <input id= "" Name= "" type= "reset" value= "button text"/>
Picture button: <input id= "" Name= "" type= "image" src= "Picture path" width= "width" height= "High"/>


3. Select Class
Radio
Check
List
File


(v) Framework:

HTML Basic Operations

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.