2. Introduction to HTML

BootCamp by Dr.angela

1. HTML Heading Elements

Tag(ex. <h1></h1>) vs Element (ex. <h1> Book </h1>)

<h1> ~ <h6>
Use headings in order(<h1> → <h2> → <h3> → …)
Avoid skipping levels (e.g., <h1…


This content originally appeared on DEV Community and was authored by avery

BootCamp by Dr.angela

1. HTML Heading Elements

  • Tag(ex. <h1></h1>) vs Element (ex. <h1> Book </h1>)
  • <h1> ~ <h6> Use headings in order(<h1> → <h2> → <h3> → …) Avoid skipping levels (e.g., <h1> directly to <h3>)
  • <h1> = Page title (only one per page)

2. HTML Paragraph Elements

  • <p> </p>
  • Lorem Ipsum : Used for layout and design testing, Not meant to be read or understood

3. Self Closing Tags

  • void element
  • XTHML : <br />, <hr />, <img />, ...
  • HTML5 : <br>, <hr>, <img>, ...
  • Using <br /> instead of proper <p> tags can cause accessibility issues, especially for screen readers.


This content originally appeared on DEV Community and was authored by avery


Print Share Comment Cite Upload Translate Updates
APA

avery | Sciencx (2025-09-17T22:15:31+00:00) 2. Introduction to HTML. Retrieved from https://www.scien.cx/2025/09/17/2-introduction-to-html/

MLA
" » 2. Introduction to HTML." avery | Sciencx - Wednesday September 17, 2025, https://www.scien.cx/2025/09/17/2-introduction-to-html/
HARVARD
avery | Sciencx Wednesday September 17, 2025 » 2. Introduction to HTML., viewed ,<https://www.scien.cx/2025/09/17/2-introduction-to-html/>
VANCOUVER
avery | Sciencx - » 2. Introduction to HTML. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2025/09/17/2-introduction-to-html/
CHICAGO
" » 2. Introduction to HTML." avery | Sciencx - Accessed . https://www.scien.cx/2025/09/17/2-introduction-to-html/
IEEE
" » 2. Introduction to HTML." avery | Sciencx [Online]. Available: https://www.scien.cx/2025/09/17/2-introduction-to-html/. [Accessed: ]
rf:citation
» 2. Introduction to HTML | avery | Sciencx | https://www.scien.cx/2025/09/17/2-introduction-to-html/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.