January Homework Question

We talked about the text-decoration property at the December meeting. Two of the values that can be used with that property are "underline" and "line-through." They do just what their names suggest. There are other ways to do the same thing, though, and this question requires you to think about what to use to achieve your objective.

There are three paragraphs below. Each has a section of text that is underlined and a section that is over struck. If you look at the source for this page, you will see that the tags are different for each paragraph. Are they all equally valid uses of HTML and CSS? Why or why not? (Note that the CSS in this document uses classes. We will cover that topic in January.)

Paragraph 1: <u> and <s>

Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean varius nunc at ante. Morbi in mauris. Fusce massa. Praesent malesuada, lorem eget molestie sagittis, dui lectus tristique mi, at vulputate turpis est non mi. Duis fermentum enim eu lectus. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos hymenaeos. Nulla aliquam.

Paragraph 2: <ins> and <del>

Maecenas scelerisque malesuada quam. Proin id lectus. Fusce porta fermentum nibh. Pellentesque turpis. Pellentesque et nibh sit amet quam pulvinar rutrum. Nulla odio arcu, venenatis a, eleifend sed, sagittis dapibus, dui. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas.

Ut vitae diam non erat rutrum egestas.

Paragraph 3: CSS text-decoration

Praesent ac tellus ac wisi consectetuer suscipit. Aliquam id elit eget risus pretium porta. Donec dolor. Aliquam quis sapien consequat est luctus lobortis. Integer ut lectus. Ut vitae diam non erat rutrum egestas. Mauris eget mauris ultrices lacus facilisis accumsan. Proin scelerisque elit et justo consequat ultricies. Nunc sed sem eu sem feugiat ultricies.