We can make a brake with <br>, but everbody seems to hate it. Should i do something like this instead :

<h6>I Want to make some brakes around here</h6><h6>So i just make a new "<p>"tag or maybe "<h6>" </h6>

Or is this better <h6>I Want to make some brakes around here. So i just make a new "<p>"tag or maybe "<h6>" </h6>

If it the same with p, h1, h2 ect. ?

xhtmlcoder
—
2013-04-20T09:37:41Z —
#2

You cannot have a P element within a H6 since it [h6] can only contain 'inline elements' such as BR or SPAN, etc. It also depends upon what you are trying to achieve - if it's just visual or positioning reasons (layout) or controlling white space then use CSS.

The P element; for paragraphs and are 'block level' so by default cause paragraph breaks but you should NEVER use them for generating white space.

ingenting
—
2013-04-20T09:43:32Z —
#3

xhtmlcoder said:

You cannot have a P element within a H6 since it [h6] can only contain 'inline elements' such as BR or SPAN, etc. It also depends upon what you are trying to achieve - if it's just visual or positioning reasons (layout) or controlling white space then use CSS.

The P element; for paragraphs and are 'block level' so by default cause paragraph breaks but you should NEVER use them for generating white space.

I am not sure what you mean should i use another text tag <p> to make a break or should i use <br> ? My p element are not empty.

Lets say i have 3 colums i want to make some white space between them:<p>text text text</p><p>text text text</p><p>text text text</p>

OR

<p> text text text <br> text text text<br> text text text<br></p>

xhtmlcoder
—
2013-04-20T12:05:23Z —
#4

If you have three separate paragraphs and want either; the block of text column to be a certain width; or want to change vertical white space then use CSS.

The BR is mainly used for 'special' cases like; poetry or postal addresses not for making generic white space between the sentences themselves.

Obviously each paragraph will be in the form: <p>Paragraph 1 text...</p><p>Paragraph 2 text...</p><p>Paragraph 3 text...</p><p>Paragraph 2 text...</p> as that denotes separate paragraphs.

zot
—
2013-04-20T12:22:29Z —
#5

I think when people talk about their dislike for <br> tags, it's when they're used to add space. For example:

<img src="logo.jpg"><br><br><br><p>Company Name</p>.

There's nothing wrong with using them to break lines within a heading.

ingenting
—
2013-04-20T12:27:42Z —
#6

[quote="zot,post:5,topic:29672"]I think when people talk about their dislike for <br> tags, it's when they're used to add space. For example:

<img src="logo.jpg"><br><br><br><p>Company Name</p>.

There's nothing wrong with using them to break lines within a heading.[/quote]

But if you have this text and want to make 10-15 words bold. How would you do this with css and not <strong> or <b> ?

You can wrap the words in some inline element like a <span>, give it a class and style it accordingly.

ingenting
—
2013-04-20T23:42:58Z —
#15

ralph_m said:

You can wrap the words in some inline element like a <span>, give it a class and style it accordingly.

So using b and strong in this above situation is wrong ?

ralphm
—
2013-04-20T23:44:17Z —
#16

You could use <b> there. I just prefer to use CSS, as it's a bit more elegant.

ingenting
—
2013-04-20T23:46:01Z —
#17

ralph_m said:

You could use <b> there. I just prefer to use CSS, as it's a bit more elegant.

Thanks i will use b or css now.

ralphm
—
2013-04-20T23:50:28Z —
#18

You can use <b> instead of <span>, give the <b> a class and refine the styling a bit, too, if the default <b> styles are a bit bland.

John_Betong
—
2013-04-21T00:48:33Z —
#19

[ot]

Maybe someone can confirm that as far as SEO is concerned then the <span> tag is ignored because only styling is expected?

Whereas text enclosed with <strong> and <b> add SEO emphasis to the words similar to heading tags?

[/ot]

Stomme_poes
—
2013-04-26T20:17:31Z —
#20

John: I doubt <b> means anything for SEO, but <strong> might, maybe. Depends on how often it's used for importance in the wild versus just making stuff bold. <span> should indeed be entirely ignored by an SE. Span and div have no real semantic meaning, so I'd prefer the span.