Useful Resources
syllabus | schedule | exercises | assignments | class notes | resources | students | ARTC courses
Block-level vs Inline

Block-level vs Inline elements

A block-level element can contain inline elements as well as other block level elements. Block-level elements begin on new lines.

Examples of block-level elements are <div>, <p>, <h1>, <ul>, <li>, <table>

An inline element can contain only data and other inline elements.

Examples of inline elements are <span>, <a>, <b>

With CSS, you can change the inherent type of an element.
display: block;
display: inline;

[BACK to RESOURCES]