Get started with emmet CDN
MIT licensed
Emmet: library for faster HTML/CSS coding with abbreviations.
Tags:- emmet
- html
- css
- snippets
- coding
Stable version
Copied!
How to start using emmet CDN
<!DOCTYPE html>
<html>
<head>
<title>Get started with emmet CDN - cdnhub.io</title>
<style>
/* Add your CSS here */
</style>
<script src="https://cdn.cdnhub.io/emmet/2.4.7/emmet.es.js"></script>
<script>
emmet.setOptions({
mode: 'html',
html: {
use_profiles: false,
expand_abbr: true
}
});
document.addEventListener('DOMContentLoaded', function() {
const abbrInput = document.querySelector('#abbr-input');
const expandButton = document.querySelector('#expand-button');
expandButton.addEventListener('click', function() {
const abbr = abbrInput.value;
const expanded = emmet.expand(abbr);
document.querySelector('#output').innerHTML = expanded;
});
});
</script>
</head>
<body>
<input type="text" id="abbr-input" placeholder="Type your Emmet abbreviation here" />
<button id="expand-button">Expand</button>
<div id="output"></div>
</body>
</html>
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!