CSS rules
CSS is a language for applying visual design to structured documents, such as HTML documents. The syntax of the language is a list of CSS rules. A CSS rule consists of a selector and a list of properties and their values:
selector {
property: value;
property: value;
}
The characters /* and */ are used in CSS for leaving comments.
Selectors
The selector can be found at the beginning of the CSS rule before the curly braces, and it determines which HTML elements are formatted using the properties and values from the rule.
.feature-kitten {
padding-top: 60px;
}
The simplest (and most popular) selectors are the tag and class selectors. Tag selectors are a tag name with no < and > characters and are applied to all matching tags. Class selectors start with a period followed by the class name, and they are applied to all tags with the matching class attribute.
h1 { color: red; }
.info { color: blue; }
There can be several of the same element on a page, and the styles will be applied to all instances of that element, including ones that we don’t want to change. In order to avoid such situations, it would be best for us not to use tag selectors or to use them as rarely as possible.
If the CSS rules differ only by their selectors, but they share the same properties and values, then they can be grouped together, separated by commas.
You can also combine any selector types by listing them with a space between them. These selectors are called descendant or contextual selectors, and we read them from right to left. For example:
nav a {…}
.menu ul {…}
.post .title {…}
Properties and values
The list of properties and values can be found inside the curly braces of the CSS rule. The property determines which appearance characteristic we want to change, and the value determines how it is changed.
.feature-kitten {
padding-top: 60px;
}
Every time we add a new property or change its value, we change something on the page.
Inheritance
CSS inheritance is the mechanism by which the property values of a parent element are transmitted to its children elements. Some styles that are assigned to a single element are inherited by all of its children (nested elements), but only if they are not explicitly redefined somewhere else.
Composite properties
There are normal properties in the CSS that control a single display parameter, and there are composite properties that control several parameters simultaneously. For example, font property. It assigns six parameters at once: font size and name, line height, and some others.
font: 16px/26px "Arial", sans-serif;
If the value for the normal property was not specified in the composite property, then the browser uses the original value of this property during the decoding process.
Types of values: Absolute and relative
Absolute units of measurement are tied to real physical dimensions, and they are connected to each other by rigid proportions. Pixels, px, are the most commonly used. The other absolute units of measurement are almost never used. Examples of absolute units of measurement:
font-size: 1cm;
font-size: 10mm;
font-size: 38px;
Relative units of measurement describe values that depend on other values. For example, the width element depends on the percentage width of the parent element, and the width element in em depends on the font size of the element itself. The units em, rem, vh, vw, and several others are relative, and certain others are understood to be percentages.
Default styles
If you do not write a rule to style an element, it will still be assigned some sort of styling. For example, the <ul> list has margins and markers. These styles are called default styles, and they are initially set by the browser’s internal stylesheet. They can be overridden or reset by setting different property values for the element.
The cascade
When the browser renders the page, it must determine the final appearance of each HTML element. To do this, it collects all of the CSS rules that apply to each element, because, several CSS rules can affect the element at the same time. The mechanism that is used to combine styles from different sources into a final set of properties and values for each tag is called the cascade. For example, we have the following element in the markup:
<p class="beloved-color">Green is my favorite color</p>
Assigned styles:
.beloved-color { color: green; }
Browser default styles:
margin: 1em 0;
Final styles:
color: green;
margin: 1em 0;
Property conflict
Several CSS rules can affect a single element. If the same properties exist with different values in these rules, then a conflict arises. For example:
ul { list-style: disc; }
.blog-navigation ul { list-style: none; }
The browser needs to somehow decide what the final values of the conflicting properties will be. The conflict is resolved in a maximum of three steps. If the conflict cannot be resolved in the current step, then the process moves to the next step. Here are the steps:
- The priority levels of the style files that contain conflicting properties are compared. For example, custom styles (that is, the ones we created) are given priority over browser ones.
- The specificity of the selectors for CSS rules with conflicting properties is compared. For example, the class selector is more specific than the tag selector.
- The property that is located lower in the code wins.
The cascade also works within CSS rules.
Embedding and invoking external styles
External styles are invoked via the tag <link>
<link rel="stylesheet" href="style.css">
Embedding styles in the <style> tag. It is usually placed inside <head>:
<head>
<style>
CSS code
</style>
</head>
This method is used to optimize page loading times as the browser will not have to send additional requests to the server for the CSS file.
Embedding in the style attribute:
<div style="width: 50%;"></div>
The properties and values that are assigned in this way will be applied to just a single element.
Usually, using this method is considered to be bad practice. However, sometimes in exceptional cases it is more convenient to embed styles in the style attribute than to write out separate CSS rules.
Continue
<!DOCTYPE html><html lang="en" class="no-js"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><script>var b=document.documentElement.classList;b.remove('no-js');if(!window.Promise||!window.sessionStorage||!!sessionStorage.getItem('muller.v2')){b.add('muller')}</script><link rel="dns-prefetch" href="https://assets.htmlacademy.org"><script async src="https://www.googletagmanager.com/gtag/js?id=G-MXPCRXM48C"></script><script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-MXPCRXM48C');
</script><script type="text/javascript">
(function(e,t){var n=e.amplitude||{_q:[],_iq:{}};var r=t.createElement("script")
;r.type="text/javascript"
;r.integrity="sha384-d/yhnowERvm+7eCU79T/bYjOiMmq4F11ElWYLmt0ktvYEVgqLDazh4+gW9CKMpYW"
;r.crossOrigin="anonymous";r.async=true
;r.src="https://cdn.amplitude.com/libs/amplitude-5.2.2-min.gz.js"
;r.onload=function(){if(!e.amplitude.runQueuedFunctions){
console.log("[Amplitude] Error: could not load SDK")}}
;var i=t.getElementsByTagName("script")[0];i.parentNode.insertBefore(r,i)
;function s(e,t){e.prototype[t]=function(){
this._q.push([t].concat(Array.prototype.slice.call(arguments,0)));return this}}
var o=function(){this._q=[];return this}
;var a=["add","append","clearAll","prepend","set","setOnce","unset"]
;for(var u=0;u<a.length;u++){s(o,a[u])}n.Identify=o;var c=function(){this._q=[]
;return this}
;var l=["setProductId","setQuantity","setPrice","setRevenueType","setEventProperties"]
;for(var p=0;p<l.length;p++){s(c,l[p])}n.Revenue=c
;var d=["init","logEvent","logRevenue","setUserId","setUserProperties","setOptOut","setVersionName","setDomain","setDeviceId","setGlobalUserProperties","identify","clearUserProperties","setGroup","logRevenueV2","regenerateDeviceId","groupIdentify","onInit","logEventWithTimestamp","logEventWithGroups","setSessionId","resetSessionId"]
;function v(e){function t(t){e[t]=function(){
e._q.push([t].concat(Array.prototype.slice.call(arguments,0)))}}
for(var n=0;n<d.length;n++){t(d[n])}}v(n);n.getInstance=function(e){
e=(!e||e.length===0?"$default_instance":e).toLowerCase()
;if(!n._iq.hasOwnProperty(e)){n._iq[e]={_q:[]};v(n._iq[e])}return n._iq[e]}
;e.amplitude=n})(window,document);
amplitude.getInstance().init("df11525b6880a3c5e2af14f9b6238408", null,{
includeUtm: true,
includeGclid: true,
includeReferrer: true,
deviceIdFromUrlParam: true
}, function (instance) {
window.amplitudeLoaded = true;
});
</script><link rel="stylesheet" href="https://assets.htmlacademy.org/css/core.v284.css"><link rel="stylesheet" href="https://assets.htmlacademy.org/css/profile.v236.css"><link rel="stylesheet" href="https://assets.htmlacademy.org/css/course.v246.css"><link rel="stylesheet" href="https://assets.htmlacademy.org/css/course-interface-light.v20.css"><link rel="stylesheet" href="https://assets.htmlacademy.org/css/course-interface-en.v2.css"><script src="https://assets.htmlacademy.org/js/sentry.js" data-sentry="3774884cc81746ed84c0ba7c5cd4ac7b" data-project="26" data-version="2"></script><link rel="stylesheet" href="/css/custom.css"><link rel="stylesheet" href="/css/cookies.css"><link rel="preload" as="script" href="https://assets.htmlacademy.org/js/general.v274.js"><title>Summary of “CSS fundamentals” — CSS essentials — HTML Academy</title><meta name="csrf-token" content="28464caf322823086fca37a7326b9bd2a54"><meta property="og:type" content="website"><meta property="og:site_name" content="HTML Academy"><meta name="twitter:url" property="og:url" content="https://htmlacademy.org"><meta name="twitter:title" property="og:title" content="Interactive online courses HTML Academy"><meta name="twitter:description" property="og:description" content="Together we’ll learn how to work with real code, solve true-to-life problems, use cutting edge technologies. Minimum of boring theory and lots of practical tasks."><meta name="twitter:image" property="og:image" content="https://htmlacademy.org/og/htmlacademy.png"><meta name="twitter:card" content="summary_large_image"><link rel="canonical" href="https://htmlacademy.org/courses/html-css-basics/css-essentials/summary"><meta name="theme-color" content="#2f358f"></head><body class="course-interface course-interface--light course-interface--full" data-base="/assets/courses/16/"><header class="page-header page-header--course"><div class="page-header__inner"><div class="page-header__top"><a class="page-header__logo" href="/" aria-label="HTML Academy Home"><img src="https://assets.htmlacademy.org/img/logo--small.svg?cs=1218aec0be4a5f23db79ad29a14e30f7f9fb9a25" width="24" height="36" alt="HTML Academy"></a><nav class="main-nav main-nav--mini" role="navigation"><div class="main-nav__course-nav"><a class="main-nav__course-item main-nav__course-button main-nav__course-button--prev" href="/courses/html-css-basics/css-essentials/embedded-styles-style-attribute">Embedded styles and the style attribute</a><div class="main-nav__course-item main-nav__course-list main-nav__course-list--collapsed"><b class="main-nav__course-title">CSS essentials</b><span class="main-nav__course-stat">16/17</span><div class="main-nav__course-contents"><a class="main-nav__course-contents-link" href="/courses/html-css-basics/css-essentials">Back to the list of tasks</a><ul class="main-nav__course-contents-list"><li class="main-nav__course-contents-item"><a href="/courses/html-css-basics/css-essentials/css-rules">1. CSS rules</a></li><li class="main-nav__course-contents-item"><a href="/courses/html-css-basics/css-essentials/css-selectors">2. Selectors</a></li><li class="main-nav__course-contents-item"><a href="/courses/html-css-basics/css-essentials/css-properties-values">3. Properties and values</a></li><li class="main-nav__course-contents-item"><a href="/courses/html-css-basics/css-essentials/css-inheritance">4. Inheritance</a></li><li class="main-nav__course-contents-item"><a href="/courses/html-css-basics/css-essentials/css-inheritable-properties">5. Inheritable properties</a></li><li class="main-nav__course-contents-item"><a href="/courses/html-css-basics/css-essentials/css-non-inheritable-properties">6. Non-inheritable properties</a></li><li class="main-nav__course-contents-item"><a href="/courses/html-css-basics/css-essentials/css-shorthand-properties">7. Shorthand properties</a></li><li class="main-nav__course-contents-item"><a href="/courses/html-css-basics/css-essentials/absolute-relative-values">8. Types of values: Absolute and relative</a></li><li class="main-nav__course-contents-item"><a href="/courses/html-css-basics/css-essentials/tag-class-selectors">9. Tag and class selectors</a></li><li class="main-nav__course-contents-item"><a href="/courses/html-css-basics/css-essentials/nested-selectors">10. Nested selectors</a></li><li class="main-nav__course-contents-item"><a href="/courses/html-css-basics/css-essentials/default-styles">11. Default styles</a></li><li class="main-nav__course-contents-item"><a href="/courses/html-css-basics/css-essentials/css-cascade">12. Cascade</a></li><li class="main-nav__course-contents-item"><a href="/courses/html-css-basics/css-essentials/css-property-conflict">13. Property conflict</a></li><li class="main-nav__course-contents-item"><a href="/courses/html-css-basics/css-essentials/css-multiple-classes">14. Multiple classes</a></li><li class="main-nav__course-contents-item"><a href="/courses/html-css-basics/css-essentials/embedded-styles-style-attribute">15. Embedded styles and the style attribute</a></li><li class="main-nav__course-contents-item main-nav__course-contents-item--current"><a href="/courses/html-css-basics/css-essentials/summary">16. Summary of “CSS fundamentals”</a></li><li class="main-nav__course-contents-item"><a href="/courses/html-css-basics/css-essentials/travel-gallery-appearance">17. Test: Travel gallery. Appearance</a></li></ul></div></div><a class="main-nav__course-item main-nav__course-button main-nav__course-button--next" href="/courses/html-css-basics/css-essentials/travel-gallery-appearance">Test: Travel gallery. Appearance</a></div><ul class="main-nav__list main-nav__list--user main-nav__list--user-guest"><li class="main-nav__item" itemprop="name"><a class="main-nav__link" href="/signup?redirect_url=%2Fcourses%2Fhtml-css-basics%2Fcss-essentials%2Fsummary" title="Sign up" data-modal="open" data-value="register" itemprop="url"><span class="main-nav__icon" aria-hidden="true"><svg aria-hidden="true"><use xlink:href="/img/sprites/general.svg#user"></use></svg></span>Sign up</a></li><li class="main-nav__item main-nav__item--login" itemprop="name"><a class="main-nav__link" href="/login?redirect_url=%2Fcourses%2Fhtml-css-basics%2Fcss-essentials%2Fsummary" title="Log in" data-modal="open" data-value="login" itemprop="url"><span class="main-nav__icon" aria-hidden="true"><svg aria-hidden="true"><use xlink:href="/img/sprites/general.svg#login"></use></svg></span>Log in</a></li></ul></nav></div></div></header><main class="course-container"><div class="course-theory"><div class="course-theory__inner"><section class="course-theory__content"><h1 class="course-theory__content-heading course-theory__content-heading--synopsis">Summary of “CSS fundamentals”</h1><div class="course-theory__content-text"><h2>CSS rules</h2><p>CSS is a language for applying visual design to structured documents, such as HTML documents. The syntax of the language is a list of CSS rules. A CSS rule consists of a selector and a list of properties and their values:</p><pre><code>selector {
property: value;
property: value;
}</code></pre><p>The characters <code>/*</code> and <code></code><code>*/</code> are used in CSS for leaving comments.</p><h2>Selectors</h2><p>The selector can be found at the beginning of the CSS rule before the curly braces, and it determines which HTML elements are formatted using the properties and values from the rule.</p><pre><code>.feature-kitten {
padding-top: 60px;
}</code></pre><p>The simplest (and most popular) selectors are the tag and class selectors. Tag selectors are a tag name with no <code><</code> and <code>></code> characters and are applied to all matching tags. Class selectors start with a period followed by the class name, and they are applied to all tags with the matching <code>class</code> attribute.</p><pre><code>h1 { color: red; }
.info { color: blue; }</code></pre><p>There can be several of the same element on a page, and the styles will be applied to all instances of that element, including ones that we don’t want to change. In order to avoid such situations, it would be best for us not to use tag selectors or to use them as rarely as possible.</p><p>If the CSS rules differ only by their selectors, but they share the same properties and values, then they can be grouped together, separated by commas.</p><p>You can also combine any selector types by listing them with a space between them. These selectors are called descendant or contextual selectors, and we read them from right to left. For example:</p><pre><code>nav a {…}
.menu ul {…}
.post .title {…}</code></pre><h2>Properties and values</h2><p>The list of properties and values can be found inside the curly braces of the CSS rule. The property determines which appearance characteristic we want to change, and the value determines how it is changed.</p><pre><code>.feature-kitten {
padding-top: 60px;
}</code></pre><p>Every time we add a new property or change its value, we change something on the page.</p><h2>Inheritance</h2><p>CSS inheritance is the mechanism by which the property values of a parent element are transmitted to its children elements. Some styles that are assigned to a single element are inherited by all of its children (nested elements), but only if they are not explicitly redefined somewhere else.</p><h2>Composite properties</h2><p>There are normal properties in the CSS that control a single display parameter, and there are composite properties that control several parameters simultaneously. For example, <code>font</code> property. It assigns six parameters at once: font size and name, line height, and some others.</p><pre><code>font: 16px/26px "Arial", sans-serif;</code></pre><p>If the value for the normal property was not specified in the composite property, then the browser uses the original value of this property during the decoding process.</p><h2>Types of values: Absolute and relative</h2><p>Absolute units of measurement are tied to real physical dimensions, and they are connected to each other by rigid proportions. Pixels, <code>px</code>, are the most commonly used. The other absolute units of measurement are almost never used. Examples of absolute units of measurement:</p><pre><code>font-size: 1cm;
font-size: 10mm;
font-size: 38px;</code></pre><p>Relative units of measurement describe values that depend on other values. For example, the width element depends on the percentage width of the parent element, and the width element in <code>em</code> depends on the font size of the element itself. The units <code>em</code>, <code>rem</code>, <code>vh</code>, <code>vw</code>, and several others are relative, and certain others are understood to be percentages.</p><h2>Default styles</h2><p>If you do not write a rule to style an element, it will still be assigned some sort of styling. For example, the <code><ul></code> list has margins and markers. These styles are called default styles, and they are initially set by the browser’s internal stylesheet. They can be overridden or reset by setting different property values for the element.</p><h2>The cascade</h2><p>When the browser renders the page, it must determine the final appearance of each HTML element. To do this, it collects all of the CSS rules that apply to each element, because, several CSS rules can affect the element at the same time. The mechanism that is used to combine styles from different sources into a final set of properties and values for each tag is called the cascade. For example, we have the following element in the markup:</p><pre><code><p class="beloved-color">Green is my favorite color</p></code></pre><p>Assigned styles:</p><pre><code>.beloved-color { color: green; }</code></pre><p>Browser default styles:</p><pre><code>margin: 1em 0;</code></pre><p>Final styles:</p><pre><code>color: green;
margin: 1em 0;</code></pre><h2>Property conflict</h2><p>Several CSS rules can affect a single element. If the same properties exist with different values in these rules, then a conflict arises. For example:</p><pre><code>ul { list-style: disc; }
.blog-navigation ul { list-style: none; }</code></pre><p>The browser needs to somehow decide what the final values of the conflicting properties will be. The conflict is resolved in a maximum of three steps. If the conflict cannot be resolved in the current step, then the process moves to the next step. Here are the steps:</p><ol><li>The priority levels of the style files that contain conflicting properties are compared. For example, custom styles (that is, the ones we created) are given priority over browser ones.</li><li>The specificity of the selectors for CSS rules with conflicting properties is compared. For example, the class selector is more specific than the tag selector.</li><li>The property that is located lower in the code wins.</li></ol><p>The cascade also works within CSS rules.</p><h2>Embedding and invoking external styles</h2><p>External styles are invoked via the tag <code><link></code></p><pre><code><link rel="stylesheet" href="style.css"></code></pre><p>Embedding styles in the <code><style></code> tag. It is usually placed inside <code><head></code>:</p><pre><code><head>
<style>
CSS code
</style>
</head></code></pre><p>This method is used to optimize page loading times as the browser will not have to send additional requests to the server for the CSS file.</p><p>Embedding in the <code>style</code> attribute:</p><pre><code><div style="width: 50%;"></div></code></pre><p>The properties and values that are assigned in this way will be applied to just a single element.</p><p>Usually, using this method is considered to be bad practice. However, sometimes in exceptional cases it is more convenient to embed styles in the <code>style</code> attribute than to write out separate CSS rules.</p><br><a class="button button--green button--large button--wide button--icon" href="/courses/html-css-basics/css-essentials/travel-gallery-appearance"><svg aria-hidden="true"><use xlink:href="/img/sprites/general.svg#icon-check-bold"></use></svg>
Continue
</a></div></section></div></div><script
src="https://assets.htmlacademy.org/scripts/courses-spa/htmlacademy-task.v43.js"
data-assets-path="https://assets.htmlacademy.org/scripts/courses-spa/"
data-task-type="theory"
data-lang="en"
></script><script>HtmlacademyTask.setup(function(){});</script></main><footer class="page-footer page-footer--tiny"><div class="page-footer__inner"><p><a href="/docs/cookies">Cookies</a> ∙
<a href="/docs/privacy">Privacy</a> ∙
<a href="/docs/agreement">License Agreement</a> ∙
<a href="/docs/about">About</a> ∙
<a href="/contacts">Contacts</a> ∙
© HTML Academy OÜ, 2019−2026
</p><div class="page-footer__financial"><img src="https://assets.htmlacademy.org/img/visa-white.svg?cs=96e54ec8c587db9d4b1d8d328ffd87c2ebfd9555" alt="VISA" title="VISA" width="35" height="35"><img src="https://assets.htmlacademy.org/img/mastercard-horizontal.v2.svg" alt="Mastercard" title="Mastercard" width="35" height="35"></div></div></footer><div class="modal"><div class="modal__inner"><div class="modal__wrapper js-login hidden"><button class="modal__close icon-close" type="button" title="Close" data-modal="close"></button><h4 class="modal__header">Log in</h4><ul class="modal__social"><li class="modal__social-link modal__social-link--fb"><a href="/login/fb?redirect_url=%2Fcourses%2Fhtml-css-basics%2Fcss-essentials%2Fsummary" rel="nofollow" title="Log in via Facebook"><svg aria-hidden="true"><use xlink:href="/img/sprites/general.svg#facebook"></use></svg></a></li><li class="modal__social-link modal__social-link--google"><a href="/login/google?redirect_url=%2Fcourses%2Fhtml-css-basics%2Fcss-essentials%2Fsummary" rel="nofollow" title="Log in via Google"><svg height="30" width="30" viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path fill="#ffffff" d="M457.732 216.625c2.628 14.041 4.063 28.743 4.063 44.098C461.796 380.688 381.481 466 260.204 466c-116.023 0-210-93.977-210-210s93.977-210 210-210c56.704 0 104.077 20.867 140.44 54.73l-59.204 59.197v-.135c-22.046-21.002-50-31.762-81.236-31.762-69.297 0-125.604 58.537-125.604 127.841 0 69.29 56.306 127.968 125.604 127.968 62.87 0 105.653-35.965 114.46-85.312h-114.46v-81.902h197.528z"/></svg></a></li></ul><div class="modal__or"><span>or</span></div><form class="modal__form form" action="/login?redirect_url=%2Fcourses%2Fhtml-css-basics%2Fcss-essentials%2Fsummary" autocomplete="off" method="post" data-submit="o"><input type="hidden" name="csrf_name" value="csrf69aed4d7138fe"><input type="hidden" name="csrf_value" value="acfaaeacfbbea857c02a5e4d0a6b156e"><div class="form__group"><label class="sr-only" for="login-email">Email</label><input class="field field--text field--full-width" type="email" name="email" placeholder="Email" value="" id="login-email"></div><div class="form__group"><label class="sr-only" for="login-password">Password</label><input class="field field--text field--full-width ym-disable-keys" type="password" name="password" placeholder="Password" id="login-password"></div><input class="button button--full-width" type="submit" data-submit-text="Logging in…" value="Log in"></form><p class="modal__forgot-password"><a href="/recover" data-modal="open" data-value="recover">Forgot your password?</a></p><a class="modal__bottom-link" href="/signup" data-modal="open" data-value="register">Sign up</a></div><div class="modal__wrapper js-register hidden"><button class="modal__close icon-close" type="button" title="Close" data-modal="close"></button><h4 class="modal__header">Sign up</h4><ul class="modal__social"><li class="modal__social-link modal__social-link--fb"><a href="/login/fb?redirect_url=%2Fcourses%2Fhtml-css-basics%2Fcss-essentials%2Fsummary" rel="nofollow" title="Log in via Facebook"><svg aria-hidden="true"><use xlink:href="/img/sprites/general.svg#facebook"></use></svg></a></li><li class="modal__social-link modal__social-link--google"><a href="/login/google?redirect_url=%2Fcourses%2Fhtml-css-basics%2Fcss-essentials%2Fsummary" rel="nofollow" title="Log in via Google"><svg height="30" width="30" viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path fill="#ffffff" d="M457.732 216.625c2.628 14.041 4.063 28.743 4.063 44.098C461.796 380.688 381.481 466 260.204 466c-116.023 0-210-93.977-210-210s93.977-210 210-210c56.704 0 104.077 20.867 140.44 54.73l-59.204 59.197v-.135c-22.046-21.002-50-31.762-81.236-31.762-69.297 0-125.604 58.537-125.604 127.841 0 69.29 56.306 127.968 125.604 127.968 62.87 0 105.653-35.965 114.46-85.312h-114.46v-81.902h197.528z"/></svg></a></li></ul><div class="modal__or"><span>or</span></div><form class="modal__form form" action="/signup?redirect_url=%2Fcourses%2Fhtml-css-basics%2Fcss-essentials%2Fsummary" autocomplete="off" method="post"><input type="hidden" name="csrf_name" value="csrf69aed4d7138fe"><input type="hidden" name="csrf_value" value="acfaaeacfbbea857c02a5e4d0a6b156e"><div class="form__group"><label class="sr-only" for="email">
Email
<span class="required"><span class="sr-only">Required field</span><span class="required__star">*</span></span></label><div class="form__group-fields"><input class="field field--text field--full-width" type="email" name="email" value="" id="email" required placeholder="Email"></div></div><div class="form__group"><label class="sr-only" for="password">
Password
<span class="required"><span class="sr-only">Required field</span><span class="required__star">*</span></span></label><div class="form__group-fields"><input class="field field--text field--full-width" type="password" name="password" value="" id="password" required placeholder="Password"></div></div><div class="form__group"><label class="checkbox"><input class="checkbox__input" type="checkbox" name="agreement" value="1" required><span class="checkbox__text"><span>By signing up, you agree to our <a href="/docs/agreement" target="_blank">License Agreement</a> and <a href="/docs/privacy" target="_blank">Privacy Policy</a>.</span></span></label></div><input class="button button--full-width" type="submit" data-submit-text="Signing up…" value="Sign up"></form><a class="modal__bottom-link" href="/login?redirect_url=%2Fcourses%2Fhtml-css-basics%2Fcss-essentials%2Fsummary" data-modal="open" data-value="login">Log in</a></div><div class="modal__wrapper modal__wrapper--no-btn-bottom js-recover hidden"><button class="modal__close icon-close" type="button" title="Close" data-modal="close"></button><h4 class="modal__header">Restore access</h4><p class="modal__text-accent">Have you forgotten your password or lost access to your profile? Enter your email connected to your profile and we will send you a link to restore access.</p><form class="modal__form form" action="/recover" autocomplete="off" method="post" data-submit="o"><input type="hidden" name="csrf_name" value="csrf69aed4d7138fe"><input type="hidden" name="csrf_value" value="acfaaeacfbbea857c02a5e4d0a6b156e"><div class="form__group"><label class="sr-only" for="recovery-email">Email</label><input class="field field--text field--full-width" type="email" name="email" placeholder="Email" value="" id="recovery-email"></div><script src='https://www.google.com/recaptcha/api.js'></script><div class="form__group"><div class="g-recaptcha" data-sitekey="6LetCTEqAAAAANROWtPzfC7Rfg9iIRiRt2k2FPn7"></div></div><input class="button button--full-width" type="submit" data-submit-text="Sending…" value="Send"></form><p class="modal__text">Forgot to connect your email to the profile? Email us and we’ll help.</p></div></div></div><script async src="https://assets.htmlacademy.org/js/general.v274.js" data-assets="https://assets.htmlacademy.org" data-require="toggle,navigation-courses,modal,form,nav"></script></body></html>