{"id":15313931,"url":"https://github.com/itsdouges/html5.2-cheat-sheet","last_synced_at":"2026-02-11T01:34:07.723Z","repository":{"id":71499337,"uuid":"115455580","full_name":"itsdouges/html5.2-cheat-sheet","owner":"itsdouges","description":"Collection of HTML examples that are relevant in HTML5.2","archived":false,"fork":false,"pushed_at":"2017-12-26T22:15:25.000Z","size":0,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-02T13:26:04.523Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/itsdouges.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-12-26T21:19:24.000Z","updated_at":"2018-10-01T20:47:25.000Z","dependencies_parsed_at":null,"dependency_job_id":"531e2603-5cd8-4fa3-b296-852b9e3b54b4","html_url":"https://github.com/itsdouges/html5.2-cheat-sheet","commit_stats":{"total_commits":1,"total_committers":1,"mean_commits":1.0,"dds":0.0,"last_synced_commit":"c36b31fb9730c9dc43cd1a7b22d46023b5357cf8"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/itsdouges/html5.2-cheat-sheet","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itsdouges%2Fhtml5.2-cheat-sheet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itsdouges%2Fhtml5.2-cheat-sheet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itsdouges%2Fhtml5.2-cheat-sheet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itsdouges%2Fhtml5.2-cheat-sheet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/itsdouges","download_url":"https://codeload.github.com/itsdouges/html5.2-cheat-sheet/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itsdouges%2Fhtml5.2-cheat-sheet/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269915717,"owners_count":24495773,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-11T02:00:10.019Z","response_time":75,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-01T08:43:43.010Z","updated_at":"2026-02-11T01:34:02.702Z","avatar_url":"https://github.com/itsdouges.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# HTML5.2 Cheat Sheet\n\nThis cheat sheet will primarily be going over sematic markup changes, and things that affect the average web app developer. For a full summary of HTML5.2 go check out the [w3 changes](https://www.w3.org/TR/html52/changes.html#changes).\n\n## [\u003cdialog\u003e](https://www.w3.org/TR/html52/interactive-elements.html#elementdef-dialog)\n\nNow there is semantic meaning when wanting a `dialog`.\n\n```html\n\u003cdialog id=\"my-dialog\" open\u003e\n    Hello, World!\n\u003c/dialog\u003e\n```\n\n* Note the use of the `open` attribute. It should only be shown to the user if it is present.\n* Do not set tab index on a dialog.\n\n### Programatic usage\n\n```javascript\nconst dialog = document.getElementById(\"my-dialog\");\n\n// Displays the dialog element.\ndialog.show(/* optional anchor element */);\n\n// Displays the dialog element and makes it the top-most modal dialog.\ndialog.showModal(/* optional anchor element */);\n\n// Closes the dialog element.\ndialog.close(/* optional return value */ \"my-value\");\n\n// Returns the dialog’s return value.\ndialog.returnValue; // 'my-value'\n```\n\n## New markup constructions\n\n* `\u003cstyle\u003e` can be placed within `\u003cbody\u003e` now.\n* Multiple `\u003cmain\u003e` can exist, _so that only one is visible to the user_.\n* `\u003cdiv\u003e` as a child of a `\u003cdl\u003e` element.\n* `\u003cdfn\u003e` as a descendent of an `\u003cli\u003e` element that contains a definition of the term defined.\n* Headings within `\u003clegend\u003e` in a `\u003cfieldset\u003e`.\n* Empty `\u003coption\u003e` element as a child of `\u003cdatalist\u003e`.\n\n## Invalid constructions\n\n* `roles` value for `\u003ccaption\u003e` element\n* Inline blocks/tables/floats/positioned block-level elements inside a `\u003cp\u003e`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitsdouges%2Fhtml5.2-cheat-sheet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fitsdouges%2Fhtml5.2-cheat-sheet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitsdouges%2Fhtml5.2-cheat-sheet/lists"}