To receive notifications about scheduled maintenance, please subscribe to the mailing-list gitlab-operations@sympa.ethz.ch. You can subscribe to the mailing-list at https://sympa.ethz.ch

Commit a6d3762b authored by Florian Moser's avatar Florian Moser
Browse files

Feedback nico

parent fb933c72
......@@ -68,7 +68,8 @@ class: center, middle
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="viewport"
content="width=device-width, initial-scale=1">
<title>Hello, world!</title>
<meta name="description" content="A simple HTML document.">
......@@ -99,6 +100,12 @@ Attributes:
<tag no-content-attribute></tag>
```
Comments:
```html
<!-- whatever in here is ignored -->
```
That's all!
---
......@@ -629,7 +636,7 @@ Use a CSS framework:
<br/>
Getting it right is *extremely* hard!
Advice: Learn a framework property. Avoid writing CSS.
Advice: Learn a framework properly. Avoid writing CSS.
---
......@@ -763,7 +770,7 @@ $.ajax({
<!doctype html>
<html lang="en">
<head>
...
<!-- ... -->
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<link rel="stylesheet" href="https://cdn.datatables.net/1.10.23/css/jquery.dataTables.min.css">
......@@ -776,7 +783,7 @@ $.ajax({
</head>
<body>
<table class="table table-interactive">
...
<!-- ... -->
</table>
</body>
</html>
......@@ -790,7 +797,7 @@ $.ajax({
<!doctype html>
<html lang="en">
<head>
...
<!-- ... -->
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<script src="https://unpkg.com/masonry-layout@4/dist/masonry.pkgd.min.js"></script>
......@@ -806,7 +813,7 @@ $.ajax({
<div class="grid">
<div class="grid-item ..."></div>
<div class="grid-item ..."></div>
...
<!-- ... -->
</div>
</body>
</html>
......@@ -990,20 +997,20 @@ We require:
Get user input with HTML forms:
```php
...
<!-- ... -->
<form method="post">
<input name="name" type="text"></input>
<textarea name="message">
<input name="submit" type="submit"></input>
</form>
...
<!-- ... -->
<?php
if (isset($_POST["name"]) && isset($_POST["message"])) {
$body = $_POST["name"]." has message ".$_POST["message"];
mail("info@thealternative.ch", "Contact request", $body);
}
?>
...
<!-- ... -->
```
---
......@@ -1076,7 +1083,7 @@ For researcher webpages:
- Write HTML / CSS; add PHP / JavaScript only when necessary
- Use CSS frameworks if you want to have it look good
Many, many more use cases. This presentation is technically also a webpage :)
</textarea>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment