The term block can have several meanings depending on the context. It may refer to:
- Block (CSS)
- A block on a webpage is an HTML element that appears underneath the preceding element and above the following element. For example,
<p>is by default a block-level element, whereas
<a>is not (i.e., by default you can put a link in the middle of a paragraph; the link doesn't have to start its own line). Using
displayyou can change whether an element displays inline or as a block (among many other options).
- Block (scripting)
if (condition)you can put a block of statements, indicating that the interpreter must skip the whole block if the condition is false.