成人无码视频,亚洲精品久久久久av无码,午夜精品久久久久久毛片,亚洲 中文字幕 日韩 无码

資訊專欄INFORMATION COLUMN

1.HTML小結(jié)

UnixAgain / 1444人閱讀

摘要:基本標(biāo)簽最大的標(biāo)題最小的標(biāo)題這是一個段落。標(biāo)簽分割每行,標(biāo)簽分割每列,表示表頭。框架表單蘋果香蕉櫻桃標(biāo)簽包含表單元素,表示跳轉(zhuǎn)目標(biāo)鏈接,為表單提交方式。標(biāo)簽為翻頁選擇框。實(shí)體等同于等同于等同于

HTML 基本文檔

DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>文檔標(biāo)題title>
head>
<body>
可見文本...
body>
html>
  • html文件聲明。
  • charset="UTF-8"文檔編碼聲明。
  • 定義關(guān)于HTML文檔的元數(shù)據(jù),會被瀏覽器解析,主要有三類屬性,name,content,http-equiv。

基本標(biāo)簽(Basic Tags)

<h1>最大的標(biāo)題h1>
<h2> . . . h2>
<h3> . . . h3>
<h4> . . . h4>
<h5> . . . h5>
<h6>最小的標(biāo)題h6>
 
<p>這是一個段落。p>
<br> (換行)
<hr> (水平線)

文本格式化(Formatting)

<b>粗體文本b>
<code>計算機(jī)代碼code>
<em>強(qiáng)調(diào)文本em>
<i>斜體文本i>
<kbd>鍵盤輸入kbd> 
<pre>預(yù)格式化文本pre>
<small>更小的文本small>
<strong>重要的文本strong>
 
<abbr> (縮寫)
<address> (聯(lián)系信息)
<bdo> (文字方向)
<blockquote> (從另一個源引用的部分)
<cite> (工作的名稱)
<del> (刪除的文本)
<ins> (插入的文本)
<sub> (下標(biāo)文本)
<sup> (上標(biāo)文本)

鏈接(Links)

普通的鏈接:<a href="http://www.example.com/">鏈接文本a>
圖像鏈接: <a href="http://www.example.com/"><img src="URL" alt="替換文本">a>
郵件鏈接: <a href="mailto:webmaster@example.com">發(fā)送e-maila>
書簽:
<a id="tips">提示部分a>
<a href="#tips">跳到提示部分a>

圖片(Images)

<img src="URL" alt="替換文本" height="42" width="42">
  • alt屬性當(dāng)圖片無法加載時,圖片文本將會顯示。

樣式/區(qū)塊(Styles/Sections)

<style type="text/css">
h1 {color:red;}
p {color:blue;}
style>
<div>文檔中的塊級元素div>
<span>文檔中的內(nèi)聯(lián)元素span>

無序列表&有序列表


<ul>
    <li>項目li>
    <li>項目li>
ul>


<ol>
    <li>第一項li>
    <li>第二項li>
ol>

自定義列表

<dl>
  <dt>項目 1dt>
    <dd>描述項目 1dd>
  <dt>項目 2dt>
    <dd>描述項目 2dd>
dl>

表格(Tables)

<table border="1">
  <tr>
    <th>表格標(biāo)題th>
    <th>表格標(biāo)題th>
  tr>
  <tr>
    <td>表格數(shù)據(jù)td>
    <td>表格數(shù)據(jù)td>
  tr>
table>
  • 標(biāo)簽定義表格,border屬性為顯示網(wǎng)格線。
  • 標(biāo)簽分割每行,

      <
      標(biāo)簽分割每列,表示表頭。
    1. 跨行屬性設(shè)置rowspan=“2”,跨列屬性設(shè)置colspan=“2”。
    2. 框架(Iframe)

      <iframe src="demo_iframe.htm">iframe>

      表單(Forms)

      <form action="demo_form.php" method="post/get">
      <input type="text" name="email" size="40" maxlength="50">
      <input type="password">
      <input type="checkbox" checked="checked">
      <input type="radio" checked="checked">
      <input type="submit" value="Send">
      <input type="reset">
      <input type="hidden">
      <select>
      <option>蘋果option>
      <option selected="selected">香蕉option>
      <option>櫻桃option>
      select>
      <textarea name="comment" rows="60" cols="20">textarea>
       
      form>
      • 標(biāo)簽包含表單元素,action表示跳轉(zhuǎn)目標(biāo)鏈接,method為表單提交方式。
      • 標(biāo)簽中,type屬性內(nèi)容:text為文本,radio為單選按鈕,checkbox為多選按鈕,password為加密文本,submit為提交按鈕。