html的內容

 <table  border=1  bordercolor= red  cellspacing =0  height =180 

Align=center width=400px    border=1 >

Colspan;  行的合併

     Rowspan;  列的合併

     Align=center  文字居中

     W3s 是制定web (html ,xml,css,xhtml….)標準的機構

      Html 無序列表 ulli

       <ul  type=“屬性值”>

       <li>列表內容</li>

        </ul>

       基本語法,

       <frameset  clis=“按照列的百分比分隔”rows=“按照行的百分比分隔”>

       </frameset>

      代碼;

     Aa,html

     <body bgcoior=”yellow”>

     周杰倫的歌

     </body>

     Bb,html

     

     <body>

     歌詞….

     </body>

      All.html

     <frameset  cols=”30% , *”frameborder=0>

<frame  src=”aa,html”noresize  />

<frame  src=”bb,html”  />

<frameset>

      All,html 中不能帶body標記

 

      Html 的表單元素

     介紹; html 的表單元素,主要用於讓用戶輸入數據,並提交給服務器。

      基本語法;

    <form  action=”url” method=”提交的方法(get/post )默認是‘get>

     各種元素【輸入框,下拉列表,文本域,密碼框,,,,,,

    </form>

     表單中提供給用戶的輸入形式

     Login ttml;

   

<html>

    <head>

    <title>登錄界面 </title>

</head>

<body>

<hl>登錄界面<hl>

<form action=”???” method=get

用戶名;<input  type=”text”name=”username”/><br/>

  碼;<input type=”password ” name=”pwd”/><br/>

<input  type=”submit”value=”登錄”/><input  type=’reset’ vaiue=”重新填寫”/>

</form>

</body>

</html>

從上面的案例,我們可以看出

1.表單元素的格式;

 <input  type=* name=**>

    *=text(文本框), password(密碼框),checkbox(複選框),radio(單選框),image(圖片)

Hidden(隱藏域),sudmit(提交按鈕),reset重新填寫

   **=symbolic,name,for,CGI.script

    Name;是你給該表單元素取名

    2.action 指定把請求交給那個頁面

 

    Ingput 元素的舉例說明


Html的加強

頁面空白(margin

頁面左邊的空白<body leftmargin=#>

頁面上方的空白(天頭)< body topmargin=#>    #=margin amount

1.<a href=”#”target=””></a>

 <a  href=url target=_blank> 新窗口

<a href=url  target=_self> 本窗口

<a href=url  target=_parent> 父窗口

<a href=url  target=_top> 整個瀏覽器窗口

<a href=url  target=指向 frame的名字 > 新窗口

<font  face=”#,#,…..#”>…..</font>#=客戶端可獲得字體

<hr />標尺線

 <embed>嵌入

 <table  border=1  bordercolor= red  cellspacing =0  height =180 

Align=center width=400px    border=1 >

Colspan;  行的合併

     Rowspan;  列的合併

     Align=center  文字居中

     W3s 是制定web (html ,xml,css,xhtml….)標準的機構

      Html 無序列表 ulli

       <ul  type=“屬性值”>

       <li>列表內容</li>

        </ul>

       基本語法,

       <frameset  clis=“按照列的百分比分隔”rows=“按照行的百分比分隔”>

       </frameset>

      代碼;

     Aa,html

     <body bgcoior=”yellow”>

     周杰倫的歌

     </body>

     Bb,html

     

     <body>

     歌詞….

     </body>

      All.html

     <frameset  cols=”30% , *”frameborder=0>

<frame  src=”aa,html”noresize  />

<frame  src=”bb,html”  />

<frameset>

      All,html 中不能帶body標記

 

      Html 的表單元素

     介紹; html 的表單元素,主要用於讓用戶輸入數據,並提交給服務器。

      基本語法;

    <form  action=”url” method=”提交的方法(get/post )默認是‘get>

     各種元素【輸入框,下拉列表,文本域,密碼框,,,,,,

    </form>

     表單中提供給用戶的輸入形式

     Login ttml;

   

<html>

    <head>

    <title>登錄界面 </title>

</head>

<body>

<hl>登錄界面<hl>

<form action=”???” method=get

用戶名;<input  type=”text”name=”username”/><br/>

  碼;<input type=”password ” name=”pwd”/><br/>

<input  type=”submit”value=”登錄”/><input  type=’reset’ vaiue=”重新填寫”/>

</form>

</body>

</html>

從上面的案例,我們可以看出

1.表單元素的格式;

 <input  type=* name=**>

    *=text(文本框), password(密碼框),checkbox(複選框),radio(單選框),image(圖片)

Hidden(隱藏域),sudmit(提交按鈕),reset重新填寫

   **=symbolic,name,for,CGI.script

    Name;是你給該表單元素取名

    2.action 指定把請求交給那個頁面

 

    Ingput 元素的舉例說明


Html的加強

頁面空白(margin

頁面左邊的空白<body leftmargin=#>

頁面上方的空白(天頭)< body topmargin=#>    #=margin amount

1.<a href=”#”target=””></a>

 <a  href=url target=_blank> 新窗口

<a href=url  target=_self> 本窗口

<a href=url  target=_parent> 父窗口

<a href=url  target=_top> 整個瀏覽器窗口

<a href=url  target=指向 frame的名字 > 新窗口

<font  face=”#,#,…..#”>…..</font>#=客戶端可獲得字體

<hr />標尺線

 <embed>嵌入



發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章