if line breaks appear in HTML, can I also do page breaks? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 2

if line breaks appear in HTML, can I also do page breaks?

17th Jul 2017, 4:17 PM
naveen bisht
2 Answers
+ 3
What are you meaning by << page breaks >>? Html 'pages' are separate documents @@ Content breaks, can be done with the semantical element <hr> (not allowed inside <p>) and not necessarly styled as an horizontal rule default (can be whatever you want -- <hr> is a normal html element along the box element -- even nothing else than spacing)...
17th Jul 2017, 4:23 PM
visph
visph - avatar
0
Techincally, sure. You can define what you think a page consists of, and then have a function that puts the appropriate amount of line breaks to equal that amount. However, it's worth noting that websites aren't exactly the same as something like MS Word or other such word processors. Each page is simply a page, regardless of length. Get what I mean? However, word processing programs basically work in the way described, you define what you consider to be the the length of a page, and then you can separate sections based upon that. *edit* No need to down vote me. lol As I said, technically you can, because as a programmer you can think up ways to make it happen even though it's not suppose to. Illusion is just as good as the real thing. Is it built into HTML? No. Do HTML pages work like a word processor? No. Can you still create that feature because you're a great programmer? You damn right you can. :)
17th Jul 2017, 4:31 PM
AgentSmith