Results: 1022
Relative to the font-size of the parent element (2em means 2 times the size of the parent font-size). We should be careful when we use
em
because if we have 3 containers nested inside of each other with
2em
, then the child element will have 8 times more font-size than it's grand parent container (it means they cascade)
https://www.w3schools.com/cssref/tryit.asp?filename=trycss_unit_em
https://youtu.be/-GR52czEd-0?t=279
Relative to 1% of the width of the viewport. If our browser viewport is set to 1,000 x 1,200 pixels, then:
1.5vw = 15px font size
1.5vh = 18px font size
1.5vmin = min(1.5vw, 1.5vh) = 15px font size
h1 {
    height: 500px;
    height: 100vh;
}
call JavaScript function using href attribute of <a>
<a href="javascript:get_next_10();">some link</a>
100, 200, 300, 400, 500, 600, 700, 800, 900 Defines from thin to thick characters. 400 is the same as normal, and 700 is the same as bold. In earlier versions of the font-weight specification, the property accepts only keyword values and the numeric values 100, 200, 300, 400, 500, 600, 700, 800, and 900; non-variable fonts can only really make use of these set values, although fine-grained values (e.g. 451) will be translated to one of these values for non-variable fonts using the Fallback weights system
date format: yyyy-mm-dd
MySQL:
SELECT CONVERT(varchar, getdate(), 23)
MSSQL:
SELECT DATE_FORMAT(curdate(), "%Y-%m-%d");
h1 { font-family: Arial, Helvetica, sans-serif; }
The
font-family
property should hold several font names as a "fallback" system, to ensure maximum compatibility between browsers/operating systems. If the browser does not support the first font, it tries the next font. Start with the font you want, and end with a generic family, to let the browser pick a similar font in the generic family, if no other fonts are available
These tags are used to style its content differently
<header>
and
<footer>
elements can be used in
<article>
. Example:
<article>
    <header>
        <h2>some header</h2>
    </header>
    <p> some paragraph</p>
    <p> some other paragraph</p>
    <footer>
        written by Quentin Watt
    </footer>
</article>
Warning: The type attribute for the style element is not needed and should be omitted
<style type="text/css">
Results: 1022