快捷搜索:  汽车  科技

html基础知识笔记(HTML之基础篇)

html基础知识笔记(HTML之基础篇)

<html> <head> 标题 ---此处放置标题、导航、登录等内容 <!此处放置标题、导航、登录等内容---> </head> <body> <!此处放置页面主要内容---> <!:空格 <: 小于号 >: 大于号 ": 引号---> <p>第一段 世界大势,合久必分,分久必合。</p> <hr/> <!表示单行横线显示---> <br/> <!表示换行---> <h1> hello world html is easy</h1> <h2> hello world html is easy</h2> <h3> hello world html is easy</h3> <h4> hello world html is easy</h4> <h5> hello world html is easy</h5> <h6> hello world html is easy</h6> <p>普通字体</p> <b>粗体</b> <i>斜体</i> <del>本文字已被删除,请忽略</del> <p> hello world</p> <!段落标记---> <a href="http://www.baidu.com" target="_self"> 点击进入百度</a> <br/> <img src="http://mysite.com/mypic.png" alt="网站作者照片"> <h3> 普通无边框表格:</h3> <table> <tr> <td>row 1 cell 1</td> <td>row 1 cell 2</td> <td>row 1 cell 3</td> </tr> <tr> <td>row 2 cell 1</td> <td>row 2 cell 2</td> <td>row 2 cell 3</td> </tr> </table> <h3>带表头,有边框,有跨列单元:</h3> <table border="1"> <tr> <th>head1</th> <th>head2</th> <th>head3</th> </tr> <tr> <td>row 1 cell 1</td> <td>row 1 cell 2</td> <td>row 1 cell 3</td> </tr> <tr> <td>row 2 cell 1</td> <td>row 2 cell 2</td> <td>row 2 cell 3</td> </tr> </table> <h3>三种列表的表达方式:</h3> <table cellpadding="2" cellspacing="2"> <tr> <td> <ul><li>python</li> <li>c </li> <li>java</li> <li>golang</li></ul> </td> <td> <ol><li>python</li> <li>c </li> <li>java</li> <li>golang</li></ol> </td> </tr> </table> <dl> <dt>CPU</dt><dd>处理器</dd> <dt>MEM</dt><dd>内存</dd> </dl> <body bgcolor="#FF0000"> <body bgcolor="RGB(255 0 0)"> <body bgcolor="RED"> <p>视频</p> <object classid="clsid:d27sfsfstqwetsasasdfsdfs" codebase="http://fpdownload.macromedia.com/pub/shckwave/cabs/flash/swflash.cab"> <embed src="flashfile.swf" width="300" height="200"></embed> </object> <br/> <p>音频</p> <audio controls="crontrols"> <source src="sample_song.mp3" type="audio/mp3" /> </audio> <br/> <p>视频</p> <video controls="controls"/> <source src="sample_video.mp4" type="video/mp4"> </video> <p>html表单---文本输入</p> <table> <tr> <td>用户名:</td> <td><input type="text" name="name"></td> <td>密码:</td> <td><input type="password" name="pass"></td> </tr> <tr> <tdcolspan="4"> <textarea name="comment" rows="5" cols="60"> </textarea></td> </tr> </table> <table> <tr> <td>性别:</td> <td>用户名:</td> <td>男性<input type="radio" checked='checked' name="sex" value="male" /></td> <td>女性<input type="radio" checked='checked' value="female" /></td> </tr> <tr> <tdcolspan="4"> <textarea name="comment" rows="5" cols="60"> </textarea></td> </tr> </table> </body> </html>

html基础知识笔记(HTML之基础篇)(1)

猜您喜欢: