Microsoft PowerPoint - HTML.pptx

Similar documents
p.2 1 <HTML> 2 3 <HEAD> 4 <TITLE> </TITLE> 5 </HEAD> 6 7 <BODY> 8 <H3><B> </B></H3> 9 <H4><I> </I></H4> 10 </BODY> </HTML> 1. HTML 1. 2.

A-1 HTML A-1-1 HTML 1 HTML JSP HTML HTML HTML JSP A HTML HTML HTML HTML HTML HTML HTML HTML.htm.html HTML Windows NotePad HTML IE [ / ] NotePad A-2

5-1 nav css 5-2

RUN_PC連載_10_.doc

XHTML width/height bdo a code href object charset codebase hreflang archive lang type alt dir name name xml:lang rel/rev align shape/coords hspace/vsp

Microsoft Word - PHP7Ch01.docx

互動網頁技術系列課程 HTML與CSS網站基礎設計 [12pt]

A-2 l 跨裝置網頁設計 A-1 <frameset> <frame> <noframes> (frame) HTML (navigation bar)

關於本書 Part 3 CSS XHTML Ajax Part 4 HTML 5 API JavaScript HTML 5 API Canvas API ( ) Video/Audio API ( ) Drag and Drop API ( ) Geolocation API ( ) Part 5

(CIP) Web /,. :, ISBN X.W T P393.4 CIP (2004) Web ( ) ( / ) : * 787

01

IsPostBack 2

13 根 据 各 种 网 络 商 务 信 息 对 不 同 用 户 所 产 生 的 使 用 效 用, 网 络 商 务 信 息 大 致 可 分 为 四 级, 其 中 占 比 重 最 大 的 是 ( A ) A 第 一 级 免 费 信 息 B 第 二 级 低 收 费 信 息 C 第 三 级 标 准 收 费

Microsoft PowerPoint - Ch00-4-XHTML.ppt [相容模式]

RUN_PC連載_8_.doc

final

Microsoft Word - 第3章.doc

HTML5 & CSS3 色彩 背景與漸層屬性 12-1 (color property) CSS 3 color HTML opacity HTML CSS Color Module Level 3 W3C CSS

Microsoft PowerPoint - ch15_1.ppt

Chapter V.S. PC

untitled

Microsoft Word - 01.DOC

ebook4-12

PowerPoint 演示文稿

關於本書 l 3 PhoneGap Appcelerator Titanium Sencha Touch (wrapper framework) Native App PhoneGap Build Native App Hybrid App Java Objective-C Android SDK

Microsoft Word 年12月號墾汀排版.doc

ii Vue Bootstrap 4 ES 6 Vue Vue Bootstrap 4 ES 6 Vue 2 vue html vue html vue Vue HTML 5 CSS ES 6 HTML 5 CSS Visual Studio Code h

2.4 Selenium Python Selenium Selenium Selenium Selenium pip install selenium Chrome WebDriver Google Chrome (Linux, Mac, Windows) Chrome WebDriv

untitled

untitled

1 1 大概思路 创建 WebAPI 创建 CrossMainController 并编写 Nuget 安装 microsoft.aspnet.webapi.cors 跨域设置路由 编写 Jquery EasyUI 界面 运行效果 2 创建 WebAPI 创建 WebAPI, 新建 -> 项目 ->

1. 2. Flex Adobe 3.

讀 經 進 度 表 ( : 一 年 讀 經 進 度, : 二 年 讀 經 進 度 ; 完 成 後 請 圈 選 喔! ) Sun Mon Tue 西 1 西 2 西 3 西 4 雅 2 帖 前 1 帖 前 2 雅 3 雅 4 加 1 加 2 加 3 來 7 來

Microsoft Word 年6月號墾汀排版.doc

大漠 伪前端, 就职于淘宝

ebook37-4

<img>

WWW PHP

Chapter 09 專題 : 網站留言版 Python - Django

(Microsoft Word \246~\253\327\276\307\256\325\263\370\247i_\252k\271\316\256\325\270\263\267|\263q\271L_ _)

MITSUBISHI

台湾项目书

Microsoft PowerPoint - ch07_1.ppt

epub 94-3

6-1 Table Column Data Type Row Record 1. DBMS 2. DBMS MySQL Microsoft Access SQL Server Oracle 3. ODBC SQL 1. Structured Query Language 2. IBM

