FAQ |
Kalender |
|
![]() |
#1 | |||
|
||||
Medlem
|
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 |
|||
![]() |
![]() |
Svara |
|
|