How to Embed HTML in My WordPress Blog Pages

104 8
    • 1). Log in to your WordPress dashboard and navigate to "Pages." Select the page you want to edit and click on its title to load the editing screen.

    • 2). Click the "HTML" tab at the top of the editing box to edit in HTML mode. You can edit the HTML code of your post and insert HTML tags using the buttons at the top of the editing box.

    • 3). Type in the HTML code that you want to display on the page.

    • 4). Replace the "less than" ("<") and "greater than" (">") symbols in the code you just typed with special character codes to keep the browser from rendering the code, then wrap the sample HTML code in "<code>" and "<pre>" tags as shown in this example:

      <code><pre>

      <div>Hello, world!</div>

      </pre></code>

      Do not put the "<pre>" tags on separate lines because they will cause extra blank spaces to appear on your pages.

Source...
Subscribe to our newsletter
Sign up here to get the latest news, updates and special offers delivered directly to your inbox.
You can unsubscribe at any time

Leave A Reply

Your email address will not be published.