Question: HTML coding-style conventions require that all start tags have an accompanying end tag. Edit the books HTMLGenerator.java program so that end tags are inserted at
HTML coding-style conventions require that all start tags have an accompanying end tag. Edit the book’s HTMLGenerator.java program so that end tags are inserted at the bottom of each paragraph. In addition, edit the program so that each text line inside a paragraph is indented by two space characters (" ").
Do not allow a end tag to be generated when there’s no accompanying start tag (start and end tags must always be partnered). Your program should be robust. In particular, it should handle the case where there’s only a title and no paragraphs at all.
Step by Step Solution
3.24 Rating (168 Votes )
There are 3 Steps involved in it
Heres an example of how you can modify the HTMLGeneratorjava program to include end tags and indent text lines within paragraphs java import javautilA... View full answer
Get step-by-step solutions from verified subject matter experts
