am_dot_com

SW 2022-03-11

Mar 11th, 2022 (edited)
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.68 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>The anchor element</title>
  6. </head>
  7. <body>
  8. <!-- nav tem a semântica de ser um conjunto de estruturas
  9. para navegação interna ou externa -->
  10. <nav>
  11. Dois exemplos de navegação INTERNA para fragmentos DESTE MESMO doc:
  12. <ul>
  13. <li>
  14. <a href="#idSectionTheoryAboutAnchor">
  15. Definições em English em Português
  16. </a>
  17. </li>
  18. <li>
  19. <a href="#idSectionAnchorExamples">
  20. Exemplos de âncoras externas / externals anchors
  21. </a>
  22. </li>
  23. </ul>
  24.  
  25. <hr>
  26.  
  27. Dois exemplos de navegação externa:
  28. <ul>
  29. <li>
  30. <a href="https://xrds.acm.org/">https://xrds.acm.org/</a>
  31. </li>
  32. <li>
  33. <a href="https://www.formula1.com/index.htm#primaryNav">https://www.formula1.com/index.htm#primaryNav</a>
  34. </li>
  35. </ul>
  36.  
  37.  
  38. </nav>
  39. <section id="idSectionTheoryAboutAnchor">
  40. <header>
  41. <h1>The anchor element</h1>
  42. <h2>The most important element in hypertext</h2>
  43. </header>
  44. <article>
  45. <details>
  46. <summary>Anchor in english</summary>
  47. <p lang="en">The anchor element is used for creating navigational
  48. resources to browse to different parts of the same
  49. document or to other documents.</p>
  50. </details>
  51. <hr>
  52. <details open>
  53. <summary>Anchor em Português</summary>
  54. <p lang="pt">O element âncora serve para criar elementos
  55. de navegação para outras partes do mesmo documento, ou
  56. para outros documentos.</p>
  57. </details>
  58. </article>
  59. </section>
  60. <hr>
  61. <section id="idSectionAnchorExamples">
  62. <header>
  63. <h1>Some anchor examples</h1>
  64. </header>
  65. <ol>
  66. <li>
  67. Empty anchor, invisible and useless:
  68. <mark>
  69. <a></a><!-- empty anchor (no visibile expression) -->
  70. </mark>
  71. </li>
  72. <li>
  73. Not empty anchor, visible, but still useless:
  74. <mark>
  75. <a>anchor</a> <!-- visible, but useless -->
  76. </mark>
  77. </li>
  78. <li>
  79. Not empty and serving for navigation:
  80. <a
  81. href="https://arturmarques.com/edu/sw"
  82. >
  83. Página de Suporte
  84. </a>
  85. </li>
  86. <li>
  87. <a href="https://badsite.su/">
  88. https://www.cgd.pt/
  89. </a>
  90. </li>
  91. </ol>
  92. </section>
  93. </body>
  94. </html>
Add Comment
Please, Sign In to add comment