html - Offirmo-team/wiki GitHub Wiki
HyperText Markup Language, le langage de balisage majoritairement utilisé pour représenter une page web.
Voir aussi : css, javascript, développement web, appli web, http...
Références :
- +++ https://allthetags.com/
http://joshduck.com/periodic-table.html - HTML periodical table https://codepen.io/huijing/full/wOXzNx
- https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/HTML5/HTML5_element_list
- http://html5doctor.com/
- Component APIs
HTML5
- http://www.html5rocks.com
- http://www.alsacreations.com/article/lire/750-HTML5-nouveautes.html
- http://fr.wikipedia.org/wiki/HTML5
Attacks:
- https://dev.to/ben/the-targetblank-vulnerability-by-example
- https://mathiasbynens.github.io/rel-noopener/
NON ! window.open(url)
OUI :
// Needed for Security (removing access to window.opener on destination page)
const newWindow = window.open()
newWindow.opener = null
newWindow.location.replace(url)
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a
<a href="foo.html" target="_blank">...</a>
<a download href="README.md">download</a>- https://github.com/JonKaric/head
- https://css-tricks.com/explain-the-first-10-lines-of-twitter-source-code/
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Test CSS</title>
<link rel="stylesheet" href="css/styles.css?v=1.0">
<!--[if lt IE 9]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
</head>
<body>
<script src="js/scripts.js"></script>
</body>
</html>- http://msdn.microsoft.com/en-us/library/cc288325%28v=vs.85%29.aspx
- http://www.webdesignerdepot.com/2012/03/back-to-basics-how-to-code-an-html5-template/
http://www.w3schools.com/html/html5_syntax.asp
Tables https://developer.mozilla.org/en-US/docs/Web/HTML/Element/table
<table style={{border: '1px solid orange'}}>
<caption>Colors from CSS variable</caption>
<thead>
<tr>
<th>CSS variable</th>
<th>name</th>
<th>foreground</th>
<th>background</th>
</tr>
</thead>
<tbody>
{COLORS_VARS_RADIX.map(radix => {
const css_var = `--o⋄color__` + radix
return (
<tr>
<td className="o⋄font⁚roboto-mono">{ css_var }</td>
<td>{ radix }</td>
<td style={{color: `var(${css_var})`}}>foreground</td>
<td style={{backgroundColor: `var(${css_var})`}}>background</td>
</tr>
)
})}
</tbody>
</table>Details
<details>
<summary>expand me...</summary>
<p>Hello, world!</p>
</details>Definition
<dl><dt>Term</dt><dd>Definition...</dd></dl>Listes: ol, ul
- "Script-injected Async Scripts Considered Harmful" http://dailyjs.com/2014/05/21/async-scripts/
- Chargement du html
- Parsing du head...
- Chargement des scripts et CSS, + ou - en parallèle
- ...
Le HTML est un langage structuré et sémantique. Une page web doit donc être écrite en se focalisant sur le contenu uniquement : titre, parties, séquence de paragraphes... et non sur l'apparence. Le rendu visuel d'une page web est le rôle d'autres technologies comme CSS.
/* tags HTML5 qui se comportent comme des blocs */ , canvas, datagrid, datalist, details, { display: block; } /* tags de type en ligne */ abbr, eventsource, mark, meter, time, progress, output, bb { display:inline; }
-> Si seulement c'était si simple ! http://www.alsacreations.com/article/lire/626-impact-rendu-indentation-code.html Impact sur le rendu de la mise en forme du code HTML
http://playground.html5rocks.com/#semantic_markup
- main https://developer.mozilla.org/en-US/docs/Web/HTML/Element/main
- article + header, section : article représente un texte indépendant, une portion de contenu, comme par exemple un article de journal, de blog ou de forum
- aside est destiné au contenu tangentiel, une sorte de bonus au contenu principal, que ce soit pour un article ou l'ensemble d'un document HTML.
- dialog
- figure
- header / hgroup, footer
- menu
- nav / ul
- h1...h6
- small/strong
- em (emphasis)
- ...
- img
- video http://www.alsacreations.com/article/lire/1125-introduction-balise-video-html5-mp4-h264-webm-ogg-theora.html
- audio
- ...
- div
- span
- iframe
- ...
http://stackoverflow.com/questions/3558119/are-self-closing-tags-valid-in-html5
Voir page dédiée.
http://youmightnotneedjquery.com/
voir svg
https://realfavicongenerator.net
<!-- Fav and touch icons -->
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="../assets/ico/apple-touch-icon-144-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="../assets/ico/apple-touch-icon-114-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="../assets/ico/apple-touch-icon-72-precomposed.png">
<link rel="apple-touch-icon-precomposed" href="../assets/ico/apple-touch-icon-57-precomposed.png">
<link rel="shortcut icon" href="../assets/ico/favicon.png">- http://www.w3.org/2005/10/howto-favicon
- http://www.alsacreations.com/astuce/lire/59-icon-link-rel-favicon-ico-navigateur.html
- http://www.rw-designer.com/favicon
- http://www.sitepoint.com/favicon-a-changing-role/
- form https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form
- input = the building bloc https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/button
- pwd managers https://dashlane.github.io/SAWF/
- demos https://getbootstrap.com/docs/5.1/forms/overview/
- sign-in
<input type="email" placeholder="Enter email">all HTML5 types :
- text
- password
- datetime-local
- date
- month
- time
- week
- number
- url
- search
- tel
- color
- analyse: https://www.smashingmagazine.com/2019/01/html5-input-types/
<input type="file">
<form action="">
<label>
<input type="radio" name="foo" id="optionsRadios1" value="option1" disabled>
Option three is disabled
</label>
<label>
<input type="radio" name="foo" id="optionsRadios2" value="option2" disabled>
Option three is disabled
</label>
</form>
<label>
<input type="checkbox" value="" disabled>
Option two is disabled
</label>
<textarea rows="3"></textarea>
<select multiple class="form-control">
<option>1</option>
<option>2</option>
<option>3</option>
<option>4</option>
<option>5</option>
</select>
<button type="submit">Submit</button>http://www.sitepoint.com/html5-forms-javascript-constraint-validation-api/
https://developer.mozilla.org/fr/docs/Web/HTML/Element/select
Voir CSS ;)
http://www.quirksmode.org/blog/archives/2009/09/the_html5_drag.html
Attention faille de sécurité !
- http://stackoverflow.com/a/15551842/587407
- https://medium.com/@jitbit/target-blank-the-most-underestimated-vulnerability-ever-96e328301f4c
<a href="github.com" title="fork" target="_blank" rel="noopener noreferrer">Fork on Github</a>- micro-formats http://microformats.org/wiki/microformats2
- meta-tags ???
What’s the Best Source for Browser Usage Stats? http://www.impressivewebs.com/browser-usage-stats/
-
http://gs.statcounter.com/#mobile+tablet-browser-eu-monthly-201304-201404
-
iOS 5 (iPad 1)
- safari ?
-
Android X
- android navigator ?
...
- conformité http://validator.w3.org/check/referer
- https://developers.google.com/speed/libraries/devguide
- https://developers.google.com/webmasters/state-of-the-web/2005/classes?hl=fr
- HTML Includes That Work Today https://www.filamentgroup.com/lab/html-includes/
- tool https://github.com/jstrieb/urlpages