Example
Input:
<html><head><title>Sample HTML</title></head><body><h1>Welcome to Sample HTML</h1><p>This is a sample HTML document.</p></body></html>
Click the Format button to output:
<html>
<head>
<title>StarryTool</title>
</head>
<body>
<h1>Welcome to StarryTool</h1>
<p>This is a sample HTML document.</p>
</body>
</html>
About the Online HTML Formatter
The Online HTML Formatter helps you convert irregular HTML code into a format that is easy to read and understand. This typically involves proper indentation, appropriate spacing, and line breaks to clarify the code structure.
• Features
Automatic Indentation and Formatting: Automatically adds appropriate indentation and spacing for tags, attributes, and text content to clarify the code structure.
Code Beautification: Enhances code readability and aesthetics through standardized coding style and formatting.
Compatibility: Supports various HTML standards and versions to ensure that formatted code displays correctly across different browsers and devices.
Customization Settings: Allows users to customize formatting rules based on personal preferences or project requirements, such as indentation size, line break style, etc.