Documentation · ViewHelper reference

Using the <html> tag

<?xml version="1.0" encoding="UTF-8" ?>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en"
      xmlns:f="http://typo3.org/ns/TYPO3/Fluid/ViewHelpers"
      f:schemaLocation="https://fluidtypo3.org/schemas/fluid-master.xsd">
<head>
	<title>Partials: MyPartial</title>
</head>
<body>
	<f:section name="Main">
		<!-- Fluid goes here -->
	</f:section>
</body>
</html>

Using a <div> or other standard tag

<div xmlns:f="http://typo3.org/ns/TYPO3/Fluid/ViewHelpers"
     f:schemaLocation="https://fluidtypo3.org/schemas/fluid-master.xsd">
	<!-- Fluid goes here -->
</div>

Mini guide

Download the XSD file or use the URL as f:schemaLocation.

Add an xmlns:f attribute and assign a unique namespace URL. If at all possible, use the official URLs.

Make sure when referencing your XSD file to always use the same URL for the same XSD file.