The words “two most popular” or “matter and energy” are not of greater importance, we just want to attract the eyes on specific parts of the text. Here is an example of what everybody do : Communicating meaning is what semantics are all about. The intended meaning or purpose of the enclosed text should be what determines which element you use. It may help to realize that both are valid and semantic elements in HTML5 and that it’s a coincidence that they both have the same default styling (boldface) in most browsers (although some older browsers actually underline ).Įach element is meant to be used in certain types of scenarios. The element is for content that is of greater importance, while the element is used to draw attention to text without indicating that it’s more important. Now, if we put this in the HTML semantic context, there is a specific tag for that, the “b” tag. When we are in this non-web context, the “bold” button is mostly used to draw attention to text, to influence the reading rythm. The “bold” button is a feature available in every office text editors such as Microsoft Word or Libre Office. The “strong” tag, according to the specification, is meant for content that is of “strong importance” (such as keywords), including things of great seriousness or urgency (such as warnings).īut the “bold” button does not indicates anything else that the text appearance will be “bold”, it only indicates to the user that it can add a visual effect on the text. The “bold” button actually generates a “strong” tag and the “italic” button generates a “em” tag. There is an issue in Redactor (and in 99 % of all WYSIWYG editors) about the usage of the “bold” and “italic” buttons.
0 Comments
Leave a Reply. |