There are times when you are writing content and you need to reference a specific social media post in your HTML webpage. Your content management system might have a code editor section or a code block. You might be using an HTML file.
Whatever the case, you’re still working with a page built with HTML. Social media platforms like Facebook and Instagram provides an option to copy an embed code of a specific post. You can put this embed code into your HTML page. That specific post will now appear on your HTML page.
The following are some examples of adding a social media post in your HTML website.
Add instagram post in HTML
To add an Instagram post to HTML, follow the steps below.
- Login to Instagram.
- Go to the specific post you want to add to HTML.
- On the upper right corner, click the three dots.
- There you will see the Embed option.
- Click the copy embed code button.
- Go to your HTML page or code block.
- Paste the embed code from Instagram.
Add X post in HTML
To add X (Formerly Twitter) post to HTML, follow the steps below.
- Login to X.
- Go to the post you want to add to HTML.
- On the upper right corner of the post, click the three dots.
- On the popup, click the embed option.
- It will show you a page where you can generate the embed code.
- Copy the embed code.
- Paste it in your HTML code block or page.
Add multiple posts in HTML
Now that you know how to add a specific social media post to HTML, you might want to add all the posts of a specific social media account. It means instead of one social media post, you will add all the recent posts of a social media account.
You can do this using a SociableKIT widget. Click here to create a free widget now.
That’s it!
I hope this tutorial about adding a social media post to HTML is helpful. It would be good to see a specific social media post on a webpage, especially of that post is highly relevant to the overall content. If you have a specific social media platform not mentioned in this post, let us know so we can improve it.
Please share this post to your friends who need it. Thank you!