diff --git a/aspnetcore/mvc/views/razor.md b/aspnetcore/mvc/views/razor.md index 5a9045c2b63b..2a7baeb423a9 100644 --- a/aspnetcore/mvc/views/razor.md +++ b/aspnetcore/mvc/views/razor.md @@ -41,6 +41,29 @@ HTML attributes and content containing email addresses don't treat the `@` symbo Support@contoso.com ``` + +::: moniker range=">= aspnetcore-6.0" + +### Scalable Vector Graphics (SVG) + +[SVG](https://developer.mozilla.org/docs/Web/SVG) [foreignObject](https://developer.mozilla.org/docs/Web/SVG/Element/foreignObject) elements are supported: + +```html +@{ + string message = "foreignObject example with Scalable Vector Graphics (SVG)"; +} + + + + +

@message

+
+
+``` + +::: moniker-end + ## Implicit Razor expressions Implicit Razor expressions start with `@` followed by C# code: