473,809 Members | 2,804 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

My own encounter with <b> vs. <strong>

In designing some of my pages (see
http://www.trimboli.name/rune/goblinmagic.html for an example), I
created a lot of markup to mimic the book upon which the pages are
based. My thinking at the time was that even if one turned off styles
one should see the words "Narration, " "Background ," or "Closer
Inspection" in a boldface font, or at least as distinct from the rest
of the paragraph. "It's an indication of what sort of paragraph it
is," I thought, "so it's really semantic and not just presentational.
And since it's an important keyword for the paragraph, that makes it
<strong>."

In reading a number of sources about <b> vs. <strong>, and about the
meaning of <strong> and <em>, I find myself doubting this logic. I
recently changed all the <strong>s to <b>s because of this, and now I
doubt that, too. What is the semantic logic of a printed paragraph in
which the first word or phrase is followed by a full stop, and is the
topic of the rest of the paragraph? Is it really just presentational
after all?

David
Stardate 6493.2
Jun 29 '06 #1
9 2002
David Trimboli <da***@trimboli .name> wrote:
http://www.trimboli.name/rune/goblinmagic.html
[...]
What is the semantic logic of a printed paragraph in which the first
word or phrase is followed by a full stop, and is the topic of the rest
of the paragraph? Is it really just presentational after all?


It looks like a heading to me.
--
Darin McGrew, mc****@stanford alumni.org, http://www.rahul.net/mcgrew/
Web Design Group, da***@htmlhelp. com, http://www.HTMLHelp.com/

"Adventure is nothing but a romantic name for trouble." - Louis L'Amour
Jun 29 '06 #2
Els
David Trimboli wrote:
What is the semantic logic of a printed paragraph in
which the first word or phrase is followed by a full stop, and is the
topic of the rest of the paragraph? Is it really just presentational
after all?


I'd say it's a heading. A run-in heading I think it's called.

--
Els http://locusmeus.com/
accessible web design: http://locusoptimus.com/
Jun 29 '06 #3
David Trimboli wrote:
In designing some of my pages (see
http://www.trimboli.name/rune/goblinmagic.html for an example), I
created a lot of markup to mimic the book upon which the pages are
based. My thinking at the time was that even if one turned off styles
one should see the words "Narration, " "Background ," or "Closer
Inspection" in a boldface font, or at least as distinct from the rest
of the paragraph. "It's an indication of what sort of paragraph it
is," I thought, "so it's really semantic and not just presentational.
And since it's an important keyword for the paragraph, that makes it
<strong>."

In reading a number of sources about <b> vs. <strong>, and about the
meaning of <strong> and <em>, I find myself doubting this logic. I
recently changed all the <strong>s to <b>s because of this, and now I
doubt that, too. What is the semantic logic of a printed paragraph in
which the first word or phrase is followed by a full stop, and is the
topic of the rest of the paragraph? Is it really just presentational
after all?


Semantically, it's a lead-in to the paragraph. Either it's a heading or
its a separate thing you might tag as <p class="leadIn"> (lacking the
ability in HTML to have <leadIn>). Either way, it isn't semantically
"bold thing". You could just as well set them in italics or small caps,
or place them over the paragraph in question or float them to the left.
Jun 29 '06 #4
"Harlan Messinger" <hm************ *******@comcast .net> wrote in
message news:4g******** *****@individua l.net...
David Trimboli wrote:
In designing some of my pages (see
http://www.trimboli.name/rune/goblinmagic.html for an example), I
created a lot of markup to mimic the book upon which the pages are
based. My thinking at the time was that even if one turned off
styles one should see the words "Narration, " "Background ," or
"Closer Inspection" in a boldface font, or at least as distinct
from the rest of the paragraph. "It's an indication of what sort of
paragraph it is," I thought, "so it's really semantic and not just
presentational. And since it's an important keyword for the
paragraph, that makes it <strong>."

In reading a number of sources about <b> vs. <strong>, and about
the meaning of <strong> and <em>, I find myself doubting this
logic. I recently changed all the <strong>s to <b>s because of
this, and now I doubt that, too. What is the semantic logic of a
printed paragraph in which the first word or phrase is followed by
a full stop, and is the topic of the rest of the paragraph? Is it
really just presentational after all?


Semantically, it's a lead-in to the paragraph. Either it's a heading
or its a separate thing you might tag as <p class="leadIn"> (lacking
the ability in HTML to have <leadIn>). Either way, it isn't
semantically "bold thing". You could just as well set them in
italics or small caps, or place them over the paragraph in question
or float them to the left.


I was afraid of that. Okay, let's see...

On the pages in question, the "Narration, " "Background ," and "Closer
Inspection" do not briefly describe the topic of the section they
introduce (c.f.
http://www.w3.org/TR/html401/struct/....html#edef-H1). Instead,
they describe the type of paragraph they're in. So, a paragraph
beginning with "Narration: " isn't about narration, it's meant to be
read aloud. The words, then, aren't headings.

I guess there really isn't a decent markup for this. It should
probably end up as <span class="para-type">Narration :</span>, but I'm
not sure this is worth the effort. Maybe I should just leave 'em as
<b> and admit that it's presentational markup.

David
Stardate 6494.0
Jun 29 '06 #5

David Trimboli wrote:
In designing some of my pages (see
http://www.trimboli.name/rune/goblinmagic.html for an example), I
created a lot of markup to mimic the book upon which the pages are
based. My thinking at the time was that even if one turned off styles
one should see the words "Narration, " "Background ," or "Closer
Inspection" in a boldface font, or at least as distinct from the rest
of the paragraph. "It's an indication of what sort of paragraph it
is," I thought, "so it's really semantic and not just presentational.
And since it's an important keyword for the paragraph, that makes it
<strong>."

In reading a number of sources about <b> vs. <strong>, and about the
meaning of <strong> and <em>, I find myself doubting this logic. I
recently changed all the <strong>s to <b>s because of this, and now I
doubt that, too. What is the semantic logic of a printed paragraph in
which the first word or phrase is followed by a full stop, and is the
topic of the rest of the paragraph? Is it really just presentational
after all?

David
Stardate 6493.2


Dear sir,
Just FYI,
Most people would use CSS at this point in order to get the exact
format that they want, although I find CSS somewhat ridiculous to
comprehend. I guess I would recommend using CSS on these descriptional
headings. The use of <b> or <strong> or <em> normally is not very
accurate in what you want as your presentation, as they are static
elements, not variable like CSS.

I have the honor to remain your most humble and Ob't Sv't in our war
against the King.

--
Patrick Reilly
1st Coy.
Colonel Seth Warner's Regiment

Jun 30 '06 #6
David Trimboli wrote:
"Harlan Messinger" <hm************ *******@comcast .net> wrote in
message news:4g******** *****@individua l.net...
David Trimboli wrote:
In designing some of my pages (see
http://www.trimboli.name/rune/goblinmagic.html for an example), I
created a lot of markup to mimic the book upon which the pages are
based. My thinking at the time was that even if one turned off
styles one should see the words "Narration, " "Background ," or
"Closer Inspection" in a boldface font, or at least as distinct
from the rest of the paragraph. "It's an indication of what sort of
paragraph it is," I thought, "so it's really semantic and not just
presentational. And since it's an important keyword for the
paragraph, that makes it <strong>."

In reading a number of sources about <b> vs. <strong>, and about
the meaning of <strong> and <em>, I find myself doubting this
logic. I recently changed all the <strong>s to <b>s because of
this, and now I doubt that, too. What is the semantic logic of a
printed paragraph in which the first word or phrase is followed by
a full stop, and is the topic of the rest of the paragraph? Is it
really just presentational after all?

Semantically, it's a lead-in to the paragraph. Either it's a heading
or its a separate thing you might tag as <p class="leadIn"> (lacking
the ability in HTML to have <leadIn>). Either way, it isn't
semantically "bold thing". You could just as well set them in
italics or small caps, or place them over the paragraph in question
or float them to the left.


I was afraid of that. Okay, let's see...

On the pages in question, the "Narration, " "Background ," and "Closer
Inspection" do not briefly describe the topic of the section they
introduce (c.f.
http://www.w3.org/TR/html401/struct/....html#edef-H1). Instead,
they describe the type of paragraph they're in. So, a paragraph
beginning with "Narration: " isn't about narration, it's meant to be
read aloud. The words, then, aren't headings.


The meaning "heading" isn't limited to "identifica tion of the thing the
following text is *about*". If I have a page that looks as follows:

PREFACE
This is a story I heard last summer ....

THE STORY
About ten years ago ....

EPILOGUE
When the story ended, it was 2002. As of this writing, in 2006, ...

The part labeled "PREFACE" isn't *about* a preface, and the part labeled
"EPILOGUE" isn't *about* an epilogue. But those labels are certainly
headings.

In your content, a paragraph marked "Narration" could perfectly well be
styled as an indented block, with a light pink background, and the word
Narration in a rectangle with a light blue background above the text and
overlapping the border of the box containing the text of the narration.
Running it into the paragraph was a style choice. No one seeing it would
say, "Hey, that's not a heading. This looks really weird." On the
contrary, if that's they way you had found it in the original, I bet you
wouldn't have been as likely to question whether it was a heading! :-)
The choice of presentation doesn't alter the answer to the question of
whether it's a heading or not, but it can make it more or less apparent,
or remove some confusion.

Jun 30 '06 #7
David Trimboli wrote:

In reading a number of sources about <b> vs. <strong>, and about the
meaning of <strong> and <em>, I find myself doubting this logic. I
recently changed all the <strong>s to <b>s because of this, and now I
doubt that, too. What is the semantic logic of a printed paragraph in
which the first word or phrase is followed by a full stop, and is the
topic of the rest of the paragraph? Is it really just presentational
after all?

David
Stardate 6493.2


I think <strong> and <em> are perfectly acceptable in this case. IMHO,
you're over-thinking the whole semantics vs. presentation thing.

<twocents>
HTML is part semantics, yes, but it it is a presentation layer in and of
itself. CSS goes along with it, but if you want a completely
presentation-free markup you should ditch HTML and move to XML - HTML
has inherent presentational properties. Some of those properties can be
overridden by CSS, but they are still part of the HTML specification.

How is presentation-free markup going to look on a CSS-free browser? If
you're using nothing but <div>s and <span>s, the user will not be able
to determine what's important and what's not, because everything will
look the same. That's why you use <strong> or <em> - you're telling the
browser to STRONGly present or EMphasize the text in question, whether
it reads the stylesheet or not.
</twocents>

Jeremy
Jun 30 '06 #8
Jeremy wrote:
David Trimboli wrote:

In reading a number of sources about <b> vs. <strong>, and about the
meaning of <strong> and <em>, I find myself doubting this logic. I
recently changed all the <strong>s to <b>s because of this, and now I
doubt that, too. What is the semantic logic of a printed paragraph in
which the first word or phrase is followed by a full stop, and is the
topic of the rest of the paragraph? Is it really just presentational
after all?

David
Stardate 6493.2


I think <strong> and <em> are perfectly acceptable in this case. IMHO,
you're over-thinking the whole semantics vs. presentation thing.

<twocents>
HTML is part semantics, yes, but it it is a presentation layer in and of
itself. CSS goes along with it, but if you want a completely
presentation-free markup you should ditch HTML and move to XML - HTML
has inherent presentational properties. Some of those properties can be
overridden by CSS, but they are still part of the HTML specification.

How is presentation-free markup going to look on a CSS-free browser? If
you're using nothing but <div>s and <span>s, the user will not be able
to determine what's important and what's not, because everything will
look the same. That's why you use <strong> or <em> - you're telling the
browser to STRONGly present or EMphasize the text in question, whether
it reads the stylesheet or not.
</twocents>

Jeremy


I just re-read that post in relation to the OP and it makes no sense in
context... I think the OP somehow ran together in my head with the
strange ramblings of "pe************ ********@gmail. com".

Jeremy
Jun 30 '06 #9
David Trimboli wrote:
In designing some of my pages (see
http://www.trimboli.name/rune/goblinmagic.html for an example), I
created a lot of markup to mimic the book upon which the pages are
based. My thinking at the time was that even if one turned off styles
one should see the words "Narration, " "Background ," or "Closer
Inspection" in a boldface font, or at least as distinct from the rest
of the paragraph. "It's an indication of what sort of paragraph it
is," I thought, "so it's really semantic and not just presentational.
And since it's an important keyword for the paragraph, that makes it
<strong>."

In reading a number of sources about <b> vs. <strong>, and about the
meaning of <strong> and <em>, I find myself doubting this logic. I
recently changed all the <strong>s to <b>s because of this, and now I
doubt that, too. What is the semantic logic of a printed paragraph in
which the first word or phrase is followed by a full stop, and is the
topic of the rest of the paragraph? Is it really just presentational
after all?


I realise you are are attempting to mimic the look of a book but in my
opinion this is difficult to do using the different screen media.

Would you consider the use of Definition List for the markup? It is
exampled as a use for DL in the Reference if I remember correctly. The
benefit of using DL is that it presents the difference between
"divisional " words, such as "Narrative" and "content" both visually and
by a screen reader and whether css is enabled or not.

The styling of what I have called "divisional " words is in my view only
to make a visual differentiation . In reading a script, what should be
declaimed, the characters name or his words; so strong and emphasis for
a "divisional " word don't seem appropriate; anything else would do,
color, font-family, font-style, font-weight, bracketing for example

Could I suggest something along these lines.
dl.snippet {
border: 1px solid #000000;
margin: auto;
padding: 0.2em;
width: 50%;
}
dl.snippet dt {
color: #999999;
font-style: italic;
font-weight: bold;
}

<dl class="snippet" >
<dt>Background: </dt>
<dd><img src="book.png" width="72" height="50" alt="book"
style="display: block;float:lef t;"><div style="padding-left:72px;">Thi s
is the outer hall of the goblin's lair, and it is guarded by three
traps. Two of these are meant to halt intruders, and the third is an
alarm.</div>
</dd>
</dl>

Louise
Jul 1 '06 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

129
64603
by: Torbjørn Pettersen | last post by:
I've started cleaning up my HTML and implementing CSS. So far I've used FrontPage, but am switching over to DreamWeaver. Reading a bit on W3Schools.com and W3.org I see there are a lot of HTML code I never even knew existed. Among these are <em> and <strong>. What's the difference between these two and <i> and <b>? -- Torbjørn Pettersen Editor/Webmaster
0
9722
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9603
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10643
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10391
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10121
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9200
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6881
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5550
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3862
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.