打造更出色的常见问题解答页面
1. 搭建 HTML 文件
要为常见问题解答(FAQ)页面搭建 HTML 文件,可按以下步骤操作:
1. 从已有的示例 HTML 文件及相关文件和文件夹开始。在 HTML 文档的 <body>
标签内,添加一个标题和一个定义列表,代码如下:
<h1>Frequently Asked Questions</h1>
<dl>
<dt>What is jQuery?</dt>
<dd>
<p>jQuery is an awesome JavaScript library</p>
</dd>
<dt>Why should I use jQuery?</dt>
<dd>
<p>Because it's awesome and it makes writing JavaScript faster and easier</p>
</dd>
<dt>Why would I want to hide the answers to my questions?</dt>
<dd>
<p>To make it easier to peruse the list of available questions - then you simply click to see the answer you're