473,396 Members | 1,872 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Markup with semantics in mind

In the site I am redoing, I am frequently running into this screnario:
Tel: (818) 555-1212
Fax: (818) 555-1234

where the tel and fax should be bold to stand out. Currently, I am using
span with a class, eg: <span class="fields"> and fields is font-
weight:bold.

I am wondering whether it would better just to use <b>, as it is for
presentation only.

--
Adrienne Boswell at Home
Arbpen Web Site Design Services
http://www.cavalcade-of-coding.info
Please respond to the group so others can share

Jun 14 '06 #1
13 1463
To further the education of mankind, Adrienne Boswell <ar****@yahoo.com>
vouchsafed:
In the site I am redoing, I am frequently running into this screnario:
Tel: (818) 555-1212
Fax: (818) 555-1234

where the tel and fax should be bold to stand out. Currently, I am using
span with a class, eg: <span class="fields"> and fields is font-
weight:bold.

I am wondering whether it would better just to use <b>, as it is for
presentation only.


You could use <em> or <strong> and style them.

--
Neredbojias
Infinity has its limits.
Jun 14 '06 #2
Deciding to do something for the good of humanity, Neredbojias
<http://www.neredbojias.com/fliam.php?cat=alt.html> declared in
comp.infosystems.www.authoring.html:
You could use <em> or <strong> and style them.


I think Adrienne's point is that she doesn't want them emphasised as
such - it is merely a visual thing.

--
Mark Parnell
My Usenet is improved; yours could be too:
http://blinkynet.net/comp/uip5.html
Jun 14 '06 #3
Gazing into my crystal ball I observed Mark Parnell
<we*******@clarkecomputers.com.au> writing in news:6rdy648x43r
$.***@markparnell.com.au:
Deciding to do something for the good of humanity, Neredbojias
<http://www.neredbojias.com/fliam.php?cat=alt.html> declared in
comp.infosystems.www.authoring.html:
You could use <em> or <strong> and style them.


I think Adrienne's point is that she doesn't want them emphasised as
such - it is merely a visual thing.


Absolutely correct, similar to <img src="logo.png" alt="" ...>, purely for
presentation.

--
Adrienne Boswell at Home
Arbpen Web Site Design Services
http://www.cavalcade-of-coding.info
Please respond to the group so others can share

Jun 14 '06 #4
Adrienne Boswell <ar****@yahoo.com> wrote:
In the site I am redoing, I am frequently running into this screnario:
Tel: (818) 555-1212
Fax: (818) 555-1234

where the tel and fax should be bold to stand out. Currently, I am using
span with a class, eg: <span class="fields"> and fields is font-
weight:bold.

I am wondering whether it would better just to use <b>, as it is for
presentation only.


It doesn't really matter, using <b> is a tiny bit more efficient.

--
Spartanicus
Jun 14 '06 #5
> I am wondering whether it would better just to use <b>, as it is for
presentation only.


That's at least what I am doing... So... +1 :-)
--
best regards
Thomas Schulz
http://www.micro-sys.dk/products/sitemap-generator/
Jun 14 '06 #6
Adrienne Boswell <ar****@yahoo.com> scripsit:
In the site I am redoing, I am frequently running into this screnario:
Tel: (818) 555-1212
Fax: (818) 555-1234

where the tel and fax should be bold to stand out. Currently, I am
using span with a class, eg: <span class="fields"> and fields is font-
weight:bold.

I am wondering whether it would better just to use <b>, as it is for
presentation only.


It would be more semantic to use <b> than to use <span>. The <span> element
has absolutely no semantics, apart from constituting an inline element and
not a block element, and even this is presentational or pure syntax rather
than semantics proper. The <b> element means a suggestion to bold the text,
though with no indication of why.

As regards to <b> vs. <strong>, it's really mostly a matter of splitting
hairs, with little practical impact now or in the imaginable future. We know
that <b> mostly means (strong) emphasis coupled with the idea of expressing
this by bolding, so it would be naive to process documents pretending we
don't know that.

Telephone and fax numbers would best be presented using the international
notation (as per CCITT/ITU-T E.123 recommendation), with a plus sign and a
country prefix and with no hyphens, e.g.
+1 818 555 1212
On the WWW, a foreigner may visit your page.

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/

