Oscar Lo
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights New
    • Engagement control
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Note Insights Versions and GitHub Sync Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       Owned this note    Owned this note      
    Published Linked with GitHub
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    # HTML Introduction ## stands for Hyper Text Markup Language 1. describes the structure of Web page 2. consists of a series of elements 3. tell the browser how to display the content 4. label pieces of content such as "this is a heading", "this is a paragraph", "this is a link", etc. ```javascript= <!DOCTYPE html> <html> <head> <title>Page Title</title> </head> <body> <h1>My First Heading</h1> <p>My first paragraph.</p> </body> </html> ``` ``` The <!DOCTYPE html> declaration defines that this document is an HTML5 document , represents the document type, and helps browsers to display web pages correctly. The <html> element is the root element of an HTML page The <head> element contains meta information about the HTML page The <title> element specifies a title for the HTML page (which is shown in the browser's title bar or in the page's tab) The <body> element defines the document's body, and is a container for all the visible contents, such as headings, paragraphs, images, hyperlinks, tables, lists, etc. The <h1> element defines a large heading , <h6> defines the least important heading The <p> element defines a paragraph ``` ## HTML Page Structure ![螢幕截圖 2023-11-21 下午4.22.08](https://hackmd.io/_uploads/S1BRuJqV6.png) ### HTML Pararaphs : < p > ### HTML Links : < a href="xxx.com"> ### HTML Images : <img src="w3schools.jpg" alt="W3Schools.com" width="104" height="142"> #### The source file (src), alternative text (alt), width, and height are provided as attributes --- ```css= <strong>加粗文字</strong> <em> 斜體</em> <ins> 底線</ins> <del>cancel Line</del> <hr> <b>加粗文字</b> <i>斜體</i> <u>底線</u> <s>cancel Lin</s> <br> 雙標籤:一對出現 單標籤:沒有結束:<br> 換行 <hr>水平線 <html> <head> 網頁頭:比broswer睇既:.css <title> 網頁標題</title> </head> <body> 網頁主體:用戶睇:圖片,文字 </body> </html> VS Code , 一個感嘆號一次出晒 <p> 段落標籤,段落之間存在間隙 </p> <hr> 插入圖片 <img src="url"> <alt> 替換文本,圖片無法顯示時,顯示的文字</alt> <title>提示文本,滑鼠停留時顯示的文字</title> <width></width> <height></height> => <img src="url" alt="sth" title="sth"> <hr> hyperLink <a href="url">跳去邊度?</a> <a href="url" target="_blank">加target="_blank" 作用開新頁</a> <a href="#">#係空連接,乜都唔跳</a> #### 音頻標籤 <audio src="url" controls loop muted autoplay> controls 用黎show control panel , loop 循環play, autoplay配合muted先 自動play</audio> <hr> ### 列表 1.無序列表 2.有序列表 3.自定義列表 #### 無序列表 ul 無序列表,li 列表條目 <ul> <li>第一</li> <li>第二</li> <li>第三</li> </ul> #### 有序列表 ol 無序列表,li 列表條目 <ol> <li>第一</li> <li>第二</li> <li>第三</li> </ol> #### 自定義列表 <dl> <dt>Title</dt> <dd>content</dd> </dl> <hr> ### 表格 <table> <tr> <th>A</th> <th>B</th> <th>C</th> <th>D</th> </tr> <tr> <td>1</td> <td rowspan="2">2 , row合拼</td> <td>3</td> <td>4</td> </tr> <tr> <td>5</td> <!-- <td>6</td> --> <td>7</td> <td>8</td> </tr> <tr> <td colspan="4">4 ,column 合拼</td> </tr> </table> ### 表單 ![](https://hackmd.io/_uploads/B1lTx6Qzp.png) 入乜show乜 文本框: <input type="text" placeholder="提示信息"> <br> 入乜都出點點 密碼框: <input type="password"> <br> 單選框: <input type="radio" name="gender" checked> name:分組用,同組只選一個 ,checked 默許選擇 <input type="radio" name="gender" checked>男 <input type="radio" name="gender">女 <br> 多選框:<input type="checkbox" checked> 1 <input type="checkbox"> 2 <input type="checkbox"> 3 <br> 上傳文件:<input type="file" multiple>multiple: <br> 下拉選單 <select> <option>1.</option> <option>2.</option> <option>3.</option> <option>4.</option> <option selected>1.</option> </select> ### 輸入文字 <textarea>please input</textarea> #### label標籤,增加點擊範圍 App1: <input type="radio" id="man"> <label for="man">男</label> for同id要相同 <br> App2: <label><input type="radio">女</label> ### button pass data to back-end <button type="sumit">click</button> <br> reset到默許值 <button type="reset">click</button> <br> simple button <button type="button">click</button> 要用到button,要under<form action="">action : send data 既url</form <hr> <div>獨佔一行</div> <span>不換行</span> show 空格:&nbsp; show > : &gt; show < : &lt ```

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully