Скачать презентацию HTML 101 HTML n HTML is a Скачать презентацию HTML 101 HTML n HTML is a

164c881d7385c3c5eb0ba901b4461fee.ppt

  • Количество слайдов: 94

HTML 101 HTML 101

HTML n HTML is a standard l Maintained by a u nonprofit, u international HTML n HTML is a standard l Maintained by a u nonprofit, u international organization u participated by many IT companies l W 3. org

HTML n Simple l Just markups and plaintext n Readable by human l Use HTML n Simple l Just markups and plaintext n Readable by human l Use plain text l Editable by Notepad n Verbose l Readable and friendly to human l Leave the chore to computer l Good!!!

HTML Versions n Now comes HTML 4. 0 and XHTML l Strict syntax as HTML Versions n Now comes HTML 4. 0 and XHTML l Strict syntax as XML l Lowercase tags l About content, not format, which is designated to css n HTML 5. 0 l Canvas l…

The file extension n. html n. htm The file extension n. html n. htm

n Editable by l Notepad l dream. Weaver l Visual Studio l… n Browsable n Editable by l Notepad l dream. Weaver l Visual Studio l… n Browsable by l Ie l Opera l Chrone l…

HTML Syntax HTML Syntax

HTML文档基本结构 <html> <head> <!—Here goes the info about the document--> </head> <body> <!—Here goes HTML文档基本结构

HTML Tag Basics Start tag End tag <h 1>Hello World</h 1> Tags “mark up” HTML Tag Basics Start tag End tag Hello World Tags “mark up” the HTML document. The tags are read and interpreted by the browser - but not shown. A self closing tag does not need a corresponding end tag. Attribute Self-closing tag

ML--Element n The start tag and end tag must be paired; note the slash ML--Element n The start tag and end tag must be paired; note the slash There are elements /texts between the start tag and end tag

ML--Element We have rules regarding the element name and what content it holds You ML--Element We have rules regarding the element name and what content it holds You must use specified element name and cannot create your own element The element name is lowercase, generally

ML--Element For element with no content, the start tag and end tag are collapsed ML--Element For element with no content, the start tag and end tag are collapsed into one like


. hr means horizontal row, a horizontal line.

婚否 婚否 Attributes Untitled Page 姓名: 婚否 l Separated by at least one whitespace l Value must be quoted by double quotes l A property can have no value l Same Property name doesn’t occur twice l Attribute identifier contains no special chars such as =, ”, etc.

HTML标记 lower case n Tag/ Attribute l 一般小写 HTML标记 lower case n Tag/ Attribute l 一般小写

婚否 婚否 ML--Content Untitled Page 姓名: 婚否 n In the starting note and ending note is the content, including other tags and/or plain texts

婚" src="https://present5.com/presentation/164c881d7385c3c5eb0ba901b4461fee/image-17.jpg" alt="ML--Content Untitled Page 姓 名 : 婚" /> ML--Content Untitled Page 姓 名 : 婚 否 Redundant space and carriage enter are ignored n Note the space before, in and after “姓 名: ” n Note the newline in “婚否” is displayed as whitespace n If you want to insert some whitespace, or other special chars, such >, you have to…see next slide

Escape Special Chars Escape Special Chars

Escape Special chars <html> <head> <title>Untitled Page</title> • Å vs å • Entity name Escape Special chars Untitled Page • Å vs å • Entity name , case sensitive • A Ӓ å • Entity number , decimal •  5 • Entity number, hexadecimal, case insensitive 姓名: 婚否?
请朗读以下字符: Å å A Ӓ å  5; &#x. E 5; & < > "  

How to display a world map with only one character <html> <body> <p style= How to display a world map with only one character

û

Edit HTML Edit HTML

Good habit to code ML-Indent l Start and end at the same indent position Good habit to code ML-Indent l Start and end at the same indent position l Content needs a unit of indent. l Use tab Help you debug

ML Coding—outline first n Write the outlying pair (tags, quotes, braces, etc) first, then ML Coding—outline first n Write the outlying pair (tags, quotes, braces, etc) first, then insert its content. E. g ”” “…” Make the code syntactically right always Help debug Lest that the latter part be forgotten

