Hello, I need to use <h1> h1 tag in the middle of sentence. h1{display: inline;font-size:11px; font-family:Tahoma,Verdana,Arial;border-size: thin;} doesn't help me because the word after <h1> is listed on new line. Can you help me ?
You do know that that is not the correct way to use a Heading element? And, why would you want a heading in the middle of a sentence?
As already pointed out, you are not using H1 properly, of course it will create a new line, the idea of h1 is it is a title not an inline element. I suggest you use span with an assigned class. <style> .spanclass1 {font-size:11px; font-family:Tahoma,Verdana,Arial; border-size: thin;} </style> Code (markup): <p>Hello world <span class="spanclass1">How</span> Are you?</p> Code (markup):
@jeremyhowell, It's just came to my notice and you are one of those few sane out here who contributes to the forum, so thought to inform you. I'm sure you are not aware of the fact; "Asking for (or offering) reputation is not allowed publicly or privately". Please take a look at this http://forums.digitalpoint.com/faq.php?faq=rules_general#faq_rules_reputation
please do not use h1 tag in the middle of the sentence H1 tag can be used for main heading/title for that page and also please use only one h1 tag for a web page
Judging by the font size in the OP CSS, this person is trying to disguise an H1 heading mid-paragraph for some reason. Due to lack of response, he is probably out there somewhere trying to figure it out.
Use a SPAN instead, and replace "display: inline;" with "display: inline-block;" in order to get the border to show nicely.
He probably thinks he can put his keywords in h1 tags all over the page. Sorry Adresanet, but google is smarter than you and will not give you anything positive for this, infact it may hurt your serps.
Headers are block-level elements. By default, they will take up an entire line and break whatever content they're found within. While this is completely the wrong way to use headers, you can adjust this behavior in your CSS. h1 { display: inline; } Code (markup): This will render your header as an inline object. However, I do very strongly suggest you look at how headers are properly used as you're creating problems for yourself down the line.
Thank you very much for pointing that out, I have just got back from my holiday, will change it now, thanks mate.