萬盛學電腦網

您现在的位置: 萬盛學電腦網 >> 程式設計 >  >> 網頁製作 >> HTML5 教學

HTML/CSS 核心英單字速查表:從 A 到 Z 掌握前端必備詞彙

前言

前端開發文件、規格書、錯誤訊息、屬性命名幾乎全英文。熟悉核心單字不僅能加速閱讀文件,更能精準命名類別、變數與元件。本表整理 150+ 高頻單字,按字母分類,附中文釋義與對應 CSS/HTML 語境。

A - E

單字中文前端語境
absolute絕對的position: absolute 絕對定位
active激活的:active 偽類、.active 狀態類別
align對齊text-align, align-items, align-self
alpha透明度RGBA 色彩、opacity
anchor錨點<a> 標籤縮寫
animation動畫@keyframes, animation 屬性
attribute屬性HTML 標籤屬性、getAttribute()
auto自動margin: auto, width: auto, grid-auto-flow
background背景background-image, background-color
border邊框border: 1px solid #000
box盒子盒模型 (Box Model)、box-sizing
block區塊display: block, 區塊元素
break中斷/換行<br>, page-break-after
button按鈕<button>, type="button"
cascade層疊CSS 全名 Cascading Style Sheets
cell儲存格<td>, <th>, table-cell
child子代:first-child, > 子代選擇器
class類別class="btn", .className
clear清除clear: both 清除浮動
color顏色color: red (文字色)
column欄/列CSS Columns、Grid column
content內容::before { content: "" }, contenteditable
cursor游標cursor: pointer
decoration裝飾text-decoration: underline
display顯示display: flex/grid/none
document文件document 物件、DOM
element元素HTML Element, DOM Element
event事件addEventListener, onclick
float浮動float: left/right
flex彈性display: flex, Flexbox 佈局
focus焦點:focus, focus(), 無障礙關鍵
font字體font-family, font-size
form表單<form>, 表單驗證
grid網格display: grid, Grid 佈局
height高度height: 100vh, min-height
hidden隱藏hidden 屬性, visibility: hidden
hover懸停:hover 偽類
id身分識別id="unique", #id 選擇器
image圖像<img>, background-image
important重要!important 提高優先權
index索引/層級z-index, tabindex
inline行內display: inline, 行內元素
input輸入<input> 表單控制項
justify對齊/伸展justify-content, text-align: justify
keyframe關鍵影格@keyframes 動畫定義
layer圖層疊層上下文, @layer CSS 層疊
layout版面配置Layout 佈局, layout-shift (CLS)
margin外距margin: 0 auto 置中
media媒體@media 響應式查詢
model模型Box Model, CSSOM
navigation導航<nav>, 導航列
none無display: none, border: none
object物件JS Object, <object> 標籤
opacity不透明度opacity: 0.5
overflow溢出overflow: hidden/auto/scroll
padding內距padding: 1rem
parent父代parentNode, :has() 父代選擇器
position定位position: relative/absolute/fixed/sticky
property屬性/特性CSS Property, JS Property
pseudo偽Pseudo-class (:hover), Pseudo-element (::before)
query查詢querySelector, Media Query
relative相對position: relative, 相對單位 (rem, em)
render渲染Render Tree, Rendering Pipeline
responsive響應式RWD (Responsive Web Design)
root根:root 偽類, document.documentElement
scroll捲動scrollTop, scroll-behavior
select選擇/下拉<select>, ::selection
semantic語意化Semantic HTML (<article>, <header>)
shadow陰影box-shadow, text-shadow, Shadow DOM
size尺寸font-size, background-size
source來源<source> (video/audio/picture)
span跨度/行內框<span>, colspan, rowspan
style樣式style 屬性, CSS Style Sheet
table表格<table>, display: table
target目標target="_blank", Event Target
transform變形transform: rotate(45deg)
transition過渡transition: all 0.3s
typography排版字體、行高、字間距設定
unit單位px, rem, em, %, vw, vh, fr
value值屬性值, value 屬性 (input)
variable變數CSS Custom Property (--var), JS 變數
viewport視口meta viewport, vw/vh 單位
visibility可見性visibility: hidden (佔空間但隱藏)
width寬度width: 100%, min-width, max-width
wrapper包裹器容器類別命名慣例 .wrapper, .container
z-indexZ 軸層級控制疊層順序

進階分類速查

佈局關鍵字

flex, grid, float, position, display, flow, container, wrapper, item, gap, align, justify, order, basis, grow, shrink

視覺設計關鍵字

color, background, border, radius, shadow, gradient, opacity, filter, blend, transform, transition, animation

排版關鍵字

font, text, line-height, letter-spacing, word-spacing, white-space, overflow-wrap, direction, writing-mode

互動與狀態關鍵字

hover, active, focus, visited, disabled, checked, required, readonly, valid, invalid

記憶技巧與學習建議

  1. 語境記憶:不要死背單字,配合實際 CSS 屬性或 HTML 標籤記憶(如看到 margin 就聯想「外距、推開鄰居」)。
  2. 前綴/後綴法:min-/max- (最小/最大)、-start/-end (邏輯屬性)、auto- (自動)、re- (重複/反向)。
  3. 閱讀官方文件:MDN Web Docs、W3C Spec 皆為英文,習慣查閱原文最快。
  4. 4. 命名練習:用英文為類別、變數、元件命名(如 .btn-primary, const userList = []),強制輸出應用。 5. 製作單字卡:Anki、Quizlet 等間隔重複軟體,利用碎片時間複習。

結語

單字是溝通的橋樑。將這 150+ 核心詞彙內化為直覺,你將能流暢閱讀規格、精準搜尋解決方案、撰寫可讀性高的程式碼,並在國際技術社群中無障礙交流。

copyright © 萬盛學電腦網 all rights reserved