Add text, tables, and images to your page with the Text web part
Applies ToSharePoint Server Subscription Edition SharePoint Server 2019 SharePoint in Microsoft 365 Microsoft 365 admin SharePoint admin center SharePoint operated by 21Vianet

When you add a modern page to a site, you can add and customize web parts, which are the building blocks of your page.

Note: Some functionality is introduced gradually to organizations that have opted in to the Targeted Release program. This means that you may not yet see this feature, or it may work differently than what is described in the help articles. 

Add the Text web part

Use the Text web part to add paragraphs to your page. Formatting options like styles, bullets, indentations, highlighting, and links are available. You can also paste images inline with text.

To use the Text web part:

  1. If you're not in edit mode already, select Edit at the top right of the page. Find the Toolbox (Toolbox icon in content pane) on the right.

  2. Select See all web parts, then select or drag-and-drop Text from the list of web parts.

  3. Select inside the box and the formatting toolbar will display.

    screenshot of the text web part with ghost text
  4. Enter your text and format it using the formatting toolbar. Depending on the size of your screen, some of the formatting options might be hidden under the ellipses button on the tool bar. View more formatting options by selecting the ellipses (...).screenshot of the text web part with property pane option highlighted​​​​​​​

Page anchors

Page anchors (also known as bookmarks) are automatically added to Heading 1, Heading 2, and Heading 3 styles in Text web parts on your page. When a page is published, and you hover over a tab or a heading in a Text web part, you'll see a link symbol  indicating the page anchor.

Example of page anchor link

You can right-click a page anchor and select "copy link" from your web browser's context menu to copy the page anchor location for use outside of SharePoint pages. Once the page anchor is on the clipboard, it can be pasted into emails, instant messages, or other such items. ​​​​​​​

Insert a hyperlink

There are two ways to add a hyperlink. One way is using the Hyperlink command on the toolbar, and another way is copying the URL and directly pasting into the textbox.

  • Use the Hyperlink command

    1. Select Hyperlink Hyperlink in the toolbar or in the Text and table formatting pane, or use CTRL+K. If you select a word before selecting, that word is used as a keyword to search for pages.

      Insert link dialog box
    2. In the Insert Link dialog box, type the address of the link in the Address box, and the text you want linked in the Text to display box.

      Optionally, if you want to link to a page on the site, you can search for it using the Search box, and then select the page in the results list.

    3. When you're done, select Save.

  • Directly copy and paste the link in the text web part

You can copy the URL that you want to insert and paste it into the textbox. The URL will automatically change into a hyperlink.

Add an image

You can add an image inline with text by copying an image and pasting it into the Text web part at the location of your cursor. Then, select the image within the web part and use the toolbar at the upper left of the image to edit the image, move it, or align it left, right, or center. You can resize the image by selecting the handles at each corner of the image.

Example of an inline image in the Text web part

Note: When you left- or right-justify an image, ensure the image width is greater than 50% of the column width for best results. If it is less than 50% in width, you'll see white space on either side of the image, and it may not look as if it is left- or -right justified.

Add a table

  1. To add a table, select the Insert table button. Depending on your SharePoint version, you may see this button under more styles screenshot of Insert a table

  2. Once you are clicked into the table, the table formatting pane becomes available to you.  You can also access the table formatting pane by right-clicking on the table itself.​​​​​​​ You can format the text in the table by using the text formatting tools available on the toolbar or in the Text and table formatting pane:table-format-pane.png

Choose a table style

In SharePoint (but not SharePoint Server 2019), you can choose a simple table style or a themed table style. The themed table styles (shown in the second row) reflect the theme color used on your site. From left to right, the table styles are:

  • Plain

  • Subtle header (header has a bottom border)

  • Header (header row has solid color and reverse font)

  • Alternating rows (header row has solid color and reverse font, and alternating rows are shaded)

  • Column header (header row has solid color and reverse font, first column and alternating rows are shaded)

Insert and delete rows and columns

Add or remove rows or columns, or delete the entire table, by selecting the appropriate buttons in the Text and table formatting pane. You can also use the Tab key to navigate within the table and to add rows. From the left to right, the options are:

  • Insert row above

  • Insert row below

  • Insert column to the left

  • Insert column to the right

  • Delete the selected row

  • Delete the selected column

  • Delete the entire table

Set table alignment

In SharePoint (but not SharePoint Server 2019), you can use the table alignment buttons to position the entire table within the web part space. You can align the table to the left, center, or right.

Notes: 

  • Depending on your SharePoint version and your screen size, you may see the Insert table button directly available in the toolbar or under more styles. Also, your table formatting pane may look slightly different. 

  • Line height is fixed and designed for legibility and ease of reading. It is set at 140% of font size. After the end of a line, you can press enter to create a new paragraph, and the spacing between the paragraphs is equal to the height of one line. The exception is spacing after headings, which is 12 pixels.

Use Editor to check spelling and grammar

To check spelling and grammar with Editor within Text web parts on your page, 

  1. Select Edit at the top right of the page.

  2. Select Page details at the top of a page that has already been published. ​​​​​​​ location of page details button

  3. In the Page details pane, adjust the toggle under Use Editor to check spelling, grammar, and more to On or Off.

       screenshot of toggle edit button on or off

Learn more about managing Page details

Need more help?

Want more options?

Explore subscription benefits, browse training courses, learn how to secure your device, and more.

Communities help you ask and answer questions, give feedback, and hear from experts with rich knowledge.