How To Add Html In Content Editor Web Part

Adding html to content editor web parts is easy if you know how to do it. In this article, I will show you how to add basic html such as bold, italic, link, header, and image tags into your content editors.

This tutorial is for experienced users that have done some simple editing before. You are not going to be learning any new coding languages, but instead you will be adding pre-made html elements onto a page or site.

There are many reasons why you would want to insert rich media or additional content into an existing document or website. Let’s look at some examples!

Example one: Product pictures and descriptions

You can take our word for it – we love putting together educational articles and marketing materials so that people can directly compare products and learn from us.

But what about those who don’t trust us? Or individuals who make low budgets but desire high quality information? They may not have access to expensive test equipment or expertise in their field.

They can easily go through your pages to find product info though, right?

That’s where using rich media comes in. By including nice, aesthetically pleasing images and descriptions, they will still get the needed knowledge.

These tools include things like setting up a phone with a particular company, creating a YouTube account, etc. We use them all the time when doing research.

Create your first web part page using HTML

Code your website with seo in mind

There are many ways to add content to a SharePoint Online team site, but one of the most popular methods is using an editable rich text box or something called a Content editor web part.

You can create this type of web part by editing the template that comes already configured with some components like fonts, colors, and link styles. By changing the settings or adding new ones, you can update the look and feel for the web parts you create with it.

There are several things you can do within the content editor web part, such as creating headers, paragraphs, lists, and even images! All of these elements can be modified after being dragged onto the web part from the Insert tab.

By learning how to modify the content inside the content editor web part, you will learn more about developing pages for Team Sites and Office 365.

Work with different elements of the content editor web part

Another way to add html into your site is by working with individual components of the content editor web part. There are several parts to this rich element, including Title, Rich Text Area, Media, or Upload Button.

You can add content into any one of these areas depending on what you want to include. For example, you could insert an image into the media area, use the rich text area to create some bold text, or add a link in the upload button section.

There are three main ways to work with these sections of the content editor web part. You can either cut and paste content directly into the appropriate place, drag and drop, or use the Edit Template option to take additional actions.

This article will go over all three methods for adding html into the content editor web part.

Link to resources on how to use html in content editor

In this article, you will learn some easy ways to add rich formatting and advanced features to your web pages using either built-in tools or third party apps.

You can edit text as easily as possible by choosing one of the three most common fonts and changing their size. You can also insert links, pictures, and other rich media such as videos and audios into your documents.

These additions are not only pretty but also helpful for making your messages more attractive and engaging.

Become familiar with tips for editing content

It is very important to know how to edit rich content such as videos, images or documents. These types of files contain several different components that make up the piece.

If you are not careful when editing these components, then your file will not play properly or may even be completely unusable.

There can easily be unexpected things like bullets or icons that include logos or text. All of these parts are designed to be re-sorted and re-ordered so do not delete them unless needed.

You also have the option to add new ones or change the color, style, or size of an existing one.

Use proper grammar when writing

When editing or creating content, you will need to include some additional tags and components. You can do this easily in the Microsoft SharePoint Online Content Editor web part.

You can add rich media such as videos and documents into your posts. This is very helpful for sharing educational materials and presentations.

You can also insert links to external sites and resources. All of these things are done by including appropriate html elements within your post.

The basic html element types that can be inserted into a post are listed below!

Heading Tags

These include H1, H2, and so forth. They are used to create different headings in a article or page. Make sure to use bold, italic, and/or underline styles to make them show up more clearly.

Unordered List Elements

Next we have bulleted lists which contain either no bullets or one-item lists. To create a multi-item list, just add an open bracket (>) followed by several items separated by commas.

To create a numbered list, start with a decimal number tag (li>Number) and then place the item header and bullet in between two sets of closed brackets (/>).


A blockquote is an interesting quote or excerpt you would like to emphasize and/or defend. It can be modified through color, font style, and/or addition of quotation marks.

Reference important topics when creating content

It is very common for people to use web parts as a way to add content or features to pages. These web parts can be done via Create, Edit, Insert, or Replace Mode depending on what function you want to perform with them.

There are several types of web part that can be used in this manner including Basic Text Boxes, Image Galleries, Checkboxes, Ratings Systems, and More. Each one of these has different settings that users can edit to fit their needs better.

Something that may trip up novice users is the rich text editor. The rich text editor allows users to insert basic formatting into their posts such as bolding words and changing fonts. However, there is no option to include additional html tags like


,or even pre-made templates!

This can get pretty frustrating because most sites need at least some kind of header, body, or aside element to organize the page. There are ways to make your own though so do not worry! This article will go over how to add html to a webpage using Microsoft’s Content Editor Web Part.

Know the differences between bold, italicize, and underlined text

Adding basic html tags such as , and so on is easy to do in web parts. You can find these settings in the advanced properties of the content editor web part.

But what if you want to add something more elaborate? For example, what if you wanted to create your own heading or title for the page? Or maybe you would like to insert an image or link.

That’s when it gets tricky. There are three main types of formatting used for rich editing in SharePoint. They are called Bold, Italics, and Links.

Combine all of these styles into one piece of content

Overcoming Theme-Based Clashes

If you are having issues adding html or css to your web part, it could be because there is an overall theme for the site that is preventing you from editing the page.

The most common way this happens is when you edit an existing element (like a header or div) and the style gets overridden by another set of CSS rules.

This can happen if someone else made changes to the website design before you added the web part. It also can occur if they used different software to make their edits (for example, some use Photoshop while others use a drawing program like InDesign or Sketch.

There are several ways to fix this problem. You can either choose not to add the web part until the issue is fixed, you can find and remove the overrule, or you can create your own new CSS style to take effect.

Removing The Style

If you run across a conflict when trying to edit a page component, you can simply skip applying the style completely!

By choosing Not Apply, the browser will not apply the style, and you can then reattach the web part and update it later.

About The Author

Juice Staff Writer
Juice is a web app that harnesses the power of AI to generate awesome SEO-friendly content right on your website or e-commerce store. This powerful yet simple tool that enables you to easily and quickly generate content focused on your niche topic.
Juice Beta is ending July 1st! Subscribe before end of month to lock in Juice Plus for 50% off!
$49 $25
Sign up now
Juice Beta is ending soon! Subscribe now to lock in Juice Plus for $49 $25
Sign up now