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
    • 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 Versions and GitHub Sync Note Insights 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
    Subscribed
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    Subscribe
    # HTML Cheatsheet ## ==Basic Tags== - `<html> </html>`:建立HTML文件。 - `<head> </head>`:包含標題和其他不顯示的信息。 - `<body> </body>`:包含文檔的可見部分。 - `<title> </title>`:將文檔名稱顯示在標題欄中,書籤時使用的名稱。 --- ## ==Body attributes (only used in email newsletters)== - `<body bgcolor=?>`:設置背景顏色,使用名稱或十六進位值 - `<body text=?>`:設置文本顏色,使用名稱或十六進位值 - `<body link=?>`:設置鏈接顏色,使用名稱或十六進位值 - `<body vlink=?>`:設置訪問過的鏈接顏色,使用名稱或十六進位值 - `<body alink=?>`:設置活動鏈接的顏色(鼠標點擊時) --- ## ==Text Tags== - `<pre> </pre>`:創建預格式化文本 - `<h1> </h1>` 到 `<h6> </h6>`:創建標題 - H1最大,H6最小 - `<b> </b>`:創建粗體文本(應使用 `<strong>`) - `<i> </i>`:創建斜體文本(應使用 `<em>`) - `<tt> </tt>`:創建打字機風格文本 - `<code> </code>`:用於定義源代碼,通常是等寬字型 - `<cite> </cite>`:創建引用,通常以斜體形式顯示 - `<address> </address>`:創建地址部分,通常以斜體形式顯示 - `<em> </em>`:強調一個單詞(通常以斜體形式顯示) - `<strong> </strong>`:強調一個單詞(通常以粗體形式顯示) - `<font size=?> </font>`:設置字體大小 - 1到7(應使用CSS) - `<font color=?> </font>`:設置字體顏色(應使用CSS) - `<font face=?> </font>`:定義使用的字體(應使用CSS) --- ## ==Links== - `<a href="URL">可點擊的文本</a>`:創建到統一資源定位符的超鏈接 - `<a href="mailto:EMAIL_ADDRESS">可點擊的文本</a>`:創建到電子郵件地址的超鏈接 - `<a name="NAME">`:創建文檔內的目標位置 - `<a href="#NAME">可點擊的文本</a>`:創建到該目標位置的鏈接 --- ## ==Formatting== - `<p> </p>`:創建新的段落 - `<br>`:插入換行符(回車) - `<blockquote> </blockquote>`:將內容放在引用中 - 使文本兩側縮進 - `<div> </div>`:用於使用CSS格式化塊內容 - `<span> </span>`:用於使用CSS格式化內聯內容 --- ## ==Lists== - `<ul> </ul>`:創建無序列表 - `<ol start=?> </ol>`:創建有序列表(start=xx,其中xx是計數數字) - `<li> </li>`:包圍每個列表項目 - `<dl> </dl>`:創建定義列表 - `<dt>`:在每個定義詞的前面 - `<dd>`:在每個定義的前面 --- ## ==Graphical elements== - `<hr>`:插入水平線 - `<hr size=?>`:設置水平線的大小(高度) - `<hr width=?>`:設置線的寬度(作為百分比或絕對像素長度) - `<hr noshade>`:創建沒有陰影的水平線 - `<img src="URL" align=? border=? height=? width=? alt=?>`:添加圖像;它是位於URL的單獨文件 - 將圖像對齊到左側/右側/中心/底部/頂部/中部(使用CSS) - 設置圖像周圍的邊框的大小(使用CSS) - 設置圖像的高度,以像素為單位 - 設置圖像的寬度,以像素為單位 - 為無法處理圖像的瀏覽器設置替代文本(ADA要求) --- ## ==Forms== - `<form> </form>`:定義表單 - `<select multiple name=? size=?> </select>`:創建一個滾動菜單。Size設置可見菜單項目的數量,用戶需要滾動。 - `<select name=?> </select>`:創建下拉菜單 - `<option>`:設置每個菜單項目 - `<textarea name=? cols="x" rows="y"></textarea>`:創建文本框區域。列設置寬度;行設置高度。 - `<input type="checkbox" name=? value=?>`:創建複選框。 - `<input type="checkbox" name=? value=? checked>`:創建預先選中的複選框。 - `<input type="radio" name=? value=?>`:創建單選按鈕。 - `<input type="radio" name=? value=? checked>`:創建預先選中的單選按鈕。 - `<input type="text" name=? size=?>`:創建一行文本區域。Size設置長度,以字符為單位。 - `<input type="submit" value=?>`:創建提交按鈕。Value設置提交按鈕上的文本。 - `<input type="image" name=? src=? border=? alt=?>`:使用圖像創建提交按鈕。 - `<input type="reset">`:創建重置按鈕 --- ## ==Tables (use only for data layout - use CSS for page layout)== - `<table> </table>`:創建表格 - `<tr> </tr>`:設置表格中每行 - `<td> </td>`:設置行中的每個單元格 - `<th> </th>`:設置表頭(正常單元格,加粗,居中文本) --- ## ==HTML5 input tag attributes== (不是所有瀏覽器都支持; 請訪問http://caniuse.com了解詳情) - `<input type="email" name=?>`:設置電子郵件地址的單行文本框 - `<input type="url" name=?>`:設置URL的單行文本框 - `<input type="number" name=?>`:設置數字的單行文本框 - `<input type="range" name=?>`:設置一系列數字的單行文本框 - `<input type="date/month/week/time" name=?>`:顯示包含日期/月份/周/時間的日曆的單行文本框 - `<input type="search" name=?>`:用於搜索的單行文本框 - `<input type="color" name=?>`:用於選擇顏色的單行文本框 --- ## ==Table attributes (only use for email newsletters)== - `<table border=?>`:設置表格單元格周圍的邊框寬度 - `<table cellspacing=?>`:設置表格單元格之間的空間量 - `<table cellpadding=?>`:設置單元格邊框和其內容之間的空間量 - `<table width=?>`:設置表格的寬度,以像素或百分比為單位 - `<tr align=?>`:設置行內的單元格對齊(左/中/右) - `<td align=?>`:設置單元格對齊(左/中/右) - `<tr valign=?>`:設置行內的單元格垂直對齊(頂部/中部/底部) - `<td valign=?>`:設置單元格的垂直對齊(頂部/中部/底部) - `<td rowspan=?>`:設置單元格應跨越的行數(默認=1) - `<td colspan=?>`:設置單元格應跨越的列數 - `<td nowrap>`:防止單元格內的行被打破以適應

    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