{"id":21149504,"url":"https://github.com/devansvd/html-elements","last_synced_at":"2026-03-19T19:03:12.382Z","repository":{"id":195422436,"uuid":"266537893","full_name":"devansvd/html-elements","owner":"devansvd","description":"To Visualize Cross Browser Rendering - An Html Experiment","archived":false,"fork":false,"pushed_at":"2020-06-06T11:09:12.000Z","size":1786,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-14T14:21:22.036Z","etag":null,"topics":["cross-browser-rendering","cross-browser-testing","html-elements","html-reference","svd-edu"],"latest_commit_sha":null,"homepage":"https://devansvd.github.io/html-elements","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/devansvd.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2020-05-24T12:38:13.000Z","updated_at":"2020-06-06T11:09:14.000Z","dependencies_parsed_at":"2023-09-17T22:35:33.756Z","dependency_job_id":null,"html_url":"https://github.com/devansvd/html-elements","commit_stats":null,"previous_names":["devansvd/html-elements"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/devansvd/html-elements","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devansvd%2Fhtml-elements","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devansvd%2Fhtml-elements/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devansvd%2Fhtml-elements/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devansvd%2Fhtml-elements/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devansvd","download_url":"https://codeload.github.com/devansvd/html-elements/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devansvd%2Fhtml-elements/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29943685,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-28T13:49:17.081Z","status":"ssl_error","status_checked_at":"2026-02-28T13:48:50.396Z","response_time":90,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["cross-browser-rendering","cross-browser-testing","html-elements","html-reference","svd-edu"],"created_at":"2024-11-20T09:36:44.055Z","updated_at":"2026-02-28T17:04:02.084Z","avatar_url":"https://github.com/devansvd.png","language":"HTML","readme":"\u003cdiv align=\"center\"\u003e\n\u003ch1\u003eVisualize Cross Browser Rendering\u003c/h1\u003e\n\n\u003cp\u003eVisualize html cross browser rendering of each elements Specifically, how much space it occupies like marigin, padding, border to each html elements in different browsers :-)\u003c/p\u003e\n\u003c/div\u003e\n\n---\n\n\u003c!-- prettier-ignore-start --\u003e\n[![MIT License][license-badge]][license]\n\u003c!-- prettier-ignore-end --\u003e\n\n_Did you know html elements had an element named [element](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference) ?_ **Well ! I didn't.**\n\n## Demo:\n\n[Visualize Cross browser Rendering](https://devansvd.github.io/html-elements) - https://devansvd.github.io/html-elements\n\n## Frustration:\n\n- Ever wonder, when you begin writing `markup's` by skimming through the `html` docs, Oh! that's a lot of tags and faced **why the hell the height, margin-top or margin-bottom not applied to span elements ?**\n\n- Then, when you tried to place an html element in certain tiny space hoping it would fit there but it collapses the whole thing and took too much space. **damn !!!**\n\n- Also, Finally when you stuffed that element thing in the top right corner, Said to yourself **Yay!! I did it**, then viewed it in some other browser - **Man !!** Cross browsers.\n\n- Well, this select box is rendered ugly in this specific browser. why ? have to tweak css **Ouch...Ouch...Ouch...**\n\n- `Inline` vs `block` vs `Inline-block` **Oh my !**\n\nAnd then feel like time to read the docs properly. _hahaha_.\n\n\u003e Night-mare. Real Nightmare. We all been there down the road, I guess.\n\n---\n\n## Questions need answers:\n\n- Want to know how much each browsers apply `margin`, `padding`, `borders` and how it styles the UI for a specific element.\n\n- That's a lot of elements in there how many of them are `inline` ? how many are them are `block` elements ?\n\n---\n\n## Time to overcome:\n\nWhile finally reading the docs, I was surprised to see few things I did not know before ...\n\n- The `inline` and `block` elements are removed to avoid some confusion from `html5 specs`, new `content categories` are introduced for grouping elements.\n- Many `input` types specifically `week picker`.\n- `Datalist` as an `autocomplete`, `filter`, `dropdown`, `custom input that's` a handy element.\n- `Fieldset` - this draws a nice UI around the element.\n- Subtitle `tracks` for a video element, wow! just wow.\n- Embedding a whole pdf via `Object` element.\n- `Mapping` certain `areas` of an image to make indications. Nice.\n- `Details` collapse - expander\n- Tables don't have default `borders`. ew\n- `Marquee` text dance around. Interesting.\n\n![Content categories](https://raw.githubusercontent.com/devansvd/html-elements/master/images/content-categories.png)\n\n---\n\n## Solution:\n\n- A page to view all the element to reveal their `cross-browser` default rendering without any fancy `css`.\n- By placing `each element` Intentionally next to each other and see which are all `inline elements` ? which are all `block elements` ?\n\n---\n\n## Demo:\n\n[Visualize Cross browser Rendering](https://devansvd.github.io/html-elements) - https://devansvd.github.io/html-elements\n\n**Note:** Intentionally not be mobile responsive.\n\n- This is not suppose to be used as a reference(use MDN for that), Intended to visualize default cross browser rendering of each elements Specifically, how much space it occupies like `marigin`, `padding`, `border`.\n\n- Intentionally each elements placed next to each other(`Span tag` is occupied as their heading) to see if that specific element is `inline` or `block` element. **So don't think like page is not aligned properly, What the Hell ?** _Intentionally Ugly_.\n\nMdn docs are really so good, Credits to them.\n\nI guess I could say this is an **experiment with html elements**.\n\nFeel free to share your thoughts and feedback.\n\nI'm `Devan` - Aka [devansvd](https://github.com/devansvd).\n\n## License\n\n[`MIT`][license]\n\n\u003c!-- prettier-ignore-start --\u003e\n[license-badge]: https://img.shields.io/npm/l/eslint-config-devansvd.svg?style=flat-square\n[license]: https://github.com/devansvd/eslint-config-devansvd/blob/master/LICENSE\n\u003c!-- prettier-ignore-end --\u003e\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevansvd%2Fhtml-elements","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevansvd%2Fhtml-elements","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevansvd%2Fhtml-elements/lists"}