in Education by
Semantically speaking, is there an appropriate place in today's websites (late 2008+) where using the bold and italic tags are more useful than the more widely used and tags? JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)

1 Answer

0 votes
by
While in general I would stay away from non-semantic tags like b and i, strong and em are not direct replacements for b and i. I would use b or i when it's only presentation you're going for, and what you're marking up has no semantic meaning. For example, a logo like stackoverflow could be marked up with stackoverflow. The "overflow" portion has no semantic meaning over "stack", yet stack doesn't offer anything either. Hope this helps. Not sure how to comment (edit: need moar karma!), but this is in reply to Erik's comment. Please read the HTML5 working draft. It gives a good explanation on when to use b. The b element represents a span of text to be stylistically offset from the normal prose without conveying any extra importance, such as key words in a document abstract, product names in a review, or other spans of text whose typical typographic presentation is boldened. "overflow" does not have emphasis over "stack" in the logo, therefore wrapping "overflow" with em is semantically incorrect.

Related questions

0 votes
    Which Semantic element is best suitable for content like blog post that is self contained, independent and can be republished?...
asked Apr 10, 2021 in Education by JackTerrance
0 votes
    I've been working on doing things like Codeacademy, trying to do minor projects on my own like designing ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 21, 2022 in Education by JackTerrance
0 votes
    When assigning a background color of a table cell on hover, the box shadow is covered. I have found ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 24, 2022 in Education by JackTerrance
0 votes
    When assigning a background color of a table cell on hover, the box shadow is covered. I have found ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 21, 2022 in Education by JackTerrance
0 votes
    Which HTML5 tag would you use to define footer?...
asked Apr 10, 2021 in Education by JackTerrance
0 votes
    I am working on a code pen and am having an issue where initially my main element would be exactly ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 26, 2022 in Education by JackTerrance
0 votes
    I've got the following html Title News 10. April 2011 First News 09. Feb. 2011 Second News With ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 23, 2022 in Education by JackTerrance
0 votes
    I am trying to fill options into a listbox dynamically. I want to set a fixed width even there is ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 19, 2022 in Education by JackTerrance
0 votes
    I am trying to fill options into a listbox dynamically. I want to set a fixed width even there is ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 19, 2022 in Education by JackTerrance
0 votes
    Which of the following attribute triggers event when an element is dragged?...
asked Apr 10, 2021 in Education by JackTerrance
0 votes
    Which of the following attribute triggers events when a form changes?...
asked Apr 10, 2021 in Education by JackTerrance
0 votes
    Which of the following attribute triggers event when the document goes offline? A - offline B - off C - out D - onbeforeonload...
asked Dec 3, 2020 by JackTerrance
0 votes
    I have created floating label in input field.In chrome view is working fine, but not properly viewed in ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Jun 2, 2022 in Education by JackTerrance
0 votes
    I have a Div element that pops up when clicking on a icon. This works fine on desktop. But when ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Jul 3, 2022 in Education by JackTerrance
0 votes
    I have following code and I want to get data from service. I have set everything from what I get ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Jun 19, 2022 in Education by JackTerrance
...