Jun 14 '06 #7
On Wed, 14 Jun 2006, Jukka K. Korpela wrote:
As regards to <b> vs. <strong>, it's really mostly a matter of
splitting hairs, with little practical impact now or in the
imaginable future. We know that <b> mostly means (strong) emphasis
We know that in theory, <b> can mean many different things for which
bold text is appropriate *except* strong emphasis, since, in theory,
if strong emphasis is meant, then the correct markup would be <strong>
coupled with the idea of expressing this by bolding, so it would be
naive to process documents pretending we don't know that.


Uh-uh, it would be naive to pretend that 90 percent of everything
wasn't crud. I'm not sure what conclusion to draw from that, however:
the saying about "billions of flies can't be wrong" comes
unappetisingly to mind.

all the best
Jun 14 '06 #8

Alan J. Flavell wote:
On Wed, 14 Jun 2006, Jukka K. Korpela wrote:
As regards to <b> vs. <strong>, it's really mostly a matter of
splitting hairs, with little practical impact now or in the
imaginable future. We know that <b> mostly means (strong) emphasis


We know that in theory, <b> can mean many different things for which
bold text is appropriate *except* strong emphasis, since, in theory,
if strong emphasis is meant, then the correct markup would be <strong>
coupled with the idea of expressing this by bolding, so it would be
naive to process documents pretending we don't know that.


Uh-uh, it would be naive to pretend that 90 percent of everything
wasn't crud. I'm not sure what conclusion to draw from that, however:
the saying about "billions of flies can't be wrong" comes
unappetisingly to mind.

all the best


Thank you - <b> it is!

--
Adrienne Boswell at work
http://atlas.nextblock.com/files/
Please respond to the group so others can share

Jun 14 '06 #9

Jukka K. Korpela wote:
Adrienne Boswell <ar****@yahoo.com> scripsit:
In the site I am redoing, I am frequently running into this screnario:
Tel: (818) 555-1212
Fax: (818) 555-1234

where the tel and fax should be bold to stand out. Currently, I am
using span with a class, eg: <span class="fields"> and fields is font-
weight:bold.

I am wondering whether it would better just to use <b>, as it is for
presentation only.


It would be more semantic to use <b> than to use <span>. The <span> element
has absolutely no semantics, apart from constituting an inline element and
not a block element, and even this is presentational or pure syntax rather
than semantics proper. The <b> element means a suggestion to bold the text,
though with no indication of why.

As regards to <b> vs. <strong>, it's really mostly a matter of splitting
hairs, with little practical impact now or in the imaginable future. We know
that <b> mostly means (strong) emphasis coupled with the idea of expressing
this by bolding, so it would be naive to process documents pretending we
don't know that.

Telephone and fax numbers would best be presented using the international
notation (as per CCITT/ITU-T E.123 recommendation), with a plus sign and a
country prefix and with no hyphens, e.g.
+1 818 555 1212
On the WWW, a foreigner may visit your page.


Thank you, Jukka, you make a valid point about foreigners. If the boss
complains, I will point her to this post.

Jun 14 '06 #10
Alan J. Flavell <fl*****@physics.gla.ac.uk> scripsit:
We know that in theory, <b> can mean many different things for which
bold text is appropriate *except* strong emphasis, since, in theory,
if strong emphasis is meant, then the correct markup would be <strong>


Or maybe not. The theory - I mean HTML specifications when read with a mind
oriented towards semantic markup - says that <strong> means strong emphasis,
and this is probably how this element is used most of the time. The theory
does not say that all strong emphasis be marked up using <strong>. At least
it does not say this explicitly. In fact, it might be argued that a defining
occurrence of a term is by its nature something strongly emphatic, so that
<dfn> implicitly contains the semantics of <strong>. Headings surely have
emphasis by their nature, but we don't use <strong> for them. (Admittedly,
they are block elements, but we _could_ use <h1><strong>...</strong></h1> if
we thought that every strong emphasis needs <strong>.)
coupled with the idea of expressing this by bolding, so it would be
naive to process documents pretending we don't know that.


Uh-uh, it would be naive to pretend that 90 percent of everything
wasn't crud. I'm not sure what conclusion to draw from that, however:
the saying about "billions of flies can't be wrong" comes
unappetisingly to mind.


