<output id="qn6qe"></output>

    1. <output id="qn6qe"><tt id="qn6qe"></tt></output>
    2. <strike id="qn6qe"></strike>

      亚洲 日本 欧洲 欧美 视频,日韩中文字幕有码av,一本一道av中文字幕无码,国产线播放免费人成视频播放,人妻少妇偷人无码视频,日夜啪啪一区二区三区,国产尤物精品自在拍视频首页,久热这里只有精品12

      COMP3322 notes P2 - HTML Basic

      用課程上介紹的 HTML validation 網站 W3C Markup Validator 檢查了一下本站 HTML 文件的正確性,結果彈出了 57 個 Error 與 Warning。我在魔改的時候到底做了些什么啊……

      不過從這也能看出 HTML 語言的 permissive 性質;寬松的語法與 browser 也是 Web 長盛不衰的原因之一。


      {% note warning %}

      ? This article is a self-administered course note.

      ? It will NOT cover ny exam or assignment related content.

      {% endnote %}


      HTML Basic

      HTML is a type of markup languages. It annotates a document in a way that

      • annotations distinct from the text being annotated.
      • annotations indicate information about the content (through tags a.k.a., elements).

      Keywords. [見 slides 02-HTML]

      • New insight (CSS 應承擔提供信息的責任而 HTML 則專注于文檔的 structure).
      • HTML history.

      HTML Structure

      一個 HTML document 的基本結構如下:

      • Web content.
      • HTML elements specified by a pair of tags. (元素;標簽)
        • Opening tag.
          • Attributes : name=value pair.
        • Closing tag (omittable in void element)

      Keywords. [見 slides 02-HTML]

      • elements and attributes.
      • nesting HTML elements.
      • basic document structure.
        • <!DOCTYPE .. > (not a element)
        • <html>: root element.
        • <head>: contains <title>, <link> (external CSS), <style> (internal style), <script> (JavaScript), <base>, <meta> (metadata).
        • <body>: contains elements that will be displayed in the browser.

      HTML Elements

      Keywords. [見 slides 02-HTML]

      • HTML comment <!-- -->.
      • block-level elements v.s. inline elements.
      • semantic elements: clearly describe ite meaning to the browser and the developer.
      • headings. <h1>, ..., <h6>. (block-level & semantic)
      • paragraphs. <p> (inline & semantic)
      • divisions. <div> (block-level) - contemporary web design, divs within divs with divs.
      • spans. <span> (inline) - inline version of divs.
      • links. <a> - href=[destination] attribute.
      • images. <img> - only content image.
      • lists. - unordered <ul>, ordered <ol>, and description <dl> (e.g., FAQ) - <li>.
      • tables. <table> - rows <tr> - headings <th> - cells <td>.
      • forms. <form> - collect info from visitors - two attributes:
        • action=. URL of the server-side resource that will process the submitted form.
        • method="get" or method="post". GET v.s. POST.
      • input controls (inside <form>) - <input type="text" ...>, <textarea ...>...

      HTML Validation

      HTML itself doesn't suffer from syntax errors because browsers parse it permissively.

      • The browser still displays the page even if there are syntax errors.
      • The browser has built-in rules to interpret incorrectly written markup.

      Use HTML validation service to check the HTML code.


      HTML5 Semantic Elements

      HTML5 中引入了許多新的 semantic elements。

      semantic elements describe both the structure and meaning of the page (content).

      • It is reader-friendly.
      • The semantic structural elements make it easier for users to navigate the page using assistive technology for accessibility.
      • A great deal of web content can be made accessible just by making sure the correct HTML elements (elements with the correct meaning) are used for the correct purpose at all times.

      Keywords. [見 slides 02-HTML]

      • <header>. site logo, title, horizontal navigation links... (page header or <article> header)
      • <footer>. smaller navigation, copyright notices... (page footer or <article> footer)
      • <main>. specify the main content of a document, which should be unique to that page.
      • <nav>. specify major navigation blocks.
      • <article>. represent a section of semantically related content.
      • <section>. represent a generic section of content with the same theme. 理解為 chapter。
        • section v.s. div: if the contents are listed explicitly in document's outline, use <section>.
      • <figure> and <figcaption>. should not be used to wrap every image.
      • <aside>. contain content that is not part of the flow of the text. e.g., sidebar, call-out boxes...
      • <details> and <summary>. create an interactive widget.
      • <time>. define a human-readable date/time.
      • <mark>. highlight text.

      Reference

      {% note warning %}

      ? This article is a self-administered course note.

      ? References in the article are from corresponding course materials if not specified.

      {% endnote %}

      Reference website:

      Introduction to HTML - mdn web docs.

      Course info:

      Code: COMP3322, Lecturer: Dr.Anthony Tam.

      posted @ 2023-09-22 11:53  四季夏目天下第一  閱讀(56)  評論(0)    收藏  舉報
      主站蜘蛛池模板: 97久久精品午夜一区二区| 五华县| 人妻换着玩又刺激又爽| 18禁国产一区二区三区| 中文字幕乱妇无码AV在线| 欧美成人精品手机在线| 福利一区二区不卡国产| 麻豆tv入口在线看| 亚洲精品成人区在线观看| 最近中文字幕国产精选| 昂仁县| 国产精品人妻熟女男人的天堂| 亚洲日本VA中文字幕在线| 国产在线观看播放av| 亚洲精品天堂在线观看| 国产成人8x视频一区二区| 亚洲欧洲日韩国内精品| 成人aⅴ综合视频国产| 亚洲中文字幕无码专区| av新版天堂在线观看| 亚洲国产成人自拍视频网| 在线天堂中文www官网| 18禁视频一区二区三区| 日本一区二区三区免费播放视频站 | 免费无码影视在线观看mov| 亚洲人成网线在线播放VA| 人妻夜夜添夜夜无码av| 国产精品小粉嫩在线观看| 亚洲色欲色欱WWW在线| 榕江县| 日本三级香港三级三级人妇久 | 无码专区—va亚洲v天堂麻豆| www亚洲精品| 国产真实乱人偷精品人妻| 99精品国产中文字幕| 国产午夜福利视频第三区| 又大又紧又粉嫩18p少妇| 国产强奷在线播放免费| 亚洲精品二区在线播放| 国产一区二区三区乱码| 亚洲欧美日韩综合久久|