SVG pattern is used to fill any shape with different types or patterns created by svg shapes or lines. pattern has some attributes such as id, x, y, width, height, patternUnits etc.
<pattern id="idName" x="value" y="value" width="width" height="height" patternUnits="value" >
</pattern>
You can use any number of attributes in pattern element
You can use SVG patterns any where within an HTML document.
Open notepad or any other text editor, follow the following points.
save file with name task.html or task.htm and then open it using any browser and see results.