Day093 — Things I learn when I do a small one-page website

Jacky Tsang
4 min readAug 6, 2019

--

Here is the list of things I learn / re-learn when I do a small static website. It turns out I forget a lot of things. Revision is much needed.

triangle shape clip mask using CSS:

draw triangle using CSS:

send email right from browser:

debug php in visual studio:

store data as csv in php:

download file using js:

submit form without refreshing the page:

https://www.ytsolution.in/submit-form-without-page-refresh-using-ajax/

input tag has extra 4px on the side:

box-sizing: border-box

image inside div has extra space below the image:

embed youtube in fixed ratio:

validate email in js:

check if digit only:

a_string.match(/^[0-9]*$/)

check value is null or empty:

can I use:

get form’s data with jQuery:

javascript promise:

show loading in form submit button:

align center

css selector

chinese web font

text align center

favicon:

CSS unit:

basic web

--

--

No responses yet