Replace attribute with tag
The Replace Attribute with Tag refactoring allows you to remove all attributes matching the selected attribute name on tags with the selected tag name and create equivalent sub-tags. This bulk transformation of attributes to tags is useful as XML schemas evolve.
Convert an attribute into a tag
Place the caret at the attribute to replace, press Ctrl+Alt+Shift+T, and then select Replace Attribute with Tag from the list.
In the dialog that opens, type the name of the sub-tag to be created instead of the selected attribute and specify the scope to replace the attribute in.
With the Directory scope specified, select the Recursively checkbox to include sub-directories.
Select the Limit to files with DTD:... checkbox to limit the scope to the files with the same
DOCTYPEas specified for the current file.

Invoke the refactoring:
Click OK to continue immediately or click Preview to have WebStorm show the usages of the selected attribute in the Find tool window where you can mark usages as included in or excluded from refactoring.
Click Show XSLT... to view a fragment of the XSLT that is equivalent to the requested refactoring. This fragment can be used by XSLT processors to perform the requested refactoring on files outside your WebStorm project.