Skip to content

Instantly share code, notes, and snippets.

View osor0024's full-sized avatar

Natalia Osorio Cueto osor0024

View GitHub Profile
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>HTML Canvas Video</title>
<style>
video{
border: 4px solid cornflowerblue;
}
canvas{
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Drawing Lines and Curves in Canvas</title>
<style>
#canvas{
border: 1px solid #999;
margin: 1rem auto;
display: block;
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Bootstrap Grid and Layout</title>
<!-- https://getbootstrap.com/ -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
<link href="css/main.css" rel="stylesheet" />
</head>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>CSS Ellipsis</title>
<meta name="viewport" content="width=device-width">
<link rel="stylesheet" href="main.css"/>
<style>
/* handling text overflow with
Ellipsis
// forms.js
//
const init = function(){
document.getElementById('button-cancel').addEventListener('click', reset);
document.getElementById('button-send').addEventListener('click', send);
}
const reset = function(ev){
//HTML will automatically put the form back to its initial state
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Working with HTML Forms</title>
<meta name="viewport" content="width=device-width">
<style>
*,
*::after,
*:before{