August 2018
Intermediate to advanced
272 pages
5h 3m
English
HTML5 is said to be “semantical”. What does it mean (in short)?
These expectations are quite usual and make sense: that is the semantics! The HTML5 semantic tags are meant to help search engines to figure out what is on a web page: <header>, <nav>, <main>, <sections>, <detail>, <figure>, etc.
Older tags are preserved, and new suggested practices may add to the semantics: e.g. a title tag should comply with its context, a <img> tag should contain a description (attribute alt=“…”), etc.
Here are the tags that, though not all mandatory, we recommend using to describing the context of your web page ecosystem.
<!DOCTYPE html><html lang="fr"><head><title>Basic web page</title><meta charset="utf-8"><link rel="stylesheet" href="style.css"></head><body><script id="code.js"> /* JavaScript code */ </script></body></html>
This informs the browser about what follows: in the above ...