Search
 
SCRIPT & CODE EXAMPLE
 

HTML

html typing shortcuts

div#div-id <!-- Create a div element with the id: div-id --> 
div.div-class <!-- Create a div element with the class: div-class -->
div*10 <!-- Create 10 div elements -->
div{CSS} <!-- Create a div element with innerHTML: 'CSS' -->
div+span <!-- Create a div element and a span element -->
div>div <!-- Create a parent div element with a child div element -->
div[onclick] <!-- Create a div element with the onclick attribute -->
$ <!-- When you combine it with the innerHTML & multiply or with --> 
  <!-- the id & class shortcuts it's really useful -->

<!-- Example --> div#div-${$}*3
<div id="div-1">1</div>
<div id="div-2">2</div>
<div id="div-3">3</div>

<!-- You can also combine them: -->
div#ABC.div-class>span{This is how to save time when coding HTML}+p{shortcuts}

<!-- this will generate: -->
<div id="ABC" class="div-class">
  <span>This is how to save time when coding HTML</span>
  <p>shortcuts</p>
</div>

<!-- These shortcuts work in VScode and for other code editors im not sure -->
Comment

PREVIOUS NEXT
Code Example
Html :: breaks html 
Html :: css svg width font size 
Html :: mailto in html 
Html :: js download File object 
Html :: html icon animation 
Html :: align div in html 
Html :: how to add image in checkbox in html 
Html :: agregar atributo jquery 
Html :: svg as button 
Html :: free html dashboard templates 
Html :: select required 
Html :: whats app chat link for html 
Html :: allow only number in input html 
Html :: how to make a password system in html 
Html :: tooltip react bootstrap 
Html :: javascript inside html 
Html :: li html 
Html :: html login and registration form 
Html :: year dropdown in html 
Html :: unix unexport environment variable 
Html :: favicon x shortcut icon 
Html :: google icons 
Html :: p tag in html 
Html :: how to make an a tag not clickable 
Html :: html chart 
Html :: html comments 
Html :: sign in page in html 
Html :: how to make the border invisible in html 
Html :: cambiar src jquery 
Html :: change html element 
ADD CONTENT
Topic
Content
Source link
Name
4+6 =