Advertisement
Guest User

Untitled

a guest
Apr 25th, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.57 KB | None | 0 0
  1. <!DOCTYPE html>
  2.  
  3.  
  4. <html lang="de">
  5.  
  6. <head>
  7.  
  8. <meta charset="utf-8" />
  9. <meta name="author" content="Jakob Ströbitzer" />
  10. <title>Übung 1</title>
  11. <meta name="description" content="Übung 1 - Textformatierung" />
  12. <style type="text/css" >
  13. * {
  14. font-family: Arial, serif;
  15. }
  16. span.Fett {
  17. font-weight: 700
  18. }
  19. span.kursiv {
  20. font-style: italic
  21. }
  22. span.unterstrichen {
  23. text-decoration: underline
  24. }
  25. span.durchgestrichen {
  26. text-decoration: line-through
  27. }
  28. </style>
  29.  
  30. </head>
  31.  
  32. <body>
  33.  
  34. <h1 style="text-align: center;">Übung zur Textformatierung in HTML</h1>
  35. <hr style="color: #ff2600; height:8px; background-color: #ff2600;"/>
  36. <p style="font-weight: 700; text-align: center; padding: 0;">In dieser Übung werden wir <span class="unterstrichen">Text</span> unterschiedlich formatieren!</p>
  37. <div style="margin: 0px 0px 0px 0px; padding: 0px 0px 0px 0px;">
  38. <p>Text kann in HTML unterschiedlich formatiert werden. Folgende <span class="kursiv">Tags</span> können dafür verwendet werden:</p>
  39. <p><span style="font-weight: 700;">Überschriften:</span> Mit den Tags h1 - h6 kann man Überschriften auszeichnen.</p>
  40. </div>
  41. <h2>Physische Textauszeichnung</h2>
  42. <ul style="list-style-type: none; margin: 0px 0px 0px 0px; padding: 0px 0px 0px 0px;">
  43. <li><span class="Fett">Fettschrift:</span> Der Tag b formatiert Text<span class="Fett">fett.</span></li>
  44. <li><span class="Fett">Kursivschrift:</span> Der Tag i formatiert Text <span class="kursiv">kursiv.</span></li>
  45. <li><span class="Fett">Unterstreichen:</span> Der Tag u <span class="unterstrichen">unterstreicht</span> den text. Auch <span style="font-style: italic; font-weight: 700; text-decoration: underline;">Kombinationen</span><span class="Fett"> sind</span> natürlich möglich</li>
  46. <li><span class="Fett">Durchgestrichen:</span> Mit den Tags s oder strike kann Text <span class="overline">durchgestrichen</span> werden.</li>
  47. <li><span class="Fett">Hochgestellt:</span> Mit den tags sup kann Text <sup>hochgestellt</sup> werden.</li>
  48. <li><span class="Fett">Tiefgestellt:</span> Mit den Tags sub kann Text <sub>tiefgestellt</sub> werden.</li>
  49. </ul>
  50.  
  51. </body>
  52.  
  53. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement