1
0

sectioning.py 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. """Sectioning classes."""
  2. from .base import BaseHTML
  3. class Body(BaseHTML):
  4. """Display the body element."""
  5. tag = "body"
  6. class Address(BaseHTML):
  7. """Display the address element."""
  8. tag = "address"
  9. class Article(BaseHTML):
  10. """Display the article element."""
  11. tag = "article"
  12. class Aside(BaseHTML):
  13. """Display the aside element."""
  14. tag = "aside"
  15. class Footer(BaseHTML):
  16. """Display the footer element."""
  17. tag = "footer"
  18. class Header(BaseHTML):
  19. """Display the header element."""
  20. tag = "header"
  21. class H1(BaseHTML):
  22. """Display the h1 element."""
  23. tag = "h1"
  24. class H2(BaseHTML):
  25. """Display the h1 element."""
  26. tag = "h2"
  27. class H3(BaseHTML):
  28. """Display the h1 element."""
  29. tag = "h3"
  30. class H4(BaseHTML):
  31. """Display the h1 element."""
  32. tag = "h4"
  33. class H5(BaseHTML):
  34. """Display the h1 element."""
  35. tag = "h5"
  36. class H6(BaseHTML):
  37. """Display the h1 element."""
  38. tag = "h6"
  39. class Main(BaseHTML):
  40. """Display the main element."""
  41. tag = "main"
  42. class Nav(BaseHTML):
  43. """Display the nav element."""
  44. tag = "nav"
  45. class Section(BaseHTML):
  46. """Display the section element."""
  47. tag = "section"
  48. address = Address.create
  49. article = Article.create
  50. aside = Aside.create
  51. body = Body.create
  52. header = Header.create
  53. footer = Footer.create
  54. h1 = H1.create
  55. h2 = H2.create
  56. h3 = H3.create
  57. h4 = H4.create
  58. h5 = H5.create
  59. h6 = H6.create
  60. main = Main.create
  61. nav = Nav.create
  62. section = Section.create