Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Przesiadka na XHTML
NoiseMc
post
Post #1





Grupa: Zarejestrowani
Postów: 398
Pomógł: 10
Dołączył: 24.11.2004
Skąd: Łódź

Ostrzeżenie: (0%)
-----


Witam.

Jako, że dopiero zaczynam przygodę z HXTML, CSS i z <div> - ami proszę o przejrzenie kodu pierwszych moich wypocin i o sugestie jak moznabyło by to inaczej rozwiązać.

Nie wiem czy to dobre miejsce czy nie powinienem z tym wyjechać do działu oceny, ale właściwie nie o ocenę mi chodzi a o podpowiedzi i sugestie dotyczące poprawności kodu.

Link

Dzięki i pozdrawiam
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
Kas
post
Post #2





Grupa: Zarejestrowani
Postów: 425
Pomógł: 0
Dołączył: 28.05.2005
Skąd: Warszawa

Ostrzeżenie: (0%)
-----


Jedna uwaga. Aktualnie strony tworzy się w oparciu o <div>.

Polecam My XHTML Site.
A oto jej kod

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  2. "http://www.w3.org/TR/2000/REC-xhtml1-20000126/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  4. <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
  5. <title>My XHTML Site</title>
  6.  
  7. <link rel="stylesheet" type="text/css" title="main" media="screen, projection" href="screen.css" />
  8.  
  9.  
  10. </head>
  11.  
  12. <div id="banner">
  13. <a href="index.html"><img src="logo1.gif" alt="GearNet - Home" title="GearNet - Home" /></a>
  14. </div>
  15.  
  16. <div id="container">
  17. <div id="container2">
  18. <div id="navigation">
  19. <ul>
  20. <li><a href="index.html">Home</a></li>
  21. <li><a href="contact.html">Contact Us</a></li>
  22. <li><a href="#">Get Some Gears</a></li>
  23. <li><a href="#">Gear Tour</a></li>
  24.  
  25. </ul>
  26. </div>
  27. <div id="more">
  28. <h3>Did You Know:</h3>
  29.  
  30. <p>Epicyclic gear trains are powerful when used correctly,
  31. but are often misunderstood. Illustrated here is a typical epicyclic
  32. gear train. Notice how the planet gears roll on and revolve about the sun
  33. gear. The ring gear rolls on the planet gears. Such a gear configuration has
  34. useful applications, but the overall gear ratio is quite difficult to
  35. intuitively calculate. Please select "Epicyclic Ratio Calc'n" to learn
  36. about an effective yet simple method for calculating the overall gear ratio. </p>
  37.  
  38.  
  39.  
  40. </div>
  41. <div id="content">
  42. <h2>About GearNet</h2>
  43.  
  44. <p>Gears have existed since the invention of rotating machinery. Because of
  45. their force-multiplying properties, early engineers used them for hoisting
  46. heavy loads such as building materials. The mechanical advantage of gears
  47. was also used for ship anchor hoists and catapult pre-tensioning.</p>
  48.  
  49. <p>Early gears were made from wood with cylindrical pegs for cogs and were often
  50. lubricated with animal fat grease. Gears were also used in wind and water wheel
  51. machinery for decreasing or increasing the provided rotational speed for application
  52. to pumps and other powered machines. An early gear arrangement used to power textile
  53. machinery is illustrated in the following figure. The rotational speed of a water or
  54. horse drawn wheel was typically too slow to use, so a set of wooden gears needed to
  55. be used to increase the speed to a usable level. </p>
  56.  
  57. <p>The industrial revolution in Britain in the eighteenth century saw an explosion in the
  58. use of metal gearing. A science of gear design and manufacture rapidly developed through
  59. the nineteenth century. </p>
  60.  
  61. <p>Today, the most significant new gear developments are in the area of materials. Modern
  62. metallurgy has greatly increased the useful life of industrial and automotive gears,
  63. and consumer electronics has driven plastic gearing to new levels of lubricant-free
  64. reliability and quiet operation. </p>
  65.  
  66.  
  67. </div>
  68. <div id="cleardiv"></div>
  69.  
  70.  
  71. </div>
  72. </div>
  73.  
  74. <div id="footer">
  75. <ul>
  76. <li><a href="index.html">Home</a></li>
  77. <li><a href="contact.html">Contact Us</a></li>
  78. <li><a href="#">Get Some Gears</a></li>
  79. <li><a href="#">Gear Tour</a></li>
  80.  
  81. </ul>
  82. </div>
  83.  
  84.  
  85.  
  86. </body>
  87. </html>


Długi nie jest. (IMG:http://forum.php.pl/style_emoticons/default/biggrin.gif) A na tabelach wyszło by zedcydowanie więcej.

I najlepiej używać jednak xhtml 1.0 strict.
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 10.10.2025 - 13:05