# Frontend
- How to determine if CSS is loaded?
Watch devtools:Network panel
document.getElementsByTagName("link") document.styleSheets
- How does HTML Forms work?
<input>
are self closing HTML tags- Can have many many types
where should the form submit?
actions
attribute else local- use
name
attribute with<input>
tag value
placeholder
attributes are similar
- How to composse HTML emails for gmail?
Write HTML for your email
HTML inline css tool
Use inline CSS styles only, as gmail tends to drop other CSS attachment methods
Once HTML wil inline CSS is written, simply attach/include that inside your draft using manual DOM code injection. And we are good to go.
- Create custom directives in vuejs, like
v-purple
orv-anime
? use Vue.directive method(name of directive, code of directive)
Vue.directive('purple', function (el) { el.style.color = 'purple' })