Perl


導讀 ASP.NET HTML ASP 第一篇 基礎篇第 1 章 認識 ASP.NET ASP.NET ASP.NET ASP.NET ASP.NET 第 2 章 認識 Visual Studio 20 開發環境 Visual Studio 20 Visual Studio 20 第二篇 C# 程式

Fuzzy Highlight.ppt

Microsoft Word - template.doc

网 页 设 计 实 训 教 程 1.4 实 现 过 程 任 务 1: 制 作 诗 词 欣 赏 页 面 步 骤 1: 打 开 编 辑 环 境, 创 建 HTML 文 档 1 1.html, 保 存 到 指 定 位 置, 在 文 档 中 输 入 HTML 文 档 的 基 本 结 构, 代 码 如 下 :

Microsoft PowerPoint - HTML(3)

coverage2.ppt

Professional Ajax Ajax Adaptive Path, LLC Jesse James Garrett Ajax php Garrett WebG

ebook60-13

VB控件教程大全

( )

C/C++程序设计 - 字符串与格式化输入/输出

Microsoft Word htm

epub 61-2

Python a p p l e b e a r c Fruit Animal a p p l e b e a r c 2-2

基于UML建模的管理管理信息系统项目案例导航——VB篇

利用ASP访问数据库的操作

春 新 春 年 貨 年 菜 來 這 買 市 場 超 人 氣 美 食 增 添 豐 富 團 圓 好 滋 味 來 臺 北 過 好 年 2 月 4 日 熱 鬧 登 場 盡 情 揪 團 享 受 11 處 商 圈 新 春 採 買 樂 趣 妝 點 花 樣 生 活 花 開 富 貴 過 好 年 最

AL-M200 Series

WARNING RISK OF ELECTRIC SHOCK DO NOT OPEN AVIS RISQUE DE CHOC ELECTRIQUE NE PAS OUVRIR S3125A Ct-2



TX-NR3030_BAS_Cs_ indd

引 例 3 现 实 生 活 中 的 电 子 商 务 案 例 1 王 小 姐 是 一 家 网 络 公 司 职 员, 现 在 已 经 是 有 八 个 月 身 孕 的 准 妈 妈 由 于 出 行 不 是 很 方 便, 但 是 又 要 购 置 一 些 孕 妇 与 婴 儿 出 生 后 的 物 品 于 是 来

FileMaker 15 WebDirect 指南

Transcription:

HTML 4/5 WWW (World Wide Web) HTML (HyperText Markup Language) HTML (text) (tags) (web browser) ( 50 ) : IE Firefox, Safari, Google Chrome, Edge HTML 4.0 1 <HTML> index.htm, default.htm, abc.php, xyz.asp <HEAD> <TITLE> </TITLE> <STYLE> </STYLE> <SCRIPT>javascript</SCRIPT> </HEAD> <BODY> 5A12 2874-3121,,,, </BODY> </HTML> TAG HTML 4.0 2

/: http://www.ablmcc.edu.hk/~scy/home/ : http://www.ablmcc.edu.hk/~scy/cprogram/ <html> <head> <title> </title> </head> browser <body> </body> </html> \n <p> <br> paragraph break HTML 4.0 3 hyperlink (anchor) Hot Mail Mr. Szeto <a href="http://www.homail.com">hot Mail</a> Yahoo <br> Mr. <a href="http://www.ablmcc.edu.hk/~scy/">szeto</a> <br> <a href="http://www.yahoo.com" target ="_blank">yahoo</a> image <img src="school.gif"> <img src="school.gif" align="left" width="10" height="15" alt="sch logo"> <img src="images/school.gif" align="right"> <img src="images/school.gif" align="center"> HTML 4.0 4

1-7 <font size="1">=1 </font><p> <font size="2">=2 </font><p> <font size="3">=3 </font> <p> <font size="4">=4 </font><p> <font size="5">=5 </font><p> <font size="6">=6 </font><p> <font size="7">=7 </font><p> <font size="99">=99 </font><p> <font size="+3">=+3</font><p> <basefont size="7" face="arial" color="#0000ff"> <font size="6" color="#ff0000" face="verdana">abc College</font> http://www.ablmcc.edu.hk/~scy/home/javascript/selcolor.htm HTML 4.0 5 <strong> Strong </strong> <b> Bold </b> <i> Italic </i> <u> Underline </u> <em> Emphasize </em> <sup> 3 Superscript </sup> <sub> 2 Subscript </sub> <tt> Teletype </tt> <big> Big </big> <small> Small <small> X<sup>3</sup> <p> y<sub>2</sub> y<sub>1</sub> X 3 y 2 y 1 HTML 4.0 6

