Home > Enterprise >  How to add text after a table in html
How to add text after a table in html

Time:10-07

Im trying to make a html file to populate in email. In that, I want add a text after my result table is created in html format. Can you please me on this. Please find the below html file which throwing error.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<p>Hi All,</p>
<p>There is an issue in ****** table in *** Snowflake.</p>
<p>Please find the output below.</p>
<table align="left" border="1" style="font-family:arial;width:auto;font-size:85%;font-family:verdana:text-align=left:cellspacing="1" width="900">
<tr><th style="text-align: right;">   COUNT</th><th>ETL_PROCESS_DT</th></tr>
<tr><td style="text-align: right;">23626917</td><td>2022-10-06    </td></tr>
</table>
<p>Regards<br />EDP Support Team</p>
<meta name=viewport content=width=device-width, initial-scale=1.0/>
</head>
</html>

CodePudding user response:

You don't have a body tag. An there are quotes missing at viewport meta.

Valid HTML would look like this:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Some Title</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
</head>
<body>
<p>Hi All,</p>
<p>There is an issue in F_MTRL_BOM table in PROD Snowflake.</p>
<p>Please find the output below.</p>
<table align="left" border="1" style="font-family:arial; width:auto;font-size:85%; font-family:verdana; text-align:left;" cellspacing="1" width="900">
<tr><th style="text-align: right;">   COUNT</th><th>ETL_PROCESS_DT</th></tr>
<tr><td style="text-align: right;">23626917</td><td>2022-10-06    </td></tr>
</table>
<p>Regards<br />EDP Support Team</p>
</body>
</html>

CodePudding user response:

Tried with the same you @henningw suggested. But still facing same issue

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>F_MTRL_BOM Alert</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
</head>
<body>
<p>Hi All,</p>
<p>There is an issue in F_MTRL_BOM table in PROD Snowflake.</p>
<p>Please find the output below.</p>
<table align="left" border="1" style="font-family:arial;width:auto;font-size:85%;font-family:verdana:cellspacing="1" width="900">
<tr><th style="text-align: right;">   COUNT</th><th>ETL_PROCESS_DT</th></tr>
<tr><td style="text-align: right;">23626917</td><td>2022-10-06    </td></tr>
</table>
<p>Regards<br />EDP Support Team</p>
</body>
</html>

  • Related