back to coding
see also:
javascript
css
HTML is the language of a web page, it determines what you have to display. It is used together with css, which is how to display it. Formatting and styles are css. And what it does is determined by javascript, a complete programming language. All three of those together and you can make a web page that looks like or can do anything. This is known as the front end.
There is also a back end which is the web server. There are many ways to transmit or serve a web page to a browser. It can accept form elements and other input too from pages using http or https. There is a protocol called CGI which connects a web server to an external program using environment variables. I'm using that with lua. Lua can use a database like sqlite to save and restore data.
Mozilla Developer Network - https://developer.mozilla.org/en-US/docs/Web/HTML
HTML5 living standard - https://html.spec.whatwg.org/multipage/introduction.html
An interesting out of date tutorial I found https://tilde.club/~cslug/tutorial.htm. Uses some layout tags that are usually done with css now.
HTML is now version 5, which changed to a living standard, meaning they keep version 5 up to date instead of stopping and releasing new versions anymore.
comment:
<!-- comment -->
header to use to make mobile scaling and specify unicode character set:
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
Use <!doctype html> to select standards mode and not quirks mode
Quirks mode is the layout mode that exists to help with backwards compatibility, if you leave that mode it will imitate browsers behavior before they were standardized. If you set it to standards mode it will be more predictable and look the same on different browsers that conform to the standards. A good idea to always remember this.
to link in css:
<link rel="stylesheet" href="reminder.css">
html entities:
less than sign - < <
greater than sign - > >
and sign - & &
single quote - ' '
double quote - " "
left smart quote - “ “
right smart quote - ” ”
right smart single quote - ’ ’
non breaking space -
decimal code - " "
simple formatting (use css for most other formatting)
<b> bold </b>
<i> italics <i>
<u> underline <u>
older tags and attributes (pre-HTML 5, use css instead)
<center> centered </center> - should use inline style for that, <div style="text-align: center">centered</div>
your text here
bgcolor and color attributes - set to a color name or a hex value like #FF0000. use background-color css.
spaces can show in between these tags and the text is mono spaced. It makes a block.url
<!doctype html>
<html>
<head>
<title>Example page</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<script src="sortable.js"></script>
<style>
p {
text-indent: 2in;
}
</style>
<body>
<p>Hello, it's my page.</p>
<form name="form_name" action="form-page.lua" method="post">
<input name="field1"> Thing </input>
<textarea name="text1" rows=40 cols=80> Some stuff in a text area </textarea>
<input type="submit" value="Submit"></input>
<input type="button" id="button1" value="Do Script" onclick="dosomething()" class="my_button"></input>
</form>
</body>
</html>