Skip to content

Commit efa2e6d

Browse files
author
johnaustin
committed
escaped html tags
1 parent c8019d0 commit efa2e6d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/general-development/how-to-resolve-errors-and-warnings-when-previewing-a-page-in-sharepoint.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,24 +27,24 @@ Here are the preview errors and warnings that you might encounter, and help for
2727

2828

2929

30-
## HTML file cannot contain <form> tags
30+
## HTML file cannot contain \<form\> tags
3131
<a name="FormTags"> </a>
3232

3333

3434
### Message
3535

36-
**Your Master Page has one or more HTML <FORM> tags. For your master page to work, remove the tags (but you can leave the content in them).**
36+
**Your Master Page has one or more HTML \<FORM\> tags. For your master page to work, remove the tags (but you can leave the content in them).**
3737

3838

3939

4040

4141
### Resolution
4242

43-
SharePoint 2013 pages are already wrapped in a **<form>** tag so that ASP.NET can do post-backs (specifically, a SharePoint 2013.master page contains the **<SharePoint:SharePointForm>** tag that creates an actual **<form>** tag when an associated content page is rendered). So, including a **<form>** tag on your master page or page layout means that there would be nested **<form>** tags on the final rendering of the page, which is not valid in HTML. In your HTML editor, delete any **<form>** tags, save the page, and then refresh the preview.
43+
SharePoint 2013 pages are already wrapped in a **\<form\>** tag so that ASP.NET can do post-backs (specifically, a SharePoint 2013.master page contains the **<SharePoint:SharePointForm>** tag that creates an actual **\<form\>** tag when an associated content page is rendered). So, including a **\<form\>** tag on your master page or page layout means that there would be nested **\<form\>** tags on the final rendering of the page, which is not valid in HTML. In your HTML editor, delete any **\<form\>** tags, save the page, and then refresh the preview.
4444

4545

4646

47-
If you want an HTML **<form>** tag in the page layout, you should put the form within a content placeholder with the ID **PlaceHolderUtilityContent** by adding this code to your HTML page layout:
47+
If you want an HTML **\<form\>** tag in the page layout, you should put the form within a content placeholder with the ID **PlaceHolderUtilityContent** by adding this code to your HTML page layout:
4848

4949

5050

0 commit comments

Comments
 (0)