HTML 標籤、CSS 屬性、JavaScript API 皆源自英語詞彙。掌握核心單詞拼寫與語義,不僅能加速編碼、減少拼字錯誤,更能深度理解規格設計意圖。本文按字母序整理 A-Z 核心術語,附中文對照、記憶鉤子與使用情境。
| 單詞 | 中文 | HTML/CSS 語境 | 記憶鉤子 |
|---|---|---|---|
| absolute | 絕對 | position: absolute | Absolutely positioned(絕對定位) |
| active | 激活/作用中 | :active 偽類、active 導航項 | Active state(激活狀態) |
| align | 對齊 | text-align, align-items, align-self | Alignment(對齊動作) |
| alpha | 透明度通道 | rgba(), hsla() 的 Alpha 參數 | Alpha channel(首個通道) |
| anchor | 錨點 | <a> 標籤全拼 | Anchor link(拋錨連結) |
| animation | 動畫 | @keyframes, animation 屬性 | Animate → Animation |
| auto | 自動 | margin: auto, width: auto | Automatic(自動計算) |
| 單詞 | 中文 | 語境 | 記憶 |
|---|---|---|---|
| background | 背景 | background-color/image/repeat/position/size | Back + ground(後方地面) |
| border | 邊框 | border-width/style/color/radius | Border line(邊界線) |
| box | 盒子 | 盒模型、box-sizing, box-shadow | Box model(盒子模型) |
| block | 區塊 | display: block, 區塊級元素 | Building block(建構塊) |
| bold | 粗體 | font-weight: bold, <b>, <strong> | Bold face(粗臉/粗體) |
| break | 斷行/中斷 | <br>, word-break, break-inside | Line break(換行) |
| 單詞 | 中文 | 語境 | 記憶 |
|---|---|---|---|
| cascade | 層疊 | CSS = Cascading Style Sheets | Cascade(瀑布/層疊) |
| cell | 儲存格 | <td> (table data cell), <th> | Cell(蜂巢/單元格) |
| center | 置中 | text-align: center, margin: auto | Center point(中心點) |
| child | 子元素 | :first-child, > 子代選擇器 | Child node(子節點) |
| class | 類別 | class="...", .classname | Classification(分類) |
| color | 顏色 | color, background-color, border-color | Color(美式拼寫) |
| column | 欄/直欄 | column-count, grid-column, <col> | Column(圓柱/直欄) |
| content | 內容 | content 屬性, ::before/after, contenteditable | Content(容器內容) |
| cursor | 游標 | cursor: pointer, cursor: not-allowed | Cursor(游標/光標) |
| 單詞 | 中文 | 語境 | 記憶 |
|---|---|---|---|
| display | 顯示/佈局模式 | display: block/inline/flex/grid/none | Display(展示) |
| div | 分割/區塊 | <div> = division | Division(分割區域) |
| document | 文檔 | document 物件, document.write() | Document(文件) |
| default | 預設 | :default, default 關鍵字 | Default value(預設值) |
| 單詞 | 中文 | 語境 |
|---|---|---|
| element | 元素 | HTML Element, document.createElement() |
| em | 相對單位/強調 | font-size: 1.5em, <em> |
| float | 浮動 | float: left/right |
| font | 字體 | font-family/size/weight/style |
| flex | 彈性 | display: flex, flex: 1 |
| focus | 焦點 | :focus, :focus-visible, :focus-within |
| form | 表單 | <form>, form 屬性 |
| fixed | 固定 | position: fixed, background-attachment: fixed |
| 單詞 | 中文 | 語境 |
|---|---|---|
| grid | 網格 | display: grid, grid-template-columns |
| gap | 間隙 | gap, row-gap, column-gap |
| height | 高度 | height, min-height, max-height |
| hover | 懸停 | :hover 偽類 |
| hidden | 隱藏 | hidden 屬性, visibility: hidden, input type=hidden |
| header | 頁首/標頭 | <header>, <th> 表頭 |
| 單詞 | 中文 | 語境 |
|---|---|---|
| id | 身分識別 | id="unique", #id 選擇器 |
| inline | 行內 | display: inline, inline-block, inline-flex |
| important | 重要 | !important |
| index | 索引/層級 | z-index, tabindex |
| inherit | 繼承 | color: inherit, 可繼承屬性 |
| image / img | 圖片 | <img>, background-image |
| input | 輸入 | <input> 表單控件 |
| justify | 兩端對齊/主軸分佈 | text-align: justify, justify-content |
| left | 左側 | left: 0, text-align: left, float: left |
| line | 線/行 | line-height, border-bottom, <hr> |
| list | 列表 | <ul>, <ol>, list-style |
| 單詞 | 中文 | 語境 |
|---|---|---|
| margin | 外邊距 | margin, margin-top/right/bottom/left |
| max / min | 最大/最小 | max-width, min-height |
| media | 媒體 | @media, <link media="print"> |
| model | 模型 | Box model, CSSOM |
| navigation / nav | 導航 | <nav>, .nav, .navbar |
| none | 無/無效 | display: none, border: none, list-style: none |
| opacity | 不透明度 | opacity: 0.5 |
| overflow | 溢出 | overflow: hidden/auto/scroll/visible |
| padding | 內邊距 | padding, padding-top... |
| position | 定位 | position: static/relative/absolute/fixed/sticky |
| pointer | 指標 | cursor: pointer |
| relative | 相對 | position: relative |
| right | 右側 | right: 0, text-align: right |
| 單詞 | 中文 | 語境 |
|---|---|---|
| radius | 半徑 | border-radius |
| resize | 調整大小 | resize: both/horizontal/vertical |
| scroll | 捲動 | overflow: scroll, scroll-behavior |
| select | 選擇 | <select>, ::selection |
| solid | 實線/固體 | border-style: solid |
| span | 跨度/行內區塊 | <span> |
| static | 靜態 | position: static (預設) |
| style | 樣式 | style 屬性, <style>, CSS |
| table | 表格 | <table> |
| transform | 變換 | transform: translate/rotate/scale |
| transition | 過渡 | transition: all 0.3s ease |
| width | 寬度 | width, min-width, max-width |
| z-index | Z軸層級 | z-index: 999 |
back-(後) ground(地) → background;in-(不) herit(繼承) → inherit;over-(超過) flow(流) → overflow:hover 聯想「滑鼠停留」;看到 z-index 聯想「Z軸垂直螢幕向外」將這份字彙表轉化為你的肌肉記憶,編寫 HTML/CSS 將如行雲流水。建議列印置於螢幕旁,遇到陌生單詞即查即記,三個月內徹底征服前端核心詞彙!