Click here to return to the Wulin.com HTML tutorial column.
Above: Markup Language - Evil Table
Original source
Misquotations are the only quotations tha are never misquoted
- Hesketh Pearson
Quotes are often used by all types of websites, whether they are citing content from other web pages, authors, or publications. It is very beneficial to tag citations in a standard way. Because once the structure is completed, only some simple css is needed to turn the reference into a beautiful design element.
Let's take a look at the following three methods for marking quotes, and discuss the advantages and disadvantages of each method. After we find the best method, we will study which method is best when marking lengthy quotes.
Let's look at each method carefully and find the tool that is the easiest to accomplish your tasks, and more importantly, figure out why it's the best tool. Method A: Lack of semantics
<p>Misquotations are the only quotations that are never misquoted.</p>
<p>— Hesketh Pearson</p>
When using quotes on the page, you usually want the quoted appearance to be different from other texts. It is best to remind the reader that this content comes from other places, and at the same time (using appropriate methods) is separated from the reading order of the general content.
The marking method of method A is not different from other paragraphs on the page, so we have no way to set different styles for it, and the double quotes in the content become the only prompt for quoting the content.
By the way, in this method and the following two examples, "#8212" is the HTML font code with a long dash (that is, -), and the decimal representation method is used here. This is the most reliable way to support all browsers. Or, you can use —
Previous page 1 2 3 4 Next page Read the full text