Heading 1-6 <h1> Heading 1</h1> <h2> Heading 2</h2> <h3> Heading 3</h3> <h4> Heading 4</h4> <h5> Heading 5</h5> <h6> Heading 6</h6> <h1 align="center">html</h1> <hr> = horizontal line <hr size=5 width=50% align=center color=red noshade> HTML 4.0 7 : myself.htm <p align="left"></p> <p align="center"></p> <p align="right"></p> <center> </center> Login: cs1xx 5A12 2874-3121 / / table : (e.g. ) (/) HTML 4.0 8

Hyper link & Book mark? <a href="#answer"></a> <blockquote> <p> <p> <blockquote> <p> <p> </blockquote> </blockquote> <a name="answer"> HTML 4.0 9 Unordered List <ul> <li>hk</li> <li>kln</li> </ul> <ul type="disc"> <li>hk</li> <li>kln</li> </ul> <ul type="circle"> <li>hk</li> <li>kln</li> </ul> <ul type="square"> <li>hk</li> <li>kln</li> </ul> <ul> <li type="disc"> HK</li> <li type="circle">kln</li> <li type="square">nt</li> </ul> HK Kln HK Kln HK Kln HK Kln NT Ordered List <ol> <li>hk</li> <li>kln</li> </ol> <ol type="1" start="11"> <li>hk</li> 11. HK <li>kln</li> 12. Kln </ol> <ol type="i"> <li>i. HK</li> <li>ii. Kln</li> </ol> <ol type="a"> <li>a. HK</li> <li>b. Kln</li> </ol> <ol type="a"> <li value="2">hk</li> <li value="4">kln</li> <li value="6">nt</li> </ol> 1. HK 2. Kln i. HK ii. Kln a. HK b. Kln B. HK D. Kln F. NT HTML 4.0 10

Table <table border=2> table row table data <tr> <tr> <tr> <tr> </table> <td>a1</td> <td>a2</td> <td>a3</td> <td>b1</td> <td>b2</td> <td>b3</td> <td>c1</td> <td>c2</td> <td>c3</td> <td>d1</td> <td>d2</td> <td>d3</td> row1 row2 row3 row4 column1 column2 column3 <td colspan=3> A1, A2, A3 </td> <td> B1 </td> <td rowspan=2> <td> B3 </td> <td> C1 </td> B2, C2 </td> <td> C3 </td> <td> D1 </td> <td> D2 </td> <td> D3 </td> HTML 4.0 11 <table width=80% border=1 align=center> <tr align=center> <td colspan=3>cell 1</td> <tr align=center> <td>cell 2</td> <td rowspan=2>cell 3</td> <td>cell 4</td> <tr> <td nowrap>cell 5</td> <td>cell 6</td> Cell 1 Cell 2 Cell 4 Cell 3 Cell 5 Cell 6 tr=table row align=center rowspan=2 2 colspan=3 3 td = table data nowrap </table> HTML 4.0 12

<table bgcolor=lavender cellpadding=5 cellspacing=10> <tr> <tr> 5A <tr> 25/12/1990 </table> <table border=1 cellpadding=5> <tr> <th>name:</th> <td>chan Tai Man</td> <tr> <th>class:</th> <td>f.7a</td> </table> border Name: Class: Chan Tai Man F.7A tr = table row th = head (bold, center) td = table data (column) HTML 4.0 13 <table width=60% border=0 cellpadding=2 cellspacing=3 align=center bgcolor=pink> <tr> <td width="20%" align="left" >cell 1</td> <td width="20%" align="center" >cell 2</td> <td width="20%" align="right" >cell 3</td> cell 1 cell 2 cell 3 cell 4 cell 5 cell 6 <tr> <td align="center" bgcolor=#ff0000>cell 4</td> <td align="center" bgcolor=#00ff00>cell 5</td> <td align="center" bgcolor=#0000ff>cell 6</td> </table> HTML 4.0 14

