Which tag is for a line break?

Prepare for your Web Design EOPA Test. Study with flashcards and multiple choice questions, each question has hints and explanations. Get ready for your exam!

Multiple Choice

Which tag is for a line break?

Explanation:
Line breaks in HTML are created with the br tag. This empty element inserts a line break in the text flow so the next content starts on the next line, without starting a new paragraph or adding extra vertical space. It’s a self-closing tag (often written as <br> or <br /> in XHTML). It’s not the same as a horizontal rule, which is drawn by the hr tag, and it’s not a paragraph container, which uses p to start a new block of text with typical spacing around it. There isn’t a standard HTML tag called lb for line breaks, so that option isn’t valid. Use a line break when you need a single break within a block; for controlling layout and spacing, CSS is the better tool.

Line breaks in HTML are created with the br tag. This empty element inserts a line break in the text flow so the next content starts on the next line, without starting a new paragraph or adding extra vertical space. It’s a self-closing tag (often written as
or
in XHTML). It’s not the same as a horizontal rule, which is drawn by the hr tag, and it’s not a paragraph container, which uses p to start a new block of text with typical spacing around it. There isn’t a standard HTML tag called lb for line breaks, so that option isn’t valid. Use a line break when you need a single break within a block; for controlling layout and spacing, CSS is the better tool.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy