> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://support.wiraya.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# How HTML tags in the Email Module work?

# HTML Tags in the Email Module
This guide explains how HTML tags work in the email module and shows the most common tags you can use when creating emails.
## What is an HTML tag?
HTML tags are used to format the content of an email.
Example:
```
<b>This text is bold</b>
```
Most tags have:
* an opening tag: `<tag>`
* a closing tag: `</tag>`
## Common HTML Tags
### Headings
Used for titles and sections.
```
<h1>Main Heading</h1>
<h2>Sub Heading</h2>
```

### Paragraph
Used for normal text.
```
<p>This is a paragraph.</p>
```

### Line Break
Adds a new line.
```
First line<br>
Second line
```

### Bold Text
```
<strong>Bold text</strong>
```

### Italic Text
```
<em>Italic text</em>
```

### Links
Creates a clickable link.
```
<a href="https://example.com">Open Website</a>
```

### Lists
Unordered list:
```
<ul>
  <li>Item 1</li>
  <li>Item 2</li>
</ul>
```
Ordered list:
```
<ol>
  <li>First</li>
  <li>Second</li>
</ol>
```

### Images
```
<img src="https://example.com/logo.png" alt="Logo">
```

### Tables
Often used for email layouts.
```
<table>
  <tr>
    <td>Left</td>
    <td>Right</td>
  </tr>
</table>
```
## Example Email
```
<h1>Welcome!</h1>

<p>Thank you for joining our service.</p>

<p>
  <a href="https://example.com">
    Login here
  </a>
</p>

<p>Best regards,<br>
Support Team</p>
```
## Best Practices
* Keep HTML simple
* Use inline styles when needed
* Avoid JavaScript
* Avoid complex layouts
* Always test emails before sending anything to the end-contacts
Example with inline style:
```
<p style="color: blue;">
  Blue text
</p>
```
## Summary
| Tag | Purpose |
| ---- |
| `<h1> - <h6>` | Headings |
| `<p>` | Paragraph |
| `<br>` | Line break |
| `<strong>` | Bold text |
| `<em>` | Italic text |
| `<a>` | Link |
| `<img>` | Image |
| `<ul>`, `<ol>`, `<li>` | Lists |
| `<table>` | Tables |

###### Read more
[How to create a voice module?](https://support.wiraya.com/en/article/how-to-create-a-voice-module-1p1ms9x/)
[How to create an email module?](https://support.wiraya.com/en/article/how-to-create-an-email-module-ycnt5j/)
[How to create an SMS module?](https://support.wiraya.com/en/article/how-to-create-an-sms-module-hjcs6c/)
[How to view and edit email modules?](https://support.wiraya.com/en/article/how-to-view-and-edit-email-modules-1w9npo2/)
[How to view and edit sms modules?](https://support.wiraya.com/en/article/how-to-view-and-edit-sms-modules-1a5ctbe/)
[How to view and edit voice modules?](https://support.wiraya.com/en/article/how-to-view-and-edit-voice-modules-1hw5mzm/)