: calendar.htm SUN MON TUE WED THU FRI SAT 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 HTML 4.0 15 : calendar.htm : Hello there world. How are you today? s 1 %[^\n] scanf("%[^\n]", s) ; \n Hello there world. How are you today? 2 %[elho] scanf("%[elho]", s) ; elho Hello 3 %[^rw] scanf("%[^rw]", s) ; r w Hello the 4 %[^H] scanf("%[^h]", s) ; H : Introduction to C - cityu.htm TOC (+ ) HTML 4.0 16

<iframe name="frame01" src="chp1.htm" width="40%" height=400 align="top"> <iframe name="frame02" src="chp2.htm" align="left" scrolling="auto"> <iframe name="frame03" src="chp3.htm" iframeborder=1 scrolling="no"> <iframe name="frame04" src="chp4.htm" marginwidth=20 marginheight=20> HTML 4.0 17 <img src="images/hkmap.jpg" usemap="#map1"> <map name="map1"> <area href="t1.htm" alt="map of Hong Kong" coords="0,0,50,50" target="main"> <area href="t2.htm" shape="circle" coords="100,100,20"> <area href="t3.htm" shape="rect" coords="0,200,100,270"> <area href="t4.htm" shape="poly" coords="150,200,100,250,200,250"> </map> HTML 4.0 18

<meta HTTP-EQUIV="REFRESH" content="10; url=http://www.ablmcc.edu.hk/~scy/"> <META HTTP-EQUIV="Site-Enter" content="revealtrans(duration=1.0,transition=15)"> <META HTTP-EQUIV="Site-Exit" content="revealtrans(duration=1.0,transition=16)"> <meta name="description" content="free Web tutorials" /> <meta name="keywords" content="html,css,xml,javascript" /> <meta http-equiv="content-type" content="text/html; charset=big5" /> HTML 4.0 19 <marquee behavior="scroll"> 1</marquee> <marquee behavior="slide" direction="right" loop="infinite"> 2</marquee> <bgsound src="sound/school.mid" loop="-1"> <pre> pre-formatted text </pre> pre-formatted text HTML 4.0 20

