How to decide What needs to be done to make the selection in bold <strong> or <h3 / h4 / h5>?

How to judge what should be <h2> , h3 h4 h5 h6 or <p><strong>Some text</strong></p> If we do not have knowledge of the context

Just the title of the page I can easily rate <h1>

As judged by others, I always get content from clients in MS Word 2007 format, and the client always uses fontsize to make things smaller and bigger.

How can we better judge where the client wants the level of headings, and where he used bold text only for styling and where he really wants to emphasize the text.

 <p><strong>Some text here</strong></p> <p>Some more text here Some more text hereSome more text here Some more text hereSome more text here Some more text here </p> 

Or any course level

 <H*>Enquiries to:</h*> <p>Some more text here Some more text hereSome more text here Some more text hereSome more text here Some more text here </p> 

What would be good for accessibility?

+1
source share
5 answers

A heading is what their name suggests; they should be used for headings or headings . The headline makes them bold as well as different sizes depending on their level. For another piece of text, you need to decide whether you want to make it bold or not.

In addition, heading tags are good for search engine optimization ; search engines usually place page headings or important keywords inside these headings.

If you just want something in bold, use strong tags.

What I offer you:

You must use headings for titles or important keywords for the purpose of SEO, and you must use other bold tags such as b or strong of your own free will when you want to do something in bold.

Example:

 <H2>Amazing Laptops</h2> <p> We deal in great <strong>quality laptops</strong> you will ever come across. </p> 

Bottom line:

There is a world of difference between a bold type tag such as strong and title tags. They serve a different purpose; you cannot compare them.

+1
source

If β€œsome text here” summarizes the sections (sections) or paragraphs (paragraphs) that come immediately after it, then it can be considered a heading. Otherwise, this is just another piece of text.

Another good rule is that headers should not contain a colon. So:

 <h1>Inquiries</h1> <p>Please send your inquiries to blabla.</p> 

But:

 <p><strong>Send your inquiries to:</strong><br /> blabla</p> 
+1
source

I would say don’t worry about formatting, to decide which title to use, you can always customize the look with CSS.

My rule is to think about what you would like to see in a well-organized and hierarchical table of contents. If you need text, use the H[123456] tag H[123456] . Then the more noticeable use is closer to H1 , the less noticeable use is closer to H6 . Use the same Hn for things that have the same level of importance.

It doesn't matter if you don't have a TOC at the end, but it helps you think about how to organize the headers.

+1
source

Unfortunately, there is no final formula for whether a piece of text should be a heading or not. If you do not understand what your client is looking for, I suggest you ask the client. We have even fewer ideas since we have not seen the data.

0
source

It is quite common to actually just use the heading tags as placeholders in fact and define the design setting using CSS. Also

I think, as far as you doubt, you simply use them, because they are in a hierarchical order based on what you can assume. As you said, the page title makes sense to use <h1> , the section title, maybe <h2> , etc., And if necessary, adjustments just need to change the font size using CSS.

 .content_area h1{font-size:18px;font-weight:bold;} .content_area h2{font-size:14px;font-weight:bold;} 

etc...

0
source

Source: https://habr.com/ru/post/1300378/