How to display HTML?

I am trying to add a wiki page on GitHub containing an HTML sample, but I cannot figure out how to display the actual HTML, rather than trying to display it.

I tried and lt; and gt; and <& amp; l; but then he does it like

& l; table & gt;

+3
source share
2 answers

If you want to display HTML as sample code. You can use formatting for code

Examples:

```html
<!DOCTYPE html>
<html>
  <head>
    <title>This is a title</title>
  </head>
  <body>
    <p>Hello world!</p>
  </body>
</html>
```

```xml
<?xml version="1.0" encoding="ISO-8859-1" ?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
</xs:schema>
```
+7
source

Tip. You can also display inline HTML by adding one down side:

`<html>`
+3
source

All Articles