<html> <head> <LINK REL="StyleSheet" HREF="global.css" TYPE="text/css"> <style type="text/css"> style sheet font {color:blue; font-size:20 #D1 {color:red; font-size:30 #D2 {color:rgb(255,0,0); font-size:30.c1 {color:green; font-size:40 th, td {font-family: "lucida console"; font-size:10pt; white-space: nowrap; </style> </head> <body> <font>html tag</font> <font id=d1> </font> <font class=c1> </font> <span style={color:navy> Special <span id=d2> </span> </body> </html> </span> HTML 4.0 21 : form http://www.ablmcc.edu.hk/~scy/home/javascript/form.htm <form name="form1" method="post" action="register.php"> </form> <input type="hidden" name="level" value="f.7"> <input type="text" name="name" size="36" value="chan Tai Man"> <input type="password" name="pwd" size="10" value="123456"> <textarea name="comment" rows="3" cols="40">comments</textarea> <input type="checkbox" name="elective" value="ca">computer <input type="checkbox" name="elective" value="ms">maths <input type="radio" name="sex" value="m" checked>male <input type="radio" name="sex" value="f">female <select size="1" name="yob" style="font-size: 12pt"> <option value="4" selected>1984</option> <option value="5">1985</option> <option value="6">1986</option> </select> <input type="submit" value="submit" name="b1"> <input type="reset" value="reset" name="b2"> HTML 4.0 22

<script> function test1(){ if(document.all.gender[0].checked==true) document.all.gender.value = document.all.gender[0].value; else document.all.gender.value = document.all.gender[1].value; function test2(){ alert( document.all.grade.selectedindex +" of " +document.all.grade.length); if(document.all.grade[0].selected==true) alert("a selected"); function test3(){ var msg = ""; for(i=0;i<document.all.subj.length;i++) if(document.all.subj[i].checked) msg += i+" "; alert(msg); HTML 4.0 23 <body onload="init();"> <p>1. radio button:<p> <input type=radio name="gender" value=" " onclick="test1()" checked>male <input type=radio name="gender" value=" " onclick="test1()">female <p>2. text box:<p> <input type=text name=gender value=m size=2> <p>3. drop down list:<p> <select size="1" name="grade" onchange="test2()"> <option value="a">a</option> <option value="b">b</option> <option value="e" selected>e</option> </select> <p>4. check box:<p> <input type=checkbox name="subj" value="c" onclick="test3()" checked>c <input type=checkbox name="subj" value="java" onclick="test3()" >Java <input type=checkbox name="subj" value="pascal" onclick="test3()" >Pascal <p>5. textarea:<p> <textarea name=comments rows=7 cols=80>comments</textarea><p> </body> HTML 4.0 24

HTML - FORM 11-20 21-30 31- <input type=text name=sname > <select> <option></option> <option></option> </select> <input type=radio name=gender > <input type=radio name=gender > <input type=checkbox name=age > <input type=checkbox name=age > <input type=checkbox name=age > () 18 <textarea> </textarea> 18 <input type=button value="" > 1 HTML - FORM sname <input type=text value=" " name=sname > <input type=button value="" onclick="change()" > <script> function change(){ document.all.sname.value = ""; </script> num 37 Y result function checkprime javascript http://www.w3schools.com/js/default.asp http://gwydir.demon.co.uk/jo/javascript/ http://www.javascriptkit.com/jsref/ 2

mstatus title Ms <select name = "mstatus" onchange = "update()" > </select> <option value = "S" >Single </option> <option value = "M" >Married </option> <input type=text name=title value="ms" readonly> <script> function update(){ if (document.all.mstatus.selectedindex == 0) else </script> document.all.title.value = "Ms"; document.all.title.value = "Mrs"; 3 <input type=radio <input type=radio name=gender name=gender title Ms onclick="change()" onclick="change()" checked> > <input type=text name=title value="ms" readonly> <script> function change(){ </script> if (document.all.gender[0].checked == true) else document.all.title.value = "Sir"; document.all.title.value = "Madam"; 4

ICT BASF VA () result <input type=checkbox <input type=checkbox <input type=checkbox name=subj name=subj name=subj onclick="change()" onclick="change()" onclick="change()" >ICT >BASF >VA <textarea name=result rows=5 cols=50> </textarea> <script> function change(){ var s=""; if (document.all.subj[0].checked == true) if (document.all.subj[1].checked == true) if (document.all.subj[2].checked == true) document.all.result.value = s; </script> s+=" \n"; s+="\n"; s+="\n"; 5 var turn=0, empty=-1; var box = new Array(10); // 0=o, 1=x function chgimg(obj){ // e.g.cell1 var n=obj.name.charat(4); obj.src = "o.jpg"; obj.src = "x.jpg"; function whowins(){ return 0; // O wins return 1; // X wins return 9; // ties return -1; // continue function init(){ for(i=1;i<10;i++){ box[i] = empty; // -1 document.all.cell1.src = "blank.jpg"; turn = 0; function endgame(n){ if(n ) alert("ties."); else alert("o wins."); init(); <img src="blank.jpg" name="cell1" onclick="chgimg(this)"> : <img src="blank.jpg" name="cell9" onclick="chgimg(this)"> blackjack HCF/LCM 6

HTML (image) 1. <img src="card0.png" width=100> <img src="card1.png">... <img src="card51.png"> Javascript 2. <script> for(i=0;i<52;i++) document.write('<img src=" ">'); </script> <img src="cardback.png"> 3. Display cards for(i... document.write('<img src=" ' ' ">'); 4. array <script> var num = new Array(52); // int num[52]; var card = new for(i=0;i<52;i++) num[ ]= ; </script> 5. Shuffle 洗牌 <script> for(i=0;i<52;i++){ do{ n = while(num[ ] ); num[ ] = </script> card[ ] = 6. display 顯示 <script> for(i=0;i<52;i++){ </script> document.write('<img src=" ' ' ">'); 7. n = rand()%52; n = Math.floor(Math.random()*52);

8. onclick event <script> var num = new Array(52); var card = new Array(52); var curr=0; for(i=0;i<52;i++) num[i]= ; // int num[52]; // current 目前 for(i=0;i<52;i++){ do{ n = Math.floor(Math.random()*52); while(num[ ]<1); num[ ]=0; card[ ]= ; function chgpic(){ document.all.mycard. = "card"+ +".png"; curr++; </script> <img src="cardback.png" width=200 name= onclick=" ">