HTML Beautifier Tool
Features
Input and Output:
- A text area for pasting raw HTML code.
- A separate text area to display beautified HTML code.
Beautification Logic:
- Uses the
html_beautifyfunction from thejs-beautifylibrary. - Configured for 4-space indentation, a maximum of 2 preserved newlines, and a 120-character line wrap.
- Uses the
Error Handling:
- Alerts the user if the input field is empty.
Styling:
- A modern pink-red gradient theme for the background.
- Clean, visually appealing interface with rounded corners and an intuitive design.
Responsive Design:
- Fully responsive for all devices, ensuring usability on desktops, tablets, and smartphones.
How It Works
- Paste your raw HTML code into the Input Textarea.
- Click the "Beautify HTML" button.
- The beautified HTML code appears in the Output Textarea.
No comments:
Post a Comment