Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialZubair Hanif
2,817 Points<Strong> or <b> and <em> or <i> Confusing
What is difference between these tags ? there results are same.
3 Answers
angiejang
3,134 Points<b> and <i> are explicit - they specify bold and italic respectively. <strong> and <em> are semantic - they specify that the enclosed text should be “strong” or “emphasised” bold and Italic can be controlled vis CSS. Hence strong and em is preferred in modern web page.
Zubair Hanif
2,817 PointsWhen i use Anchor tag <a> attribute Target (target="_blank") its open in new Tab. But I want to open in new Window, any solution for this.
Inevitable Walrus
10,032 PointsBit of a late response, but the only way you can reliably do this these days is with JavaScript, and it's not exactly recommended as most modern browsers will block your new window, thinking it's a popup. Here's how the HTML would work if you wanted to force a new window and not a new tab using JavaScript:
<a href="yourPage.html" onclick="window.open('yourPage.html', 'newwindow', 'width=500,height=500'); return false;"> Link to open new tab</a>
Patrik Horváth
11,110 Pointsi know about _parent, _self or _top or _blank nothing more more is passible with JavaScript
Patrik Horváth
11,110 PointsPatrik Horváth
11,110 Pointsby giving <b> tag its only BOLD wrost for google
by giving <strong> tag is BOLD and you gived him MEANING so this part of text is IMPORTANT better for google xD
you will learn more in SEO optimalisation :) so use STRONG :) same em and i use EM :)