An open API service indexing awesome lists of open source software.

https://github.com/niradler/html-closing-tag

The HTML Closing Tag Converter is a web-based tool designed to assist users who copy HTML code and need to ensure that all tags are properly closed, especially when working with React JSX or other templating languages that require explicit closing tags.
https://github.com/niradler/html-closing-tag

html jsx react

Last synced: 10 months ago
JSON representation

The HTML Closing Tag Converter is a web-based tool designed to assist users who copy HTML code and need to ensure that all tags are properly closed, especially when working with React JSX or other templating languages that require explicit closing tags.

Awesome Lists containing this project

README

          

# HTML Closing Tag Converter

## Overview

The HTML Closing Tag Converter is a web-based tool designed to assist users who copy HTML code and need to ensure that all tags are properly closed, especially when working with React JSX or other templating languages that require explicit closing tags.

## Features

- Automatically adds closing tags (`/>`) to specified self-closing HTML tags that are missing them.
- Helps users maintain consistency and correctness when copying and pasting HTML into React JSX or other templating languages.

## Usage

To use the tool, follow these simple steps:

1. Visit the tool's website: [HTML Closing Tag Converter](https://niradler.github.io/html-closing-tag/public/).
2. Paste your HTML code into the provided input area.
3. Click the "Convert" button.
4. The tool will add missing closing tags to self-closing HTML tags in the input code.
5. Copy the modified HTML code and use it in your React JSX or preferred templating language.

## Example

Input:

```html


An image




```

Output:

```html


An image




```

## Try It Now

Visit the [HTML Closing Tag Converter](https://niradler.github.io/html-closing-tag/public/) and streamline your HTML code for React JSX or other templating languages.

## Example

![HTML Closing Tag Converter](Screenshot.png)

## List of Common Self-Closing HTML Tags

- `area`
- `base`
- `br`
- `col`
- `command`
- `embed`
- `hr`
- `img`
- `input`
- `keygen`
- `link`
- `meta`
- `param`
- `source`
- `track`
- `wbr`

## Contributions

Contributions and feedback are welcome! If you encounter any issues or have suggestions for improvement, please feel free to open an issue or submit a pull request.

## License

This project is licensed under the MIT License - see the [LICENSE](MIT) file for details.