How to tag scientific names in XHTML?

I would like to know the best way to mark up scientific titles in XHTML. This answer says that I should use an element <i>that I do not really approve of, unless, of course, this is the right element to use.

I could use it <span class="scientific">, but when I saw that one of the first uses of HTML is to mark up scientific documents, I would suggest that there would be a better semantic hook for that kind of thing.

Also, is there any element for marking the common name of a scientific name?

Note. This is similar to Wikipedia or for rent in this article used <i>for scientific nams.

Change . Will the tag match <dfn>?

+3
source share
2 answers

dfn is the definition of something.

<p>The prefix cardio- means <dfn>of the heart</dfn>.</p>

As far as I can see in the list of HTML 4 elements, nothing specifically suits the bill. This leaves you with a few options:

<span class="scientific">cardio</span>

Semantics are added by the class, and therefore, this is perhaps the most correct way, technically. However, this has a flaw that without your CSS, it will in no way be different from the surrounding text. Another option might be: / me prepares for duck for cover

<i class="scientific">cardio</i>

, , verboten, <i>, , , <span>, , . , class.

+6

(X) HTML5 i:

[...], , , , .

, " " .

+2

Source: https://habr.com/ru/post/1706941/


All Articles