Kom ihåg mig?
Home Menu

Menu


Ny på XHTML - något att tänka på?

 
Ämnesverktyg Visningsalternativ
Oläst 2005-01-10, 14:06 #1
AlternativePhotographys avatar
AlternativePhotography AlternativePhotography är inte uppkopplad
Medlem
 
Reg.datum: Jan 2004
Inlägg: 77
AlternativePhotography AlternativePhotography är inte uppkopplad
Medlem
AlternativePhotographys avatar
 
Reg.datum: Jan 2004
Inlägg: 77
Hej och Gott Nytt År!
Håller på att göra om en sajt från HTML till XHTML. Det verkar som om det finns 3 olika versioner XHMTL 1.0 Strict, Transitional och Frameset. Tänkte använda 'Transitional' eftersom det verkar funka med flest användare och browsers.

Från w3 hemsidan:
----------------------------
XHTML 1.0 is specified in three "flavors". You specify which of these variants you are using by inserting a line at the beginning of the document. For example, the HTML for this document starts with a line which says that it is using XHTML 1.0 Strict. Thus, if you want to validate the document, the tool used knows which variant you are using. Each variant has its own DTD - Document Type Definition - which sets out the rules and regulations for using HTML in a succinct and definitive manner.
- XHTML 1.0 Strict - Use this when you want really clean structural mark-up, free of any markup associated with layout. Use this together with W3C's Cascading Style Sheet language (CSS <../Style/CSS/>) to get the font, color, and layout effects you want.
- XHTML 1.0 Transitional - Many people writing Web pages for the general public to access might want to use this flavor of XHTML 1.0. The idea is to take advantage of XHTML features including style sheets but nonetheless to make small adjustments to your markup for the benefit of those viewing your pages with older browsers which can't understand style sheets. These include using the body element with bgcolor, text and link attributes.
- XHTML 1.0 Frameset - Use this when you want to use Frames to partition the browser window into two or more frames.
-----------------------
Några kommentarer på detta?

En annan fråga på samma ämne... måste man skriva in länken till w3 i html taggen?
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
och är detta den rätta definitionen på sidan längst upp?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
Alltså, måste jag ha med länken till w3 där också?
Är det något mer jag bör tänka på?
Tacksam för svar!
Malin
AlternativePhotography är inte uppkopplad   Svara med citatSvara med citat
Svara


Aktiva användare som för närvarande tittar på det här ämnet: 1 (0 medlemmar och 1 gäster)
 

Regler för att posta
Du får inte posta nya ämnen
Du får inte posta svar
Du får inte posta bifogade filer
Du får inte redigera dina inlägg

BB-kod är
Smilies är
[IMG]-kod är
HTML-kod är av

Forumhopp


Alla tider är GMT +2. Klockan är nu 18:27.

Programvara från: vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Svensk översättning av: Anders Pettersson
 
Copyright © 2017