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.
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 ?
No Additional Margin, Padding, Border is added in-between elements.
Grouping sub headings are fake to check their actual grouped section head to
MDN
or
Html5 Spec.
Fun Fact:
Did you know html elements had an element named
element
? Well ! I didn't.
Note: Click the left element heading(Red color heading) of each element to view their reference and how to use.
[1,2,3,4].push()
data element:
Mini Ketchup
dfn element:
The (<dfn>) - definition.
em element:
In html 5, what was previously called block-level content is now called
flow content.
i element:
The Latin phrase Veni, vidi, vici is often mentioned in music, art, and literature.
kbd element:
Terminal magic press Ctrl + r
mark element:
Mark my words
q element:
The Inline Quotationelement s element:
It's not who I am underneath, but what I do that defines me. —Batman Begins, 2005.dl, dt, dd, elements:
Words can be like X-rays, if you use them properly—they’ll go through anything. You read and you’re pierced. —Aldous Huxley, Brave New World.
p element represents a paragraph. Paragraphs are usually represented in visual media as blocks of text separated from adjacent blocks by blank lines and/or first-line indentation, but HTML paragraphs can be any structural grouping of related content, such as images or form fields.
pre element:___________________________ Holy Cow ! Is this a Cow ? --------------------------- \ ^__^ \ (oo)\_______ (__)\ )\/\ ||----w | || ||
Login | |
---|---|
user1 | user1@sample.com |
user2 | user2@sample.com |
Batman | Robin | The Flash | Kid Flash | |
---|---|---|---|---|
Skill | Smarts | Dex, acrobat | Super speed | Super speed |
Student ID | Name | Major |
---|---|---|
3741255 | Jones, Martha | Computer Science |
3971244 | Nim, Victor | Russian Literature |
4100332 | Petrov, Alexandra | Astrophysics |
Footer | Hello world |
=================================== THE END ============================================
Note: This will reveal where height is applied. Where it is not! :) Example taken from https://stackoverflow.com/questions/8969381/what-is-the-difference-between-display-inline-and-display-inline-block credits to the author.
Each element in HTML falls into zero or more categories that group elements with similar characteristics together. The following broad categories are used in the html5 specification:
To vizualize which element grouped to which category, here is the nice svg take from html5 spec (hover over the good stuff):
Box: To Vizualize content-box model and border-box model
.box { border: 5px solid rebeccapurple; background-color: lightgray; padding: 40px; margin: 40px; width: 300px; height: 150px; }Total width: content width + padding-left + padding-right + border-left + border-right, Total height: content height + padding-top + padding-bottom + border-top + border-bottom
It first applies the width and height of the box, then it apply border, padding, margin