h2 – h5 usage in paragraph

Posted in: Newspaper
Post count: 11

Hi,

How can i asian a H tag to a dropcap without the paragraph being affected. For Eg if the starting word or two are H tag and then the paragraph it automatically moves to the next line.

Regards

Post count: 23312

Hello karanberi,

Please keep in mind that all the drop caps style can be selected from here -> https://forum.tagdiv.com/post-formats-for-tinymce/ Give me an example of what do you want to achieve?

Thanks for your understanding!

Post count: 11

Hi,

I am not referring to drop caps but usage of h tags within a paragraph for eg

Please keep in mind that all the drop caps style can be selected from here -> https://forum.tagdiv.com/post-formats-for-tinymce/ Give me an example of what do you want to achieve?

in the above sentence if we were to assign h3 to the word “drop caps” it will result in line break and result below or the entire sentence will become h3

Please keep in mind that all the

drop caps

style can be selected from here -> https://forum.tagdiv.com/post-formats-for-tinymce/ Give me an example of what do you want to achieve?

https://drive.google.com/file/d/0B4CjWcIr9YBFd3paOGtlV2h6TUU/view?usp=sharingscreenhot
https://drive.google.com/file/d/0B4CjWcIr9YBFNWxPM0ZZaDBnODg/view?usp=sharing

Post count: 9544

Normal semantic markup for the H tag is to be a “headline” not a single “element.” So, in semantic markup a dropcap should not be an H tag and cannot be inside a P paragraph tag.

Having an H tag for SEO inside a P tag would break that value due to incorrect usage of modern HTML and markup and generate errors on Google validation and other tools.

Generally you would need to stack classes, such as

for the drop cap, do

<div class="h3 h3dropcap">Puppy mills </div><p class="pdropcap">are bad, and should be banned.</p>

and then setup custom css for ‘h3dropcap’ and ‘pdropcap’ to adjust desired margin height/width and be relative larger em size and baseline align to top. You basically need to “roll your own” for anything not included with the theme, such as this, or hire a developer.

Basic CSS, but you need to do it yourself, TagDiv can’t write CSS for you, and generally won’t help you write “bad” HTML, either 😉

(( Just my opinion. I don’t work here. ))

  • This reply was modified 9 years by simchris.
  • This reply was modified 9 years by simchris.
  • This reply was modified 9 years by simchris.
Viewing 4 posts - 1 through 4 (of 4 total)
The forum ‘Newspaper’ is closed to new topics and replies.