intermediate level HTML question
Explain the difference between block-level and inline elements in HTML.
1 Answer
1 year ago by senpie956
Block-level elements: These elements take up the full width of their parent container and always start on a new line. Examples: <div>, <h1>, <p>.
Inline elements: These elements take up only as much width as necessary and do not start on a new line. Examples: <span>, <a>, <strong>.
1 year ago by senpie956