HTML, XML, and SVG

San Skulrattanakulchai

October 17, 2018

Topics

Hypertext markup language (HTML)

Example HTML file

<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>My First HTML File</title>
</head>
<body>
    <h1>Welcome to my home page</h1>
    <p>
    Hello, I'm Sam.
    Nice to meet you.
    I work <a href="http://gustavus.edu">here</a>.
    </p>
    <img src="smiley.svg" alt="SMILEY FACE" height="42" width='42'>
</body>
</html>

Extensible markup language (XML)

Scalable Vector Graphics (SVG)

Example HTML file with an SVG tag

<!DOCTYPE html>
<html>
<body>

<h1>My first SVG</h1>

<svg width="400" height="110">
  <circle cx="350" cy="50" r="40" stroke="green" stroke-width="4" fill="yellow" />
  <rect width="300" height="100" stroke="black" stroke-width="3" fill="skyblue" />
</svg>

</body>
</html>