Background Info
Code Blocks: Displaying code blocks on a web page is a great way to share
information with other developers. HTML has a few dedicated tags to displaying code.
Example: x = list()
Why is this important?
Sharing information is a great way to learn, and help others learn. The developer
community is an essential part to programming, and adding to this knowledge base keeps
the field healthy, and growing.
Use the Pre and Code tags to display pieces of computer
code in HTML.
Step 1: Copy and Paste html code into a text editor.
Step 2: Replace <,>, & with the following characters:
Convert HTML using online HTML Escape/Unescape programs.
- Replace the
<character with& - Replace the
<character with< - Replace the
>character with>