What are some potential legal issues to consider when copying HTML code from a CMS for use in a separate website?

One potential legal issue to consider when copying HTML code from a CMS for use in a separate website is copyright infringement. To avoid this issue, you should always ensure that you have permission to use the code or that it is open source. Additionally, you should give proper attribution to the original source of the code.

// Example of giving attribution to the original source of the HTML code
<div>
   <p>This code was originally sourced from [CMS name].</p>
</div>