tools n Notepad n Visual Studio n Dream. Weaver n Word, excel, … n… tools n Notepad n Visual Studio n Dream. Weaver n Word, excel, … n…

debug n Fire. Bug n Browser l Press F 12 in new versions of debug n Fire. Bug n Browser l Press F 12 in new versions of IE

Validating HTML n To validate a web page, you can use the online validator Validating HTML n To validate a web page, you can use the online validator n Paste, or upload the HTML or use a URL n http: //validator. w 3. org Source: W 3 C http: //validator. w 3. org/check

HTML Tags HTML Tags

Comment n <!--comment inserts here--> n If you want to delete some contents temporally, Comment n n If you want to delete some contents temporally, you can comment it out.

HTML常用标记 in head <meta name="keywords" content="HTML, CSS, XML" /> <meta name="description" content="Free Web tutorials on HTML, CSS, XML" /> </p> </div> <div style="width: auto;" class="description columns twelve"><p><img class="imgdescription" title="HTML常用标记 in head <title> HTML, CSS, XML" /> " src="https://present5.com/presentation/164c881d7385c3c5eb0ba901b4461fee/image-30.jpg" alt="HTML常用标记 in head <title> HTML, CSS, XML" /> " /> HTML常用标记 in head <title> HTML, CSS, XML" /> </p> </div> <div style="width: auto;" class="description columns twelve"><p><img class="imgdescription" title="meta name=“___” <meta> <meta name="keywords" content="HTML, CSS, XML" /> <meta name="description" content="Free tutorials on" src="https://present5.com/presentation/164c881d7385c3c5eb0ba901b4461fee/image-31.jpg" alt="meta name=“___” <meta> <meta name="keywords" content="HTML, CSS, XML" /> <meta name="description" content="Free tutorials on" /> meta name=“___” <meta> <meta name="keywords" content="HTML, CSS, XML" /> <meta name="description" content="Free tutorials on HTML, CSS, XML" /> Web </p> </div> <div style="width: auto;" class="description columns twelve"><p><img class="imgdescription" title="Refresh by http-equiv n <meta http-equiv="Refresh" content="300"> n <meta http-equiv="Refresh" URL=page 4. html"> content="20;" src="https://present5.com/presentation/164c881d7385c3c5eb0ba901b4461fee/image-32.jpg" alt="Refresh by http-equiv n <meta http-equiv="Refresh" content="300"> n <meta http-equiv="Refresh" URL=page 4. html"> content="20;" /> Refresh by http-equiv n <meta http-equiv="Refresh" content="300"> n <meta http-equiv="Refresh" URL=page 4. html"> content="20; </p> </div> <div style="width: auto;" class="description columns twelve"><p><img class="imgdescription" title="Meta name=… n Author l The value must be a free-form string giving the" src="https://present5.com/presentation/164c881d7385c3c5eb0ba901b4461fee/image-33.jpg" alt="Meta name=… n Author l The value must be a free-form string giving the" /> Meta name=… n Author l The value must be a free-form string giving the name of one of the page's authors. </p> </div> <div style="width: auto;" class="description columns twelve"><p><img class="imgdescription" title="base n have either an href attribute, a target attribute, or both, specifying l" src="https://present5.com/presentation/164c881d7385c3c5eb0ba901b4461fee/image-34.jpg" alt="base n have either an href attribute, a target attribute, or both, specifying l" /> base n have either an href attribute, a target attribute, or both, specifying l the document base URL for the purposes of resolving relative URLs, l the name of the default browsing context for the purposes of following hyperlinks. The n There must be no more than one base element per document. </p> </div> <div style="width: auto;" class="description columns twelve"><p><img class="imgdescription" title="n <head> l <base href="http: //www. example. com/news/index. html"> n </head> n <body> l" src="https://present5.com/presentation/164c881d7385c3c5eb0ba901b4461fee/image-35.jpg" alt="n <head> l <base href="http: //www. example. com/news/index. html"> n </head> n <body> l" /> n <head> l <base href="http: //www. example. com/news/index. html"> n </head> n <body> l <a href="archives. html">archives</a> would be a link to http: //www. example. com/news/archives. html. n </body> </p> </div> <div style="width: auto;" class="description columns twelve"><p><img class="imgdescription" title="Link n <link rel="stylesheet" href="B" type="text/css"> n <link rel="stylesheet" href="C"> " src="https://present5.com/presentation/164c881d7385c3c5eb0ba901b4461fee/image-36.jpg" alt="Link n <link rel="stylesheet" href="B" type="text/css"> n <link rel="stylesheet" href="C"> " /> Link n <link rel="stylesheet" href="B" type="text/css"> n <link rel="stylesheet" href="C"> </p> </div> <div style="width: auto;" class="description columns twelve"><p><img class="imgdescription" title="HTML常用标记 in body <h 1> … <h 6> <div> <span><p> <hr> <img> <object><iframe> <a>" src="https://present5.com/presentation/164c881d7385c3c5eb0ba901b4461fee/image-37.jpg" alt="HTML常用标记 in body <h 1> … <h 6> <div> <span><p> <hr> <img> <object><iframe> <a>" /> HTML常用标记 in body <h 1> … <h 6> <div> <span><p> <hr> <img> <object><iframe> <a> <!– 注释内容 --> <table><form> </p> </div> <div style="width: auto;" class="description columns twelve"><p><img class="imgdescription" title="n <article> n <section> " src="https://present5.com/presentation/164c881d7385c3c5eb0ba901b4461fee/image-38.jpg" alt="n <article> n <section> " /> n <article> n <section> </p> </div> <div style="width: auto;" class="description columns twelve"><p><img class="imgdescription" title="Header Levels <h 1>First Major Heading</h 1> <h 2>First Subheading</h 2> <h 2>Second Subheading</h" src="https://present5.com/presentation/164c881d7385c3c5eb0ba901b4461fee/image-39.jpg" alt="Header Levels <h 1>First Major Heading</h 1> <h 2>First Subheading</h 2> <h 2>Second Subheading</h" /> Header Levels <h 1>First Major Heading</h 1> <h 2>First Subheading</h 2> <h 2>Second Subheading</h 2> <h 3>A Sub-subheading</h 3> <h 1>Another Major Heading</h 1> <h 2>Another Subheading</h 2> Headers were very ugly in default rendering - most folks started with <h 3>. </p> </div> <div style="width: auto;" class="description columns twelve"><p><img class="imgdescription" title="n <p>paragraph</p> " src="https://present5.com/presentation/164c881d7385c3c5eb0ba901b4461fee/image-40.jpg" alt="n <p>paragraph</p> " /> n <p>paragraph</p> </p> </div> <div style="width: auto;" class="description columns twelve"><p><img class="imgdescription" title="bdi " src="https://present5.com/presentation/164c881d7385c3c5eb0ba901b4461fee/image-41.jpg" alt="bdi " /> bdi </p> </div> <div style="width: auto;" class="description columns twelve"><p><img class="imgdescription" title="bdi n The bdi element represents a span of text that is to be" src="https://present5.com/presentation/164c881d7385c3c5eb0ba901b4461fee/image-42.jpg" alt="bdi n The bdi element represents a span of text that is to be" /> bdi n The bdi element represents a span of text that is to be isolated from its surroundings for the purposes of bidirectional text formatting. [BIDI] n For the purposes of applying the bidirectional algorithm to the contents of a bdi element, user agents must treat the element as a paragraph-level container. n For the purposes of applying the bidirectional algorithm to the paragraph-level container that a bdi element finds itself within, the bdi element must be treated like a U+FFFC OBJECT REPLACEMENT CHARACTER (in the same manner that an image or other inline object is handled). </p> </div> <div style="width: auto;" class="description columns twelve"><p><img class="imgdescription" title="n Categories: l Flow content. l Phrasing content. l Palpable content. n Contexts in" src="https://present5.com/presentation/164c881d7385c3c5eb0ba901b4461fee/image-43.jpg" alt="n Categories: l Flow content. l Phrasing content. l Palpable content. n Contexts in" /> n Categories: l Flow content. l Phrasing content. l Palpable content. n Contexts in which this element can be used: l Where phrasing content is expected. n Content model: Phrasing content. n Content attributes: l Global attributes l Also, the dir global attribute has special semantics on this element n DOM interface: Uses HTMLElement. </p> </div> <div style="width: auto;" class="description columns twelve"><p><img class="imgdescription" title="n <ul> l <li>User <bdi>jcranmer</bdi>: 12 posts. <li>User <bdi>hober</bdi>: 5 posts. l <li>User <bdi>/>" src="https://present5.com/presentation/164c881d7385c3c5eb0ba901b4461fee/image-44.jpg" alt="n <ul> l <li>User <bdi>jcranmer</bdi>: 12 posts. <li>User <bdi>hober</bdi>: 5 posts. l <li>User <bdi>/>" /> n <ul> l <li>User <bdi>jcranmer</bdi>: 12 posts. <li>User <bdi>hober</bdi>: 5 posts. l <li>User <bdi>/> ﺇﻳﺎﻥ bdi>: 3 posts. n </ul> </p> </div> <div style="width: auto;" class="description columns twelve"><p><img class="imgdescription" title="bdo " src="https://present5.com/presentation/164c881d7385c3c5eb0ba901b4461fee/image-45.jpg" alt="bdo " /> bdo </p> </div> <div style="width: auto;" class="description columns twelve"><p><img class="imgdescription" title="n The bdo element represents explicit text directionality formatting control for its children. It" src="https://present5.com/presentation/164c881d7385c3c5eb0ba901b4461fee/image-46.jpg" alt="n The bdo element represents explicit text directionality formatting control for its children. It" /> n The bdo element represents explicit text directionality formatting control for its children. It allows authors to override the Unicode bidirectional algorithm by explicitly specifying a direction override. [BIDI] </p> </div> <div style="width: auto;" class="description columns twelve"><p><img class="imgdescription" title="bdo vs bdi " src="https://present5.com/presentation/164c881d7385c3c5eb0ba901b4461fee/image-47.jpg" alt="bdo vs bdi " /> bdo vs bdi </p> </div> <div style="width: auto;" class="description columns twelve"><p><img class="imgdescription" title=" bdi unicode bdo Explicitly by dir " src="https://present5.com/presentation/164c881d7385c3c5eb0ba901b4461fee/image-48.jpg" alt=" bdi unicode bdo Explicitly by dir " /> bdi unicode bdo Explicitly by dir </p> </div> <div style="width: auto;" class="description columns twelve"><p><img class="imgdescription" title=". . . <ruby> 汉<rt>hàn</rt> 字<rt>zì </rt> </ruby>. . . " src="https://present5.com/presentation/164c881d7385c3c5eb0ba901b4461fee/image-49.jpg" alt=". . . <ruby> 汉<rt>hàn</rt> 字<rt>zì </rt> </ruby>. . . " /> . . . <ruby> 汉<rt>hàn</rt> 字<rt>zì </rt> </ruby>. . . </p> </div> <div style="width: auto;" class="description columns twelve"><p><img class="imgdescription" title="rp <ruby> 漢 <rp> (</rp> <rt>かん</rt> <rp>) </rp> 字<rp> (</rp> <rt>じ</rt> <rp>) </rp> </ruby>" src="https://present5.com/presentation/164c881d7385c3c5eb0ba901b4461fee/image-50.jpg" alt="rp <ruby> 漢 <rp> (</rp> <rt>かん</rt> <rp>) </rp> 字<rp> (</rp> <rt>じ</rt> <rp>) </rp> </ruby>" /> rp <ruby> 漢 <rp> (</rp> <rt>かん</rt> <rp>) </rp> 字<rp> (</rp> <rt>じ</rt> <rp>) </rp> </ruby> . . . 漢 (かん) 字 (じ). . . </p> </div> <div style="width: auto;" class="description columns twelve"><p><img class="imgdescription" title="ins del n <h 1>To Do</h 1> n <ul> l <li>Empty the dishwasher</li> l" src="https://present5.com/presentation/164c881d7385c3c5eb0ba901b4461fee/image-51.jpg" alt="ins del n <h 1>To Do</h 1> n <ul> l <li>Empty the dishwasher</li> l" /> ins del n <h 1>To Do</h 1> n <ul> l <li>Empty the dishwasher</li> l <li><del datetime="2009 -10 -11 T 01: 25 -07: 00">Watch Walter Lewin's lectures</del></li> l <li><del datetime="2009 -10 -10 T 23: 3807: 00">Download more tracks</del></li> l <li>Buy a printer</li> n </ul> </p> </div> <div style="width: auto;" class="description columns twelve"><p><img class="imgdescription" title="n <section> l <ins> u <p> This is a paragraph that was inserted. </p>" src="https://present5.com/presentation/164c881d7385c3c5eb0ba901b4461fee/image-52.jpg" alt="n <section> l <ins> u <p> This is a paragraph that was inserted. </p>" /> n <section> l <ins> u <p> This is a paragraph that was inserted. </p> u This is another paragraph whose first sentence was inserted at the same time as the paragraph above. l </ins> l This is a second sentence, which was there all along. n </section> </p> </div> <div style="width: auto;" class="description columns twelve"><p><img class="imgdescription" title="Anchor and link " src="https://present5.com/presentation/164c881d7385c3c5eb0ba901b4461fee/image-53.jpg" alt="Anchor and link " /> Anchor and link </p> </div> <div style="width: auto;" class="description columns twelve"><p><img class="imgdescription" title="anchor nfor long documents, you can even have links to other locations in that" src="https://present5.com/presentation/164c881d7385c3c5eb0ba901b4461fee/image-54.jpg" alt="anchor nfor long documents, you can even have links to other locations in that" /> anchor nfor long documents, you can even have links to other locations in that same document l <a name="ident">…</a> uwhere ident is a variable for identifying this location </p> </div> <div style="width: auto;" class="description columns twelve"><p><img class="imgdescription" title="Hyperlinks n <a href="URL">…</a> uif the page is accessed over the Web, must start" src="https://present5.com/presentation/164c881d7385c3c5eb0ba901b4461fee/image-55.jpg" alt="Hyperlinks n <a href="URL">…</a> uif the page is accessed over the Web, must start" /> Hyperlinks n <a href="URL">…</a> uif the page is accessed over the Web, must start with http: // uif not there, the browser will assume it is the name of a local file l <a href="URL" target="_blank">…</a> ucauses the page to be loaded in a new u. Window * Find more info on attribute TARGET </p> </div> <div style="width: auto;" class="description columns twelve"><p><img class="imgdescription" title="Hyperlinks (cont. ) nfor long documents, you can even have links to other locations" src="https://present5.com/presentation/164c881d7385c3c5eb0ba901b4461fee/image-56.jpg" alt="Hyperlinks (cont. ) nfor long documents, you can even have links to other locations" /> Hyperlinks (cont. ) nfor long documents, you can even have links to other locations in that same document l <a href="#ident">…</a> uwill then jump to that location within the file l <a href="URL#ident">…</a> ucan jump into the middle of another file just as easily </p> </div> <div style="width: auto;" class="description columns twelve"><p><img class="imgdescription" title="Hyperlinks (cont. ) n n n n n <p> [ <a href="#HTML">HTML</a> | <a" src="https://present5.com/presentation/164c881d7385c3c5eb0ba901b4461fee/image-57.jpg" alt="Hyperlinks (cont. ) n n n n n <p> [ <a href="#HTML">HTML</a> | <a" /> Hyperlinks (cont. ) n n n n n <p> [ <a href="#HTML">HTML</a> | <a href="#HTTP">HTTP</a> | <a href="#IP">IP</a> | <a href="#TCP">TCP</a> ] </p> <p> Computer acronyms: <dl> <dt id="HTML">HTML</dt> <dd>Hyper. Text Markup Language <dt id="HTTP">HTTP</dt> <dd>Hyper. Text Transfer Protocol…</dd> <dt id="IP">IP</dt> <dd>Internet Protocol…</dd> <dt id="TCP">TCP</dt> <dd>Transfer Control Protocol…</dd> </dl> </p> Internal links are handled slightly differently in HTML 5. Use the same format to specify the hyperlinks, but use an ‘id’ to define the location of the anchor. This can be applied to (nearly) any HTML element. </p> </div> <div style="width: auto;" class="description columns twelve"><p><img class="imgdescription" title="Hyperlinks vs anchor l <a name="ident">…</a> l <a href="#ident">…</a> " src="https://present5.com/presentation/164c881d7385c3c5eb0ba901b4461fee/image-58.jpg" alt="Hyperlinks vs anchor l <a name="ident">…</a> l <a href="#ident">…</a> " /> Hyperlinks vs anchor l <a name="ident">…</a> l <a href="#ident">…</a> </p> </div> <div style="width: auto;" class="description columns twelve"><p><img class="imgdescription" title="URL " src="https://present5.com/presentation/164c881d7385c3c5eb0ba901b4461fee/image-59.jpg" alt="URL " /> URL </p> </div> <div style="width: auto;" class="description columns twelve"><p><img class="imgdescription" title="How to specify Relative pathnames The current HTML document is my. html and the" src="https://present5.com/presentation/164c881d7385c3c5eb0ba901b4461fee/image-60.jpg" alt="How to specify Relative pathnames The current HTML document is my. html and the" /> How to specify Relative pathnames The current HTML document is my. html and the current directory is Iam C: - Iam -my. html -your. html Type this ; <A href=your. html>Your link </A> C: - Iam -my. html Child -your. html Type this ; <A href=Child/your. html>Your link </A> C: - Iam -my. html Sister -your. html Type this ; <A href=. . /Sister/your. html>Your link </A> C: - Mother -your. html Iam -my. html Type this ; <A href=. . /your. html>Your link </A> 1999 Asian Women's Network Training Workshop 60 </p> </div> <div style="width: auto;" class="description columns twelve"><p><img class="imgdescription" title="Div and span " src="https://present5.com/presentation/164c881d7385c3c5eb0ba901b4461fee/image-61.jpg" alt="Div and span " /> Div and span </p> </div> <div style="width: auto;" class="description columns twelve"><p><img class="imgdescription" title="<div> and <span> Tags l The default meaning of <span> is to leave the" src="https://present5.com/presentation/164c881d7385c3c5eb0ba901b4461fee/image-62.jpg" alt="<div> and <span> Tags l The default meaning of <span> is to leave the" /> <div> and <span> Tags l The default meaning of <span> is to leave the content as it is § Another tag that is useful for style specifications: <div> Used to create document sections (or divisions) for which style can be specified e. g. , a section of five paragraphs for which you want some particular style </p> </div> <div style="width: auto;" class="description columns twelve"><p><img class="imgdescription" title="Lists <p>An ordered list: <ol> <li>The first item. <li>The second item. </ol> <p>An unordered" src="https://present5.com/presentation/164c881d7385c3c5eb0ba901b4461fee/image-63.jpg" alt="Lists <p>An ordered list: <ol> <li>The first item. <li>The second item. </ol> <p>An unordered" /> Lists <p>An ordered list: <ol> <li>The first item. <li>The second item. </ol> <p>An unordered list with gaps between items: <ul> <li>The first item. </li><p> <li>The second item. </li><p> <li>The third item. </li> </ul> 63 </p> </div> <div style="width: auto;" class="description columns twelve"><p><img class="imgdescription" title="More lists <p>Fancier list: <ol> <li>The first item. <ol type=“a”> <li>Sub item one. <li>Sub" src="https://present5.com/presentation/164c881d7385c3c5eb0ba901b4461fee/image-64.jpg" alt="More lists <p>Fancier list: <ol> <li>The first item. <ol type=“a”> <li>Sub item one. <li>Sub" /> More lists <p>Fancier list: <ol> <li>The first item. <ol type=“a”> <li>Sub item one. <li>Sub item two. </ol> <li>The second item. </ol> 64 </p> </div> <div style="width: auto;" class="description columns twelve"><p><img class="imgdescription" title="Table " src="https://present5.com/presentation/164c881d7385c3c5eb0ba901b4461fee/image-65.jpg" alt="Table " /> Table </p> </div> <div style="width: auto;" class="description columns twelve"><p><img class="imgdescription" title="表格 " src="https://present5.com/presentation/164c881d7385c3c5eb0ba901b4461fee/image-66.jpg" alt="表格 " /> 表格 </p> </div> <div style="width: auto;" class="description columns twelve"><p><img class="imgdescription" title="Tables <table noborder cellpadding=3 cellspacing=3> <tr><td><b>Col 1</b> <td><b>Col 2</b> <td><b>Col 3</b> <tr><td>The second row" src="https://present5.com/presentation/164c881d7385c3c5eb0ba901b4461fee/image-67.jpg" alt="Tables <table noborder cellpadding=3 cellspacing=3> <tr><td><b>Col 1</b> <td><b>Col 2</b> <td><b>Col 3</b> <tr><td>The second row" /> Tables <table noborder cellpadding=3 cellspacing=3> <tr><td><b>Col 1</b> <td><b>Col 2</b> <td><b>Col 3</b> <tr><td>The second row <td>More here <td>Yet more <tr height=20><td>  <!-- That’s a space --> <tr><td>Row after a gap <td colspan=2>Here’s a bunch of stuff covering two columns. </table> 67 </p> </div> <div style="width: auto;" class="description columns twelve"><p><img class="imgdescription" title="In the browser 68 " src="https://present5.com/presentation/164c881d7385c3c5eb0ba901b4461fee/image-68.jpg" alt="In the browser 68 " /> In the browser 68 </p> </div> <div style="width: auto;" class="description columns twelve"><p><img class="imgdescription" title="Images u<img src="URL (or filename)“ alt="text" title= "text" /> " src="https://present5.com/presentation/164c881d7385c3c5eb0ba901b4461fee/image-69.jpg" alt="Images u<img src="URL (or filename)“ alt="text" title= "text" /> " /> Images u<img src="URL (or filename)“ alt="text" title= "text" /> </p> </div> <div style="width: auto;" class="description columns twelve"><p><img class="imgdescription" title="Map and area n 将一个图片划分为不同区域,每个可以指向不同的链 接 " src="https://present5.com/presentation/164c881d7385c3c5eb0ba901b4461fee/image-70.jpg" alt="Map and area n 将一个图片划分为不同区域,每个可以指向不同的链 接 " /> Map and area n 将一个图片划分为不同区域,每个可以指向不同的链 接 </p> </div> <div style="width: auto;" class="description columns twelve"><p><img class="imgdescription" title="Figure and figure. Caption n <figure> l <img src="bubbles-work. jpeg" alt="Bubbles, sitting in his" src="https://present5.com/presentation/164c881d7385c3c5eb0ba901b4461fee/image-71.jpg" alt="Figure and figure. Caption n <figure> l <img src="bubbles-work. jpeg" alt="Bubbles, sitting in his" /> Figure and figure. Caption n <figure> l <img src="bubbles-work. jpeg" alt="Bubbles, sitting in his office chair, works on his latest project intently. "> l <figcaption>Bubbles at work</figcaption> n </figure> </p> </div> <div style="width: auto;" class="description columns twelve"><p><img class="imgdescription" title="n canvas " src="https://present5.com/presentation/164c881d7385c3c5eb0ba901b4461fee/image-72.jpg" alt="n canvas " /> n canvas </p> </div> <div style="width: auto;" class="description columns twelve"><p><img class="imgdescription" title="n Video n Audio n Object l params " src="https://present5.com/presentation/164c881d7385c3c5eb0ba901b4461fee/image-73.jpg" alt="n Video n Audio n Object l params " /> n Video n Audio n Object l params </p> </div> <div style="width: auto;" class="description columns twelve"><p><img class="imgdescription" title="n <iframe src=“qq. com”/> " src="https://present5.com/presentation/164c881d7385c3c5eb0ba901b4461fee/image-74.jpg" alt="n <iframe src=“qq. com”/> " /> n <iframe src=“qq. com”/> </p> </div> <div style="width: auto;" class="description columns twelve"><p><img class="imgdescription" title="表单 " src="https://present5.com/presentation/164c881d7385c3c5eb0ba901b4461fee/image-75.jpg" alt="表单 " /> 表单 </p> </div> <div style="width: auto;" class="description columns twelve"><p><img class="imgdescription" title="Basic Form Elements n <input type=“submit” value=“button label n Radio buttons <input type=“radio” name="parameter“" src="https://present5.com/presentation/164c881d7385c3c5eb0ba901b4461fee/image-76.jpg" alt="Basic Form Elements n <input type=“submit” value=“button label n Radio buttons <input type=“radio” name="parameter“" /> Basic Form Elements n <input type=“submit” value=“button label n Radio buttons <input type=“radio” name="parameter“ value="par_value"> </p> </div> <div style="width: auto;" class="description columns twelve"><p><img class="imgdescription" title="More Form Elements n <input type=“checkbox” name="parameter"> n <input type=“text” name="parameter“ size=“ 25”> " src="https://present5.com/presentation/164c881d7385c3c5eb0ba901b4461fee/image-77.jpg" alt="More Form Elements n <input type=“checkbox” name="parameter"> n <input type=“text” name="parameter“ size=“ 25”> " /> More Form Elements n <input type=“checkbox” name="parameter"> n <input type=“text” name="parameter“ size=“ 25”> </p> </div> <div style="width: auto;" class="description columns twelve"><p><img class="imgdescription" title="Select Boxes n <select name=”parameter”>. . . </select>. l Each option in the select" src="https://present5.com/presentation/164c881d7385c3c5eb0ba901b4461fee/image-78.jpg" alt="Select Boxes n <select name=”parameter”>. . . </select>. l Each option in the select" /> Select Boxes n <select name=”parameter”>. . . </select>. l Each option in the select box is specified by the <option>. . . </option> tag </p> </div> <div style="width: auto;" class="description columns twelve"><p><img class="imgdescription" title="A Basic Form <html> <head> <title>Basic Form Basic Form" src="https://present5.com/presentation/164c881d7385c3c5eb0ba901b4461fee/image-79.jpg" alt="A Basic Form Basic Form Basic Form" /> A Basic Form Basic Form Basic Form

