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 trial

HTML HTML Basics Images, Text and Links Add Meaning to Words with Text Level Elements

<Strong> or <b> and <em> or <i> Confusing

What is difference between these tags ? there results are same.

Patrik Horváth
Patrik Horváth
11,110 Points

by 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 :)

3 Answers

<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.

When 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
Inevitable Walrus
10,032 Points

Bit 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
Patrik Horváth
11,110 Points

i know about _parent, _self or _top or _blank nothing more more is passible with JavaScript