> For the complete documentation index, see [llms.txt](https://docs.duongtuyen.club/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.duongtuyen.club/my-work/ryviu-blog/add-q-and-a-sections-to-blog-post.md).

# Add Q\&A sections to blog post

Mặc định trong blog post không có nên phải thêm Q\&A bằng HTML. Dưới đây là hướng dẫn thêm Q\&A vào bài post

1. Để thêm Q\&A section vào bài post và thêm code Q\&A  HTML vào bài viết, tham khảo hình ảnh bên dưới

<figure><img src="https://3633883570-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MJaTnoxEB8l8lKu5O1a%2Fuploads%2FGXN1jYYbyWmdBdxTZlFe%2FScreenshot%202023-04-18%20at%2010.06.12.png?alt=media&amp;token=7349c815-f228-480b-ac89-16a17b25c672" alt=""><figcaption></figcaption></figure>

2. Sau đó thêm code Q\&A dưới đây:&#x20;

Mỗi đoạn code phía dưới là 1 Question Answer.

Thay thế **Question 1** bằng nội dung Question và **Answer 1** bằng nội dung Answer

```html
<div class="faq-question">
	<div class="r-question">
	        <h4 class="r-title-question">Question 1</h4>
	        	<span class="r-icon">
	        		<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" class="r-plus">
		        		<path fill="currentColor" d="M0 7H16V9H0z"></path><path transform="rotate(-90 7 16)" fill="currentColor" d="M7 16H23V18H7z"></path>
		        	</svg>
		        
	        		<svg width="16" height="16" viewBox="0 0 17 2" fill="none" xmlns="http://www.w3.org/2000/svg" class="r-minus"><path fill="currentColor" d="M0.5 0H16.5V2H0.5z"></path></svg>
		        </span>
	</div>
		  
	<div class="r-answer">
		<p>Answer 1</p>
	</div>
</div>
```

<figure><img src="https://3633883570-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MJaTnoxEB8l8lKu5O1a%2Fuploads%2FbTm8olvWYI6LkmriUHDW%2FScreenshot%202023-04-18%20at%2010.06.55.png?alt=media&amp;token=507d6d90-4b1e-45d7-be82-11c45ef06406" alt=""><figcaption></figcaption></figure>

Có thể paste thêm code xuống dưới của **HTML Embed Code Editor** popup để thêm Q\&A mới

<figure><img src="https://3633883570-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MJaTnoxEB8l8lKu5O1a%2Fuploads%2FG5DYwChSqn8IeeBJh6Lg%2FScreenshot%202023-04-18%20at%2010.39.57.png?alt=media&amp;token=08ad5831-1813-4d75-a31c-9cdd5fd2bf26" alt=""><figcaption><p>Demo</p></figcaption></figure>