What is your name? Please select your favorite color:

Processing Forms n Once a form is submitted, it is sent to a specific Processing Forms n Once a form is submitted, it is sent to a specific program on the server. n

iframe 用于在网页中嵌入另一个 网页 …… <iframe src=“qq. com”> </iframe> iframe 用于在网页中嵌入另一个 网页 ……

Attributes Attributes

Global n Id n Title n Lang and xml: lang n Translate n Xml: Global n Id n Title n Lang and xml: lang n Translate n Xml: base(xml only) n Dir n Class n Style

lang n specifies the primary language l for the element's contents and l for lang n specifies the primary language l for the element's contents and l for any of the element's attributes that contain text. n Its value must be a valid BCP 47 language tag, l en l zh l… l or the empty string. u the primary language is unknown.

translate n The attribute's keywords are l the empty string, l yes, and l translate n The attribute's keywords are l the empty string, l yes, and l no. n

type l start. n The game will start

dir n The dir attribute specifies the element's text directionality. l ltr l rtl dir n The dir attribute specifies the element's text directionality. l ltr l rtl l auto

data-* n Embedding custom non-visible data with the attributes n Custom data attributes are data-* n Embedding custom non-visible data with the attributes n Custom data attributes are intended to store custom data private to the page or application, for which there are no more appropriate attributes or elements.

data-* n naming l no namespace l has at least one character after the data-* n naming l no namespace l has at least one character after the hyphen l contains no characters in the range U+0041 to U+005 A (LATIN CAPITAL LETTER A to LATIN CAPITAL LETTER Z). u All attributes on HTML elements in HTML documents get ASCII-lowercased automatically, so the restriction on ASCII uppercase letters doesn't affect such documents.

e. g n a site about music could annotate list items representing tracks in e. g n a site about music could annotate list items representing tracks in an album with custom data attributes containing the length of each track. T l his information could then be used by the site itself to allow the user to sort the list by track length, or to filter the list for tracks of certain lengths. n

  1. Beyond The Sea
  2. . . .

n element. Dataset l Returns a DOMString. Map object for the element's data -* n element. Dataset l Returns a DOMString. Map object for the element's data -* attributes. n Hyphenated names become camel-cased. For example, data-foo-bar="" becomes element. dataset. foo. Bar

l n

For further reading and learning n W 3 schools. com n W 3 school. For further reading and learning n W 3 schools. com n W 3 school. com. cn n W 3. org n Wikipedia. org n Nilnul. com

The end Thanks! The end Thanks!