Links
What is a link?
A typical link is a fragment of text. When you click on it, you go to another page, open an image, start downloading a file, or move to some place on the current page.
You create links using the <a> tag. For example:
<a href="https://htmlacademy.org">HTML Academy</a>
The <a> tag can generally be used without an address, in other words, without the attribute href. This tag stands for “stub link”, which under other conditions may become just a regular link. Often, stub links are used to show that we are on the current page:
<ul>
<li><a>Page 1</a></li>
<li><a href="2">Page 2</a></li>
<li><a href="3">Page 3</a></li>
</ul>
When we remove the href attribute from the link, it is a best practice to leave a tooltip about why we did it. You can leave a tooltip using the title attribute. The tooltip will appear when you hover the cursor over the link for a little while.
Absolute links
If you need to create a link to another website on the Internet, then you need to use a “regular” address. This “normal” or full address is called the absolute address. It looks like the following, for example:
https://site.com/blog/index.html
Absolute addresses consist of at least three parts: the protocol, server name, and path.
Relative links
When you wish to link to a file that is stored locally on a computer, relative addresses are used. Unlike “regular” addresses, these relative links contain no website address. For example:
day-2.html
Relative addresses work not only for files on a computer, but also for pages on a network. If you place two files on the Internet (without changing their location relative to each other), then the relative links between them will still work.
If the address does not contain a server name or protocol, then this is a relative address.
Links to the file
Links not only take you places, but they also allow you to download files. To do this, simply write out the link to this file in the href attribute. In order to prevent files from being opened directly in the browser, the <a> tag should use download attribute.
<a href="file.pdf" download>The browser downloads me, but it will not attempt to read me</a>
In-page links
An in-page link is a regular link whose address contains the # character, which is immediately followed by the element id. The ID is created using the id attribute. It specifies where on the page you are taken when you click on the link.
<a href="#part1">Chapter 1</a>
The anchor link is used to scroll to a specified part of the page. It can also be used in absolute addresses.
Images
Displaying images
The <img> tag is used to load images. It has no closing tag, and the path to the image is assigned using the src attribute. For example:
<img src="logo.png">
Image formats
We have several basic image formats: JPEG, PNG, SVG and GIF.
The SVG format is used to present scalable vector graphics. The quality of such images does not change when they are resized, and they also have a small file size. This format is great for graphs, logos and icons that are not color intensive. This format is most often used in cases when it is necessary to scale an image in a lossless way, change the color of image elements, and animate parts of an image.
The JPEG format is suitable for photos, drawings with lots of colorful details, and images with smooth transitions between different brightness and contrast levels. When the image is compressed, its quality deteriorates.
The PNG image format allows you to save images with a high degree of clarity. The main feature of this image format is its support for transparency. It is suitable for images with transparency and translucency when it is necessary to preserve the increased accuracy of full-color images and for images with sharp color transitions.
The GIF image format is used for the simplest animations. Recently, GIF images have started to be used less frequently, since they have been replaced by other, more optimal formats.
Image dimensions
In order to control the width or height of the image, the attributes width and height are used. The dimensions are specified without units in these attributes.
<img src="logo.png" width="200" height="100">
If you specify only one of the dimensions, whether width or height, then the browser will calculate the second dimension independently based on the image proportions. If you specify both the height and the width at the same time, then the browser may display the image disproportionally.
The alt attribute
Alternate text is specified for cases where the image cannot be displayed in order to make it clear what is being shown. In addition, alternative text helps websites remain accessible, for example, to the category of users who cannot see images.
The alternate text for the image is assigned using the attribute alt. For example:
<img src="cat.png" alt="A cat that walks by himself">
Figure and figcaption
The <figure> tag is suitable for any illustrative or demonstrative material that may supplement the content of the document, such as graphs, images, code examples, tables, and so on.
We also have the <figcaption> tag that is used to mark up an explanatory comment to this illustrative material. This is placed as the first or last element inside <figure>. For example:
<figure>
Graph, image, diagram or code
<figcaption>Caption for the content</figcaption>
</figure>
Image link
You can create more than just text links. You can also format images as links. To do this, you need to wrap the <img> tag in the <a> tag. For example:
<a href="http://keksby.ru">
<img src="cat.png" alt="Muffin">
</a>
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 “Links and Images” — Links and images — HTML Academy</title><meta name="csrf-token" content="26764caf322823086fca37a7326b9bd2a54"><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/links-and-images/summary"><meta name="theme-color" content="#2f358f"></head><body class="course-interface course-interface--light course-interface--full" data-base="/assets/courses/15/"><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/links-and-images/title-attribute">Links with a blank href, title attribute</a><div class="main-nav__course-item main-nav__course-list main-nav__course-list--collapsed"><b class="main-nav__course-title">Links and images</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/links-and-images">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/links-and-images/a-tag">1. What is a link? The a tag</a></li><li class="main-nav__course-contents-item"><a href="/courses/html-css-basics/links-and-images/relative-addresses">2. Relative addresses</a></li><li class="main-nav__course-contents-item"><a href="/courses/html-css-basics/links-and-images/absolute-addresses">3. Absolute addresses</a></li><li class="main-nav__course-contents-item"><a href="/courses/html-css-basics/links-and-images/file-link">4. Link to the file</a></li><li class="main-nav__course-contents-item"><a href="/courses/html-css-basics/links-and-images/anchor-link">5. An in-page link</a></li><li class="main-nav__course-contents-item"><a href="/courses/html-css-basics/links-and-images/img-tag">6. The img tag for images</a></li><li class="main-nav__course-contents-item"><a href="/courses/html-css-basics/links-and-images/svg-format">7. Image formats, SVG format</a></li><li class="main-nav__course-contents-item"><a href="/courses/html-css-basics/links-and-images/jpeg-format">8. JPEG format</a></li><li class="main-nav__course-contents-item"><a href="/courses/html-css-basics/links-and-images/png-format">9. PNG format</a></li><li class="main-nav__course-contents-item"><a href="/courses/html-css-basics/links-and-images/gif-format">10. GIF format</a></li><li class="main-nav__course-contents-item"><a href="/courses/html-css-basics/links-and-images/image-dimensions">11. Image dimensions</a></li><li class="main-nav__course-contents-item"><a href="/courses/html-css-basics/links-and-images/alt-attribute">12. alt attribute</a></li><li class="main-nav__course-contents-item"><a href="/courses/html-css-basics/links-and-images/image-link">13. Image link</a></li><li class="main-nav__course-contents-item"><a href="/courses/html-css-basics/links-and-images/figure-figcaption-tags">14. The figure and figcaption tags, demonstrative material</a></li><li class="main-nav__course-contents-item"><a href="/courses/html-css-basics/links-and-images/title-attribute">15. Links with a blank href, title attribute</a></li><li class="main-nav__course-contents-item main-nav__course-contents-item--current"><a href="/courses/html-css-basics/links-and-images/summary">16. Summary of “Links and Images”</a></li><li class="main-nav__course-contents-item"><a href="/courses/html-css-basics/links-and-images/cat-tours-travel-agency-gallery">17. Test: Cat tours travel agency gallery</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/links-and-images/cat-tours-travel-agency-gallery">Test: Cat tours travel agency gallery</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%2Flinks-and-images%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%2Flinks-and-images%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 “Links and Images”</h1><div class="course-theory__content-text"><h2>Links</h2><h3>What is a link?</h3><p>A typical link is a fragment of text. When you click on it, you go to another page, open an image, start downloading a file, or move to some place on the current page.</p><p>You create links using the <code><a></code> tag. For example:</p><pre><code><a href="https://htmlacademy.org">HTML Academy</a></code></pre><p>The <code><a></code> tag can generally be used without an address, in other words, without the attribute <code>href</code>. This tag stands for “stub link”, which under other conditions may become just a regular link. Often, stub links are used to show that we are on the current page:</p><pre><code><ul>
<li><a>Page 1</a></li>
<li><a href="2">Page 2</a></li>
<li><a href="3">Page 3</a></li>
</ul></code></pre><p>When we remove the <code>href</code> attribute from the link, it is a best practice to leave a tooltip about why we did it. You can leave a tooltip using the <i>title</i> attribute. The tooltip will appear when you hover the cursor over the link for a little while.</p><h3>Absolute links</h3><p>If you need to create a link to another website on the Internet, then you need to use a “regular” address. This “normal” or full address is called the absolute address. It looks like the following, for example:</p><pre><code>https://site.com/blog/index.html</code></pre><p>Absolute addresses consist of at least three parts: the protocol, server name, and path.</p><h3>Relative links</h3><p>When you wish to link to a file that is stored locally on a computer, relative addresses are used. Unlike “regular” addresses, these relative links contain no website address. For example:</p><pre><code>day-2.html</code></pre><p>Relative addresses work not only for files on a computer, but also for pages on a network. If you place two files on the Internet (without changing their location relative to each other), then the relative links between them will still work.</p><p>If the address does not contain a server name or protocol, then this is a relative address.</p><h3>Links to the file</h3><p>Links not only take you places, but they also allow you to download files. To do this, simply write out the link to this file in the <code>href</code> attribute. In order to prevent files from being opened directly in the browser, the <code><a></code> tag should use <code>download</code> attribute.</p><pre><code><a href="file.pdf" download>The browser downloads me, but it will not attempt to read me</a></code></pre><h3>In-page links</h3><p>An in-page link is a regular link whose address contains the <code>#</code> character, which is immediately followed by the element id. The ID is created using the <code>id</code> attribute. It specifies where on the page you are taken when you click on the link.</p><pre><code><a href="#part1">Chapter 1</a></code></pre><p>The anchor link is used to scroll to a specified part of the page. It can also be used in absolute addresses.</p><h2>Images</h2><h3>Displaying images</h3><p>The <code><img></code> tag is used to load images. It has no closing tag, and the path to the image is assigned using the <code>src</code> attribute. For example:</p><pre><code><img src="logo.png"></code></pre><h3>Image formats</h3><p>We have several basic image formats: <code>JPEG</code>, <code>PNG</code>, <code>SVG</code> and <code>GIF</code>.</p><p>The <code>SVG</code> format is used to present scalable vector graphics. The quality of such images does not change when they are resized, and they also have a small file size. This format is great for graphs, logos and icons that are not color intensive. This format is most often used in cases when it is necessary to scale an image in a lossless way, change the color of image elements, and animate parts of an image.</p><p>The <code>JPEG</code> format is suitable for photos, drawings with lots of colorful details, and images with smooth transitions between different brightness and contrast levels. When the image is compressed, its quality deteriorates.</p><p>The <code>PNG</code> image format allows you to save images with a high degree of clarity. The main feature of this image format is its support for transparency. It is suitable for images with transparency and translucency when it is necessary to preserve the increased accuracy of full-color images and for images with sharp color transitions.</p><p>The <code>GIF</code> image format is used for the simplest animations. Recently, GIF images have started to be used less frequently, since they have been replaced by other, more optimal formats.</p><h3>Image dimensions</h3><p>In order to control the width or height of the image, the attributes <code>width</code> and <code>height</code> are used. The dimensions are specified without units in these attributes.</p><pre><code><img src="logo.png" width="200" height="100"></code></pre><p>If you specify only one of the dimensions, whether width or height, then the browser will calculate the second dimension independently based on the image proportions. If you specify both the height and the width at the same time, then the browser may display the image disproportionally.</p><h3>The alt attribute</h3><p>Alternate text is specified for cases where the image cannot be displayed in order to make it clear what is being shown. In addition, alternative text helps websites remain accessible, for example, to the category of users who cannot see images.</p><p>The alternate text for the image is assigned using the attribute <code>alt</code>. For example:</p><pre><code><img src="cat.png" alt="A cat that walks by himself"></code></pre><h3>Figure and figcaption</h3><p>The <code><figure></code> tag is suitable for any illustrative or demonstrative material that may supplement the content of the document, such as graphs, images, code examples, tables, and so on.</p><p>We also have the <code><figcaption></code> tag that is used to mark up an explanatory comment to this illustrative material. This is placed as the first or last element inside <code><figure></code>. For example:</p><pre><code><figure>
Graph, image, diagram or code
<figcaption>Caption for the content</figcaption>
</figure></code></pre><h3>Image link</h3><p>You can create more than just text links. You can also format images as links. To do this, you need to wrap the <code><img></code> tag in the <code><a></code> tag. For example:</p><pre><code><a href="http://keksby.ru">
<img src="cat.png" alt="Muffin">
</a>
</code></pre><br><a class="button button--green button--large button--wide button--icon" href="/courses/html-css-basics/links-and-images/cat-tours-travel-agency-gallery"><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%2Flinks-and-images%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%2Flinks-and-images%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%2Flinks-and-images%2Fsummary" autocomplete="off" method="post" data-submit="o"><input type="hidden" name="csrf_name" value="csrf69aebd56ed8f6"><input type="hidden" name="csrf_value" value="7820860d3dddb0840426e9927dbc4291"><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%2Flinks-and-images%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%2Flinks-and-images%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%2Flinks-and-images%2Fsummary" autocomplete="off" method="post"><input type="hidden" name="csrf_name" value="csrf69aebd56ed8f6"><input type="hidden" name="csrf_value" value="7820860d3dddb0840426e9927dbc4291"><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%2Flinks-and-images%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="csrf69aebd56ed8f6"><input type="hidden" name="csrf_value" value="7820860d3dddb0840426e9927dbc4291"><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>