HTML

From Soyjak Wiki, the free ensoyclopedia
Jump to navigationJump to search

HTML is the backbone of the interwebs. Nowadays people don't write just HTML, but combine it with CSS and JavaScript, with some backend written in languages such as PHP. Some languages like Java contain interfaces for interacting with HTML (such as in org.w3c.dom.html). HTML is not a programming language (as it is not Turing complete), but just a markup language for writing websites with. It was formerly managed by W3C but it is now by WHATWG.

A simple HTML document[edit | edit source]

<!DOCTYPE html> - This marks that the HTML is the latest version, reducing compatibility issues
<html> - All of your HTML goes inside this
<head> - Info about the page that the user doesn't see
<title>Test page</title> - The title to appear in the tab it's in
</head> - closes the head

<body> - starts the actual content the user sees
<h1>Test page</h1> - a big heading
<img src="img.jpg" float="right" /> - An image that will align right and wrap around text
<h2>What is a test page?</h2> - subheading. these go all the way down to <h6>
<p>A test page is for testing.</p> - A paragraph
</body> - Closes the body
</html> - Closes the html

More advanced HTML document[edit | edit source]

This has a title, sidebar and body, all in seperate sections. Remember to link things using <a href="your-page.html">link text</a>.

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Untitled Document</title>
<style>
body {font-family: Arial, Helvetica, sans-serif}
h1, h2 {margin: 2px}
.sidebar, .maincontent {padding: 2px}
</style>
</head>
<body>
<table width="476" border="0" cellspacing="2" cellpadding="0" bgcolor="#000099">
  <tr>
    <td colspan="2" align="center" bgcolor="#EAF1FF" class="header"><h1>Your Shit Website</h1></td>
  </tr>
  <tr>
    <td width="107" valign="top" bgcolor="#EAF1FF" class="sidebar">Menu:<br>
      > About<br>
      > Downloads<br>
      > Socials<br>
      ©2025</td>
    <td width="363" valign="top" bgcolor="#66CCFF" class="maincontent"><h2>Blogpost 2</h2>
    <p>SNCA here. SNCA here. SNCA here.</p>
    <h2>Blogpost 1</h2>
    <p>Shit Nobody Cares About.</p></td>
  </tr>
</table>
</body>
</html>
HTML
is part of a series on
Soyience™

Visit the Soyence portal for more.
"We are all just hecking star dust or something!"
Peer reviewed sources [-+]
Fields of science [-+]
Science in praxis [-+]
Theoretical branches [-+]