HTML - robbiehume/CS-Notes GitHub Wiki

Useful links

Component libraries

React

Vue

  • Vuetify
  • PrimeVue
  • Vue Material

General Notes

  • In VS Code, if you type doc then hit tab, it will import boilerplate HTML template

Common Tags

HTML Tags & Elements

General Tags:

  • <span> : inline container used to markup a part of a text or document
  • <br> : single line break
  • <hr> : defines a thematic change in the content

Forms and Input:

  • <form> : form for user input
  • <input> : input control
  • <textarea> : multiline input control
  • <button> : clickable button
  • <select> : drop-down list

Notes

  • value vs name attribute
    • value is the property that defines the input data while the name property defines the input field name that can be used for form handling in backend languages like PHP
    • name should be unique, while the same value can be used for multiple tags

Do specific things:

  • Render \n as newline: link
⚠️ **GitHub.com Fallback** ⚠️