|
Posted by Beauregard T. Shagnasty on 01/31/06 23:08
John Salerno wrote:
> Hi everyone. I have a couple of (probably simple) questions about how
> to format some text in a paragraph.
>
> First up is the easier one to explain: If I have scientific words
> that I want italicized, is that best done with <em> or a <span>? (My
> guess is span).
Depends. <em> is emphasized, not italic, though most browsers will show
it that way. Do you want to "emphasize" the words, or being scientific,
do you want some other type of .. emphasis? If so, then customize a
<span> for them.
<p>The following is a <span class="scientific">special</span> word.</p>
..scientific {
font-style: italic; font-weight: bold;
color: red; background-color: transparent;
}
or whatever trips your trigger.
> Second thing: If I have several lines of text to put into a <p> and I
> want to keep the text within a certain number of columns in my text
> editor (instead of having the whole paragraph taking up one really
> really long line), is it a good idea to manually press ENTER where I
> want the text to stop, or does that somehow affect the formatting?
> One thing it does affect, I can say, is when you need to go back and
> change the text, then you can see where you pressed ENTER. Should I
> just do a wordwrap instead?
The text in a paragraph element will wrap to fit the available space
when your page is displayed by the browser. You seem to be talking about
how it appears in your source editor. That's your choice. I usually type
about 80 characters and press return so my source is easily readable.
--
-bts
-Warning: I brake for lawn deer
Navigation:
[Reply to this message]
|