Well, from billions of flies we _can_ draw the conclusion that a local
concentration of flies usually indicates the presence of something that
flies like.

Suppose that a speech-based user agent, or a character cell browser with no
bolding capability, is designed to render strong emphasis using alternation
in voice (higher, lower, slower - there are many possibilities) or change of
text color (e.g., from normal black to red). If it does that to <strong>,
should it do the same to <b>? Theoretically, it shouldn't, since it cannot
know what <b> means, beyond the author's wish to have it rendered in bold.
It should either ignore <b> or express the idea of bolding without actually
bolding, e.g. by speaking <b>foo</b> as "bold foo unbold" or displaying it
as "[bold]foo[end bolding]". In more than 90 % of cases, that would be
annoying, though it would probably convey the author's idea somehow.

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/

Jun 15 '06 #11
On Wed, 14 Jun 2006, Alan J. Flavell wrote:
We know that in theory, <b> can mean many different things for which
bold text is appropriate *except* strong emphasis, since, in theory,
if strong emphasis is meant, then the correct markup would be <strong>


The symbols for vectors are usually printed boldface. Therefore,

<i><b>E</b></i>

could designate electric field strength.

Jun 15 '06 #12
On Thu, 15 Jun 2006, Jukka K. Korpela wrote:
Suppose that a speech-based user agent, or a character cell browser with no
bolding capability, is designed to render strong emphasis using alternation
in voice (higher, lower, slower - there are many possibilities) or change of
text color (e.g., from normal black to red). If it does that to <strong>,
should it do the same to <b>? Theoretically, it shouldn't, since it cannot
know what <b> means, beyond the author's wish to have it rendered in bold.


Or think of typefaces without a bold font. We might think/hope/dream
that a browser chooses, say, underlining for <strong>, but nothing
at all for <b> rather than producing a "mock bold".

Jun 15 '06 #13
On Thu, 15 Jun 2006, I wrote:
The symbols for vectors are usually printed boldface. Therefore,

<i><b>E</b></i>

could designate electric field strength.


I'm surprised to see that Netscape 4 recognizes <var> and displays
such text really in italics. So we should better write

<b><var>E</var></b>

for electric field strength - or perhaps

<var class=vector>E</var>

?

Jun 15 '06 #14

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

Similar topics

26
by: Axel Boldt | last post by:
Still trying to understand "=="... It appears as if two equal objects can become unequal if you perform the same operations on them: >>> l= >>> s=l >>> l.append(s) >>> w= >>> r= >>>...
30
by: Reinhold Birkenfeld | last post by:
Hello, I know that there are different YAML engines for Python out there (Syck, PyYaml, more?). Which one do you use, and why? For those of you who don't know what YAML is: visit...
0
by: Karl Smith | last post by:
Headless <invalid_address@dna.ie> wrote in reply to Christoph Paeper <crissov@gmx.net>: > Semantically <span>this</span> is 100% identical to: > Semantically <div>this</div> is 100% identical...
3
by: pr10n | last post by:
Hello, all! I'm working on a personal blog and I'm trying to make it's markup more semantic, using the right elements, removing needless div's and so on. I was wondering if someone would be kind...
43
by: David Trimboli | last post by:
In a text, I might want to include a foreign language term. In print, this is typically shown with italics. For instance (asterisks represent italics): 'I thought it was only a kind of *cram,*...
1
by: r.shimmin | last post by:
There exist a number of related informal markup languages whose design philosophy is to use terse, easily human-entered and human-read tags, that are intended to be converted by software into some...
4
by: Nitin Bhardwaj | last post by:
Hello all, I am puzzled by the term 'semantics' ! Well I know about 'syntax of a language' - as defined by its associated grammar Then what is this semantics? What does the C Compiler checks...
1
by: clintonG | last post by:
I've delved in to CSS-2 positioning and semantically correct markup. I'm starting to seriously doubt the value of adopting semantically correct markup in favor of the crippled implementation using...
13
by: Marc | last post by:
Hi, I've been lurking on clc for a few months now, and want to start by thanking the regulars here for opening my eyes to a whole new dimension of "knowing c". Considering I had never even...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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...
0
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...
0
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,...

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.