先讓 HTML 說清楚首頁的唯一主標題、內容分區與下一步行動。
現在要做:請在 index.html 的「.page-shell」位置完成:在既有 main 裡建立 Hero、服務摘要與主要 CTA
貼上位置:index.html:.page-shell 區塊,先保留同一檔案的其他內容。
<section class="hero" aria-labelledby="hero-title">
<p class="eyebrow">LESSON-08 · 首頁整合</p>
<h1 id="hero-title">沐光工作室:讓空間回到生活</h1>
<p>用清楚的頁面區塊,讓訪客快速理解我們能提供什麼。</p>
<a class="primary-button" href="services.html">查看服務內容</a>
</section>
<section id="services" class="service-summary" aria-labelledby="services-title">
<h2 id="services-title">服務摘要</h2>
<ul class="service-list">
<li><h3>品牌網站</h3><p>建立可信任的第一印象。</p></li>
<li><h3>內容整理</h3><p>把複雜資訊變成可閱讀的路徑。</p></li>
<li><h3>持續優化</h3><p>用觀察與迭代讓體驗越來越好。</p></li>
</ul>
</section>預期結果:頁面出現品牌標題、Hero 主標、三項服務摘要與前往 services.html 的連結。
驗收證據:Elements 可看到 header、main、section、h1 與 a[href="services.html"],且整頁只有一個 h1。
卡住時先看這裡
常見錯誤:把第二個 main 或第二個 h1 貼進去,導致 landmark 與標題層級重複。
第一個檢查:先在 Elements 搜尋 <main> 與 <h1>,確認各只有一個,再檢查 CTA 的 href。