HTML hyperlink label tab

Keywords: Programming

Hyperlink label

Link resources

<a href= "Path to Connect to Resources"> Content displayed on the page</a>

href: Connected resource address

target: Set how to open it, by default, on the current page

_ blank: Open in a new window

_ self: Open on the current page by default

<a helf="hellow.html" target="_balnk">This is a hyperlink</a>

 

 

 

When hyperlinks do not need to go to any address, add it to href#

<a href="#"> This is a hyperlink 2</a>

Location resources

If you want to locate resources: define a location

<a name="top">Top</a>

Back to this position

<a href="#top">Back to the top</a>

Original output

<pre>

public static void main(String[] args){

   Systrm.out.println("hello");

}

                  aaaaaa

</pre>

 

Tabular label

<table  border="1"  bordercolor="blue"  cellspacing="0"  width="400"   height="150">

   <caption>Personnel information</caption>

   <tr  align="center">
        <td>Full name</td>
        <td>Gender</td>
        <td>Age</td>
   </tr>

   <tr>
        <td  align="right">Invincible Eastern</td>
        <td>male</td>
        <td>20</td>
   </tr>

   <tr>
        <td>Yue buqun</td>
        <td>female</td>
        <td>30</td>

   </tr>

   <tr>
        <th>Lin Ping Zhi</th>
        <th>male</th>
        <th>40</th>
   </tr>

</table>


 

<table  border="1"  bordercolor="red"    width="200"  >
   <tr>
        <td colspan="3">Personnel information </td>
   </tr>

   <tr>
        <td  align="right">Invincible Eastern</td>
        <td>male</td>
        <td>20</td>
   </tr>

   <tr>
        <td>Yue buqun</td>
        <td>female</td>
        <td>30</td>
   </tr>

   <tr>
       <td>Lin Ping Zhi</td>
       <td>male</td>
       <td>40</td>
   </tr>
</table>

<hr/>

<table  border="1"  bordercolor="red"  cellspacing="0"    width="200"  >
   <tr  align="center">
        <td>Full name</td>
        <td>Gender</td>
        <td>Age</td>
   </tr>

   <tr>
        <td  align="right">Invincible Eastern</td>
        <td>male</td>
        <td rowspan="3" >20</td>
   </tr>

   <tr>
        <td>Yue buqun</td>
        <td>female</td>

   </tr>

   <tr>
        <td>Lin Ping Zhi</td>
        <td>male</td>
   </tr>

</table>

Posted by carrotcake1029 on Sat, 02 Feb 2019 17:03:15 -0800