Wednesday 27 April 2016

Markdown: Emphasis the text

Asterisks (*) and underscores (_) are used to emphasis the text. If you wrap the text between * (or) _, then text is emphasized in between <em> tag. If you wrap the text between ** (or) __, then text is emphasized in between <strong> tag.


emphasis.md
*Hello World*  
_Hello World_  

**Hello World**  
__Hello World__  

Following is the preview for above markdown file.

Following is the html for above mark down file.
<?xml version='1.0' encoding='utf-8' ?>
<!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" />
</head>
<body>
  <p>
    <em>Hello World</em><br /> <em>Hello World</em><br />
  </p>
  <p>
    <strong>Hello World</strong><br /> <strong>Hello World</strong><br />
  </p>
</body>
</html>


Previous                                                 Next                                                 Home

No comments:

Post a Comment