- Created multiple exercises under the CSS layout section, including: - Final page layout with CSS styles and HTML structure. - Display and flow concepts with examples of block, inline, and none display types. - Selectors and pseudo-classes with practical examples. - Overflow and sizing handling in CSS. - Grid layout basics for two-dimensional layouts. - Fixed and sticky positioning examples. - Centering techniques for common layout scenarios. - Added README files for each exercise to outline objectives and file structures. - Updated main README to include new sections and usage instructions.
44 lines
1.1 KiB
HTML
44 lines
1.1 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="zh-CN">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<title>个人博客首页</title>
|
|
</head>
|
|
<body>
|
|
<header>
|
|
<h1>小周的前端博客</h1>
|
|
<nav>
|
|
<a href="#home">首页</a>
|
|
<a href="#posts">文章</a>
|
|
<a href="#about">关于我</a>
|
|
</nav>
|
|
</header>
|
|
|
|
<main>
|
|
<section id="posts">
|
|
<h2>最新文章</h2>
|
|
|
|
<article>
|
|
<h3>HTML 结构入门</h3>
|
|
<p>这篇文章介绍如何用标题、段落和列表搭建页面基础结构。</p>
|
|
</article>
|
|
|
|
<article>
|
|
<h3>为什么要写语义化标签</h3>
|
|
<p>语义化标签让页面更清晰,也更方便后期维护。</p>
|
|
</article>
|
|
</section>
|
|
|
|
<aside id="about">
|
|
<h2>关于我</h2>
|
|
<p>我是一名正在学习前端的同学,目前专注于 HTML 和 CSS 基础。</p>
|
|
</aside>
|
|
</main>
|
|
|
|
<footer>
|
|
<p>2026 小周的前端博客</p>
|
|
</footer>
|
|
</body>
|
|
</html>
|