Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

Converting from HTML to XHTML

 
   Web Hosting and Web Master Forums (Home) -> Webmaster RSS
Next:  Need help for exit script  
Author Message
darionospam

External


Since: Dec 25, 2003
Posts: 16



(Msg. 1) Posted: Tue Feb 24, 2004 12:20 am
Post subject: Converting from HTML to XHTML
Archived from groups: alt>www>webmaster (more info?)

Hi all,

I'm converting my pages from HTML to XHTML and I have some questions:

- When quoting something using <blockquote>, do I need to put my text
inside a paragraph? E.g. <blockquote><p>Text</p></blockquote>
- What's the XHTML equivalent of <hr noshade>?
- Are there any common tag attributes that must be set explicitly in
order to avoid the tags appearing differently on various browsers? E.g.
someone suggested that I use this for the <p> tag:

p {
  margin: 1em 0;
}

Since Opera uses a different margin setting than other browsers.

--
Dario D.<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: Converting from HTML to XHTML 
Back to top
Login to vote
sp_bhuisman

External


Since: Jun 27, 2003
Posts: 571



(Msg. 2) Posted: Tue Feb 24, 2004 12:20 am
Post subject: Re: Converting from HTML to XHTML [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Mon, 23 Feb 2004 21:20:02 +0100, Dario D. <darioNOSPAM.DeleteThis@dariodjuric.com>
wrote:

 > Hi all,
 >
 > I'm converting my pages from HTML to XHTML and I have some questions:

First: do you have a good reason? XHTML is nice and all, but usually not
necessary unless your aim is to eventually learn XML.

 > - When quoting something using <blockquote>, do I need to put my text
 > inside a paragraph? E.g. <blockquote><p>Text</p></blockquote>

Yes.

 > - What's the XHTML equivalent of <hr noshade>?

<hr style="height:0px;border-top:2px solid #808080;text-align:center;" />

 > - Are there any common tag attributes that must be set explicitly in
 > order to avoid the tags appearing differently on various browsers? E.g.
 > someone suggested that I use this for the <p> tag:
 >
 > p {
  > margin: 1em 0;
 > }
 >
 > Since Opera uses a different margin setting than other browsers.

This is a myth. Opera handles margin values exactly the same as other
browsers. What Opera *does* do differently is refrain from applying these
default margins to empty <p> tags. Only someone planning on using <p></p>
as spacers like so:

<p></p>
<p></p>
<p></p>
<p></p>

.... would bother setting a property like margin:1em 0; for <p> tags.

Grey

--
The technical axiom that nothing is impossible sinisterly implies the
pitfall corollory that nothing is ridiculous.
- <a style='text-decoration: underline;' href="http://www.greywyvern.com" target="_blank">http://www.greywyvern.com</a> - Orca RingMaker: PHP web ring creation and
management<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: Converting from HTML to XHTML 
Back to top
Login to vote
spambouncer

External


Since: Aug 16, 2003
Posts: 79



(Msg. 3) Posted: Tue Feb 24, 2004 12:20 am
Post subject: Re: Converting from HTML to XHTML [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Dario D." <darioNOSPAM.RemoveThis@dariodjuric.com> wrote in message
news:c1dn98$r2h$1@brown.net4u.hr...
 > Hi all,
 >
 > I'm converting my pages from HTML to XHTML and I have some questions:
 >
 > - When quoting something using <blockquote>, do I need to put my text
 > inside a paragraph? E.g. <blockquote><p>Text</p></blockquote>
 > - What's the XHTML equivalent of <hr noshade>?
 > - Are there any common tag attributes that must be set explicitly in
 > order to avoid the tags appearing differently on various browsers? E.g.
 > someone suggested that I use this for the <p> tag:
 >
 > p {
 > margin: 1em 0;
 > }
 >
 > Since Opera uses a different margin setting than other browsers.
 >


Think about the semantics and you can't go too far wrong.

Use the <p> tag ONLY for paragraphs and ALWAYS for paragraphs.

With regards to "common tag attributes" There are several, even the margins
around <hx> can vary. My advice would be to allow the design to be able to
handle the defaults in any browser and enable the user to change the size
without your site falling apart. Remember your style sheet is only a
suggestion to the rendering engine, it can be over-ridden.

Good luck,
Mak.
--
"He [Jimmy White] has popped out to the toilet to compose himself before the
final push."
(STEVE DAVIS, BBC2)

<a style='text-decoration: underline;' href="http://www.private-eye.co.uk" target="_blank">http://www.private-eye.co.uk</a><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Converting from HTML to XHTML 
Back to top
Login to vote
darionospam

External


Since: Dec 25, 2003
Posts: 16



(Msg. 4) Posted: Tue Feb 24, 2004 1:03 am
Post subject: Re: Converting from HTML to XHTML [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

GreyWyvern wrote:

 > First: do you have a good reason? XHTML is nice and all, but usually
 > not necessary unless your aim is to eventually learn XML.

Yes, exactly my aim.

 > This is a myth. Opera handles margin values exactly the same as other
 > browsers. What Opera *does* do differently is refrain from applying
 > these default margins to empty <p> tags. Only someone planning on using
 > <p></p> as spacers like so:

A while back (you might remember), I had a problem with a right-aligned
screenshot box appearing differently on Opera. Setting the <p> margin
explicitly fixed the problem.

Anyway, thanks for your help.


--
Dario D.<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Converting from HTML to XHTML 
Back to top
Login to vote
user318

External


Since: Nov 28, 2003
Posts: 50



(Msg. 5) Posted: Tue Feb 24, 2004 1:36 am
Post subject: Re: Converting from HTML to XHTML [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

GreyWyvern <SP_bhuisman.DeleteThis@greywyvern.com_AM> wrote in
news:opr3ubhnozv0in9v@news.nas.net:

 > On Mon, 23 Feb 2004 21:20:02 +0100, Dario D.
 > <darioNOSPAM.DeleteThis@dariodjuric.com> wrote:
  >> - What's the XHTML equivalent of <hr noshade>?
 >
 > <hr style="height:0px;border-top:2px solid #808080;text-align:center;"
 > />

This also seems to validate: <hr noshade="noshade" />

--
Add articles with optional images to news/events pages via FTP
News Updater: <a style='text-decoration: underline;' href="http://www.xmlssoftware.com/NUpdater" target="_blank">http://www.xmlssoftware.com/NUpdater</a><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Converting from HTML to XHTML 
Back to top
Login to vote
spamblocked1

External


Since: Sep 19, 2003
Posts: 3499



(Msg. 6) Posted: Tue Feb 24, 2004 1:45 am
Post subject: Re: Converting from HTML to XHTML [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Dario D. wrote:
 >
 > I'm converting my pages from HTML to XHTML
 > ....

Why?

What is to be gained?

--
William Tasso<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Converting from HTML to XHTML 
Back to top
Login to vote
sp_bhuisman

External


Since: Jun 27, 2003
Posts: 571



(Msg. 7) Posted: Tue Feb 24, 2004 2:49 am
Post subject: Re: Converting from HTML to XHTML [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On 23 Feb 2004 22:36:06 GMT, Louis Somers
<removethis.info.TakeThisOut@nospam.xmlssoftware.com> wrote:

 > GreyWyvern <SP_bhuisman.TakeThisOut@greywyvern.com_AM> wrote in
 > news:opr3ubhnozv0in9v@news.nas.net:
 >
  >> On Mon, 23 Feb 2004 21:20:02 +0100, Dario D.
  >> <darioNOSPAM.TakeThisOut@dariodjuric.com> wrote:
   >>> - What's the XHTML equivalent of <hr noshade>?
  >>
  >> <hr style="height:0px;border-top:2px solid #808080;text-align:center;"
  >> />
 >
 > This also seems to validate: <hr noshade="noshade" />

AFAIK, that validates in XHTML Transitional, but not in XHTML Strict.

Grey

--
The technical axiom that nothing is impossible sinisterly implies the
pitfall corollory that nothing is ridiculous.
- <a style='text-decoration: underline;' href="http://www.greywyvern.com" target="_blank">http://www.greywyvern.com</a> - ORCA - Camouflaged PHP Web Scripts.<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Converting from HTML to XHTML 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Converting to CSS - I'm about to inroduce cascading style sheets to all 4000+ pages of my site. I don't know much about CSS - where can I find more information about it ? -- Alfred Molon http://www.molon.de/Galleries.htm - Photos from Myanmar, Malaysia, Thailand, Laos...

Converting miniBB Forum to XMB Forum 1.8 - Im using the MiniBB Forum but would like to import all my users and data into my new XMB 1.8 Forum. I have searched everywhere but I cant find a script to make the conversion - And unfotunatly I cant figure it out myself. I have arround 20.000 threads....

Netscape and xhtml/css - I tried this one on alt.html earlier today, but without any helpful responses. Maybe I'll be more lucky around here.... I'm in the process of designing a new website, and there seems to be some sort of rendering problem when I opened it in Netscape 7.1;...

HTML Question - I want to distribute a set of example pages with Phorm. They have a substantial amount of images - not a lot for a web site, but more than I want to include in the distro - and also a number of sound files. My intention is to have the graphics and..

CSS in html e-mail - Is there a good support for css in html e-mails, or is it better to use depreciated html tags? I plan to include a plain text version using the multipart feature: http://www.wilsonweb.com/wmt5/html-email-multi.htm I know some of you follow the..
   Web Hosting and Web Master Forums (Home) -> Webmaster All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]