diff --git a/files/en-us/games/techniques/2d_collision_detection/index.md b/files/en-us/games/techniques/2d_collision_detection/index.md index bbee16914b85745..929099bf7e4b29f 100644 --- a/files/en-us/games/techniques/2d_collision_detection/index.md +++ b/files/en-us/games/techniques/2d_collision_detection/index.md @@ -100,7 +100,7 @@ Crafty.c("Circle", { this.y + this.radius, this.radius, 0, - Math.PI * 2 + Math.PI * 2, ); ctx.closePath(); ctx.fill(); diff --git a/files/en-us/games/techniques/3d_collision_detection/bounding_volume_collision_detection_with_three.js/index.md b/files/en-us/games/techniques/3d_collision_detection/bounding_volume_collision_detection_with_three.js/index.md index d315ee75a843caf..57595b6dadf0301 100644 --- a/files/en-us/games/techniques/3d_collision_detection/bounding_volume_collision_detection_with_three.js/index.md +++ b/files/en-us/games/techniques/3d_collision_detection/bounding_volume_collision_detection_with_three.js/index.md @@ -19,13 +19,13 @@ To create a **`Box3` instance**, we need to provide the **lower and upper bounda ```js const knot = new THREE.Mesh( new THREE.TorusKnotGeometry(0.5, 0.1), - new MeshNormalMaterial({}) + new MeshNormalMaterial({}), ); knot.geometry.computeBoundingBox(); const knotBBox = new Box3( knot.geometry.boundingBox.min, - knot.geometry.boundingBox.max + knot.geometry.boundingBox.max, ); ``` @@ -36,7 +36,7 @@ A more simple alternative that fixes the previous issue is to set those boundari ```js const knot = new THREE.Mesh( new THREE.TorusKnotGeometry(0.5, 0.1), - new MeshNormalMaterial({}) + new MeshNormalMaterial({}), ); const knotBBox = new Box3(new THREE.Vector3(), new THREE.Vector3()); @@ -50,12 +50,12 @@ Instantiating **`Sphere` objects** is similar. We need to provide the sphere's c ```js const knot = new THREE.Mesh( new THREE.TorusKnotGeometry(0.5, 0.1), - new MeshNormalMaterial({}) + new MeshNormalMaterial({}), ); const knotBSphere = new Sphere( knot.position, - knot.geometry.boundingSphere.radius + knot.geometry.boundingSphere.radius, ); ``` @@ -144,7 +144,7 @@ To use it, we need to create a new `BoxHelper` instance and supply the geometry ```js const knot = new THREE.Mesh( new THREE.TorusKnotGeometry(0.5, 0.1), - new THREE.MeshNormalMaterial({}) + new THREE.MeshNormalMaterial({}), ); const knotBoxHelper = new THREE.BoxHelper(knot, 0x00ff00); scene.add(knotBoxHelper); diff --git a/files/en-us/games/techniques/3d_collision_detection/index.md b/files/en-us/games/techniques/3d_collision_detection/index.md index 22c585425be4423..7dc20922f620f7b 100644 --- a/files/en-us/games/techniques/3d_collision_detection/index.md +++ b/files/en-us/games/techniques/3d_collision_detection/index.md @@ -91,7 +91,7 @@ function isPointInsideSphere(point, sphere) { const distance = Math.sqrt( (point.x - sphere.x) * (point.x - sphere.x) + (point.y - sphere.y) * (point.y - sphere.y) + - (point.z - sphere.z) * (point.z - sphere.z) + (point.z - sphere.z) * (point.z - sphere.z), ); return distance < sphere.radius; } @@ -118,7 +118,7 @@ function intersect(sphere, other) { const distance = Math.sqrt( (sphere.x - other.x) * (sphere.x - other.x) + (sphere.y - other.y) * (sphere.y - other.y) + - (sphere.z - other.z) * (sphere.z - other.z) + (sphere.z - other.z) * (sphere.z - other.z), ); return distance < sphere.radius + other.radius; } @@ -143,7 +143,7 @@ function intersect(sphere, box) { const distance = Math.sqrt( (x - sphere.x) * (x - sphere.x) + (y - sphere.y) * (y - sphere.y) + - (z - sphere.z) * (z - sphere.z) + (z - sphere.z) * (z - sphere.z), ); return distance < sphere.radius; diff --git a/files/en-us/games/techniques/3d_on_the_web/building_up_a_basic_demo_with_a-frame/index.md b/files/en-us/games/techniques/3d_on_the_web/building_up_a_basic_demo_with_a-frame/index.md index cac3b1808d3b4c9..fcd7bb48728d3db 100644 --- a/files/en-us/games/techniques/3d_on_the_web/building_up_a_basic_demo_with_a-frame/index.md +++ b/files/en-us/games/techniques/3d_on_the_web/building_up_a_basic_demo_with_a-frame/index.md @@ -29,7 +29,7 @@ Let's start by setting up an environment to create something with A-Frame. We'll The first step is to create an HTML document — inside your project directory, create a new `index.html` file, and save the follow HTML inside it: ```html - +
diff --git a/files/en-us/games/techniques/3d_on_the_web/building_up_a_basic_demo_with_babylon.js/index.md b/files/en-us/games/techniques/3d_on_the_web/building_up_a_basic_demo_with_babylon.js/index.md index 13d923fa76b1076..19850fcae6ba371 100644 --- a/files/en-us/games/techniques/3d_on_the_web/building_up_a_basic_demo_with_babylon.js/index.md +++ b/files/en-us/games/techniques/3d_on_the_web/building_up_a_basic_demo_with_babylon.js/index.md @@ -24,7 +24,7 @@ To start developing with Babylon.js, you don't need much. You should start off b Here's the HTML structure we will use: ```html - + @@ -98,7 +98,7 @@ Now the setup code is in place we need to think about implementing the standard const camera = new BABYLON.FreeCamera( "camera", new BABYLON.Vector3(0, 0, -10), - scene + scene, ); ``` @@ -114,7 +114,7 @@ There are various [light sources](https://doc.babylonjs.com/divingDeeper/lights/ const light = new BABYLON.PointLight( "light", new BABYLON.Vector3(10, 10, 0), - scene + scene, ); ``` diff --git a/files/en-us/games/techniques/3d_on_the_web/building_up_a_basic_demo_with_playcanvas/engine/index.md b/files/en-us/games/techniques/3d_on_the_web/building_up_a_basic_demo_with_playcanvas/engine/index.md index 2c296cf29d576a3..aba296219a646b5 100644 --- a/files/en-us/games/techniques/3d_on_the_web/building_up_a_basic_demo_with_playcanvas/engine/index.md +++ b/files/en-us/games/techniques/3d_on_the_web/building_up_a_basic_demo_with_playcanvas/engine/index.md @@ -28,7 +28,7 @@ To start developing with PlayCanvas, you don't need much. You should start off b Here's the HTML structure we will use. ```html - + diff --git a/files/en-us/games/techniques/3d_on_the_web/building_up_a_basic_demo_with_three.js/index.md b/files/en-us/games/techniques/3d_on_the_web/building_up_a_basic_demo_with_three.js/index.md index 7cf98858a2f354b..7b1e20495140d7b 100644 --- a/files/en-us/games/techniques/3d_on_the_web/building_up_a_basic_demo_with_three.js/index.md +++ b/files/en-us/games/techniques/3d_on_the_web/building_up_a_basic_demo_with_three.js/index.md @@ -24,7 +24,7 @@ To start developing with Three.js, you don't need much. You should: Here's the HTML structure we will use: ```html - + diff --git a/files/en-us/games/techniques/3d_on_the_web/glsl_shaders/index.md b/files/en-us/games/techniques/3d_on_the_web/glsl_shaders/index.md index 90f601ca7c741a2..d161e7d27e306cf 100644 --- a/files/en-us/games/techniques/3d_on_the_web/glsl_shaders/index.md +++ b/files/en-us/games/techniques/3d_on_the_web/glsl_shaders/index.md @@ -47,7 +47,7 @@ To start with the WebGL shaders you don't need much. You should: Here's the HTML structure we will use. ```html - + diff --git a/files/en-us/games/techniques/audio_for_web_games/index.md b/files/en-us/games/techniques/audio_for_web_games/index.md index 0298e27f923e5c2..47eae0abfe90249 100644 --- a/files/en-us/games/techniques/audio_for_web_games/index.md +++ b/files/en-us/games/techniques/audio_for_web_games/index.md @@ -177,7 +177,7 @@ for (const button of buttons) { stopTime = button.getAttribute("data-stop"); myAudio.play(); }, - false + false, ); } @@ -188,7 +188,7 @@ myAudio.addEventListener( myAudio.pause(); } }, - false + false, ); ``` diff --git a/files/en-us/games/techniques/control_mechanisms/desktop_with_mouse_and_keyboard/index.md b/files/en-us/games/techniques/control_mechanisms/desktop_with_mouse_and_keyboard/index.md index 3facd3484ebbe55..d91fb6b9fc23463 100644 --- a/files/en-us/games/techniques/control_mechanisms/desktop_with_mouse_and_keyboard/index.md +++ b/files/en-us/games/techniques/control_mechanisms/desktop_with_mouse_and_keyboard/index.md @@ -105,7 +105,7 @@ const buttonEnclave = this.add.button( 10, "logo-enclave", this.clickEnclave, - this + this, ); ``` @@ -117,7 +117,7 @@ this.buttonShoot = this.add.button( 0, "button-alpha", null, - this + this, ); this.buttonShoot.onInputDown.add(this.shootingPressed, this); this.buttonShoot.onInputUp.add(this.shootingReleased, this); diff --git a/files/en-us/games/techniques/control_mechanisms/mobile_touch/index.md b/files/en-us/games/techniques/control_mechanisms/mobile_touch/index.md index 68bb7dfef0f4f1f..ff0d1a06fe94f6e 100644 --- a/files/en-us/games/techniques/control_mechanisms/mobile_touch/index.md +++ b/files/en-us/games/techniques/control_mechanisms/mobile_touch/index.md @@ -115,7 +115,7 @@ const buttonEnclave = this.add.button( 10, "logo-enclave", this.clickEnclave, - this + this, ); ``` @@ -129,7 +129,7 @@ this.buttonShoot = this.add.button( 0, "button-alpha", null, - this + this, ); this.buttonShoot.onInputDown.add(this.goShootPressed, this); this.buttonShoot.onInputUp.add(this.goShootReleased, this); diff --git a/files/en-us/games/techniques/control_mechanisms/other/index.md b/files/en-us/games/techniques/control_mechanisms/other/index.md index b7a3dfef182bc08..0ee9c8512fbb553 100644 --- a/files/en-us/games/techniques/control_mechanisms/other/index.md +++ b/files/en-us/games/techniques/control_mechanisms/other/index.md @@ -36,7 +36,7 @@ window.addEventListener( (event) => { console.log(event.keyCode); }, - true + true, ); ``` @@ -62,7 +62,7 @@ window.addEventListener( // … } }, - true + true, ); ``` diff --git a/files/en-us/games/techniques/tilemaps/square_tilemaps_implementation_colon__scrolling_maps/index.md b/files/en-us/games/techniques/tilemaps/square_tilemaps_implementation_colon__scrolling_maps/index.md index 6036ae0f5268526..354f1f1e426ea96 100644 --- a/files/en-us/games/techniques/tilemaps/square_tilemaps_implementation_colon__scrolling_maps/index.md +++ b/files/en-us/games/techniques/tilemaps/square_tilemaps_implementation_colon__scrolling_maps/index.md @@ -64,7 +64,7 @@ for (let c = startCol; c <= endCol; c++) { Math.round(x), // target x Math.round(y), // target y map.tsize, // target width - map.tsize // target height + map.tsize, // target height ); } } diff --git a/files/en-us/games/techniques/tilemaps/square_tilemaps_implementation_colon__static_maps/index.md b/files/en-us/games/techniques/tilemaps/square_tilemaps_implementation_colon__static_maps/index.md index 3d5e6af5f79f3c2..a7265bd0c054b53 100644 --- a/files/en-us/games/techniques/tilemaps/square_tilemaps_implementation_colon__static_maps/index.md +++ b/files/en-us/games/techniques/tilemaps/square_tilemaps_implementation_colon__static_maps/index.md @@ -84,7 +84,7 @@ for (let c = 0; c < map.cols; c++) { c * map.tsize, // target x r * map.tsize, // target y map.tsize, // target width - map.tsize // target height + map.tsize, // target height ); } } diff --git a/files/en-us/games/tutorials/2d_breakout_game_phaser/buttons/index.md b/files/en-us/games/tutorials/2d_breakout_game_phaser/buttons/index.md index 71c12265efcc453..4be0bf3dc939ef3 100644 --- a/files/en-us/games/tutorials/2d_breakout_game_phaser/buttons/index.md +++ b/files/en-us/games/tutorials/2d_breakout_game_phaser/buttons/index.md @@ -46,7 +46,7 @@ startButton = game.add.button( this, 1, 0, - 2 + 2, ); startButton.anchor.set(0.5); ``` diff --git a/files/en-us/games/tutorials/2d_breakout_game_phaser/extra_lives/index.md b/files/en-us/games/tutorials/2d_breakout_game_phaser/extra_lives/index.md index 2b9f2804e68a741..9b0cd87f907c358 100644 --- a/files/en-us/games/tutorials/2d_breakout_game_phaser/extra_lives/index.md +++ b/files/en-us/games/tutorials/2d_breakout_game_phaser/extra_lives/index.md @@ -38,7 +38,7 @@ lifeLostText = game.add.text( game.world.width * 0.5, game.world.height * 0.5, "Life lost, click to continue", - { font: "18px Arial", fill: "#0095DD" } + { font: "18px Arial", fill: "#0095DD" }, ); lifeLostText.anchor.set(0.5); lifeLostText.visible = false; @@ -64,14 +64,14 @@ livesText = game.add.text( game.world.width - 5, 5, `Lives: ${lives}`, - textStyle + textStyle, ); livesText.anchor.set(1, 0); lifeLostText = game.add.text( game.world.width * 0.5, game.world.height * 0.5, "Life lost, click to continue", - textStyle + textStyle, ); lifeLostText.anchor.set(0.5); lifeLostText.visible = false; diff --git a/files/en-us/games/tutorials/2d_breakout_game_phaser/initialize_the_framework/index.md b/files/en-us/games/tutorials/2d_breakout_game_phaser/initialize_the_framework/index.md index 79a2dd5eab71f2b..5c5d5706bdf6f18 100644 --- a/files/en-us/games/tutorials/2d_breakout_game_phaser/initialize_the_framework/index.md +++ b/files/en-us/games/tutorials/2d_breakout_game_phaser/initialize_the_framework/index.md @@ -17,7 +17,7 @@ Before we can start writing the game's functionality, we need to create a basic The HTML document structure is quite simple, as the game will be rendered entirely on the {{htmlelement("canvas")}} element generated by the framework. Using your favorite text editor, create a new HTML document, save it as `index.html`, in a sensible location, and add the following code to it: ```html - + diff --git a/files/en-us/games/tutorials/2d_breakout_game_phaser/player_paddle_and_controls/index.md b/files/en-us/games/tutorials/2d_breakout_game_phaser/player_paddle_and_controls/index.md index bc3577b18fcbf90..3748fed46689024 100644 --- a/files/en-us/games/tutorials/2d_breakout_game_phaser/player_paddle_and_controls/index.md +++ b/files/en-us/games/tutorials/2d_breakout_game_phaser/player_paddle_and_controls/index.md @@ -46,7 +46,7 @@ Next up, we will initialize our paddle by adding the following `add.sprite()` ca paddle = game.add.sprite( game.world.width * 0.5, game.world.height - 5, - "paddle" + "paddle", ); ``` diff --git a/files/en-us/games/tutorials/2d_breakout_game_pure_javascript/create_the_canvas_and_draw_on_it/index.md b/files/en-us/games/tutorials/2d_breakout_game_pure_javascript/create_the_canvas_and_draw_on_it/index.md index f7dce00989b01f0..bffb99ff63ef1a1 100644 --- a/files/en-us/games/tutorials/2d_breakout_game_pure_javascript/create_the_canvas_and_draw_on_it/index.md +++ b/files/en-us/games/tutorials/2d_breakout_game_pure_javascript/create_the_canvas_and_draw_on_it/index.md @@ -17,7 +17,7 @@ Before we can start writing the game's functionality, we need to create a basic The HTML document structure is quite simple, as the game will be rendered entirely on the {{htmlelement("canvas")}} element. Using your favorite text editor, create a new HTML document, save it as `index.html`, in a sensible location, and add the following code to it: ```html - + diff --git a/files/en-us/games/tutorials/html5_gamedev_phaser_device_orientation/index.md b/files/en-us/games/tutorials/html5_gamedev_phaser_device_orientation/index.md index c6f342e0cf66eb8..179230d20c06dcc 100644 --- a/files/en-us/games/tutorials/html5_gamedev_phaser_device_orientation/index.md +++ b/files/en-us/games/tutorials/html5_gamedev_phaser_device_orientation/index.md @@ -35,7 +35,7 @@ You can open the index file in your favorite browser to launch the game and try We will be rendering our game on Canvas, but we won't do it manually — this will be taken care of by the framework. Let's set it up: our starting point is the `index.html` file with the following content. You can create this yourself if you want to follow along: ```html - + @@ -135,12 +135,12 @@ Ball.Preloader.prototype = { this.preloadBg = this.add.sprite( (Ball._WIDTH - 297) * 0.5, (Ball._HEIGHT - 145) * 0.5, - "preloaderBg" + "preloaderBg", ); this.preloadBar = this.add.sprite( (Ball._WIDTH - 158) * 0.5, (Ball._HEIGHT - 50) * 0.5, - "preloaderBar" + "preloaderBar", ); this.load.setPreloadSprite(this.preloadBar); @@ -181,7 +181,7 @@ Ball.MainMenu.prototype = { this, 2, 0, - 1 + 1, ); this.startButton.anchor.set(0.5, 0); this.startButton.input.useHandCursor = true; @@ -218,7 +218,7 @@ Ball.Howto.prototype = { 0, "screen-howtoplay", this.startGame, - this + this, ); }, startGame() { @@ -400,14 +400,14 @@ this.physics.arcade.collide( this.borderGroup, this.wallCollision, null, - this + this, ); this.physics.arcade.collide( this.ball, this.levels[this.level - 1], this.wallCollision, null, - this + this, ); ``` @@ -463,13 +463,13 @@ this.timerText = this.game.add.text( 15, 15, `Time: ${this.timer}`, - this.fontBig + this.fontBig, ); this.totalTimeText = this.game.add.text( 120, 30, `Total time: ${this.totalTimer}`, - this.fontSmall + this.fontSmall, ); ``` diff --git a/files/en-us/glossary/css_selector/index.md b/files/en-us/glossary/css_selector/index.md index 2942938c64b3ed7..055467b9d840c81 100644 --- a/files/en-us/glossary/css_selector/index.md +++ b/files/en-us/glossary/css_selector/index.md @@ -26,7 +26,11 @@ div.warning { } #customized { - font: 16px Lucida Grande, Arial, Helvetica, sans-serif; + font: + 16px Lucida Grande, + Arial, + Helvetica, + sans-serif; } ``` diff --git a/files/en-us/glossary/entity/index.md b/files/en-us/glossary/entity/index.md index 2cf00d94323f0a1..54590f91d06cb22 100644 --- a/files/en-us/glossary/entity/index.md +++ b/files/en-us/glossary/entity/index.md @@ -25,9 +25,9 @@ To display these characters as text, replace them with their corresponding chara | | ` ` | Interpreted as the non breaking space. | | – | `–` | Interpreted as the en dash (half the width of an em unit). | | — | `—` | Interpreted as the em dash (equal to width of an "m" character). | -| © | `©` | Interpreted as the copyright sign. | -| ® | `®` | Interpreted as the registered sign. | -| ™ | `™` | Interpreted as the trademark sign. | +| © | `©` | Interpreted as the copyright sign. | +| ® | `®` | Interpreted as the registered sign. | +| ™ | `™` | Interpreted as the trademark sign. | | ≈ | `≈` | Interpreted as almost equal to sign. | | ≠ | `≠` | Interpreted as not equal to sign. | | £ | `£` | Interpreted as the pound symbol. | diff --git a/files/en-us/glossary/xhtml/index.md b/files/en-us/glossary/xhtml/index.md index 15df0bc3583e8b3..daabf8b845f8bdb 100644 --- a/files/en-us/glossary/xhtml/index.md +++ b/files/en-us/glossary/xhtml/index.md @@ -15,7 +15,7 @@ The following example shows an HTML document and corresponding "XHTML" document, ```html - + diff --git a/files/en-us/learn/common_questions/design_and_accessibility/design_for_all_types_of_users/index.md b/files/en-us/learn/common_questions/design_and_accessibility/design_for_all_types_of_users/index.md index e8866f647976f9c..878ebac3dc8bf79 100644 --- a/files/en-us/learn/common_questions/design_and_accessibility/design_for_all_types_of_users/index.md +++ b/files/en-us/learn/common_questions/design_and_accessibility/design_for_all_types_of_users/index.md @@ -90,7 +90,7 @@ Suppose we wanted a base font size of 16px and an h1 (main heading) at the equiv Here is the HTML we're using: ```html - + @@ -182,7 +182,7 @@ Of course the problem doesn't go away when we switch to the Web. The reader's ey To achieve this, you can specify a size for your text's container. Let's consider this HTML: ```html - + diff --git a/files/en-us/learn/common_questions/tools_and_setup/what_are_browser_developer_tools/index.md b/files/en-us/learn/common_questions/tools_and_setup/what_are_browser_developer_tools/index.md index ea610fd55e098b4..3e3fcd3a5a4b527 100644 --- a/files/en-us/learn/common_questions/tools_and_setup/what_are_browser_developer_tools/index.md +++ b/files/en-us/learn/common_questions/tools_and_setup/what_are_browser_developer_tools/index.md @@ -175,7 +175,7 @@ document.querySelector("html").style.backgroundColor = "purple"; const loginImage = document.createElement("img"); loginImage.setAttribute( "src", - "https://raw.githubusercontent.com/mdn/learning-area/master/html/forms/image-type-example/login.png" + "https://raw.githubusercontent.com/mdn/learning-area/master/html/forms/image-type-example/login.png", ); document.querySelector("h1").appendChild(loginImage); ``` @@ -194,7 +194,7 @@ document.cheeseSelector("html").style.backgroundColor = "purple"; const loginImage = document.createElement("img"); banana.setAttribute( "src", - "https://raw.githubusercontent.com/mdn/learning-area/master/html/forms/image-type-example/login.png" + "https://raw.githubusercontent.com/mdn/learning-area/master/html/forms/image-type-example/login.png", ); document.querySelector("h1").appendChild(loginImage); ``` diff --git a/files/en-us/learn/css/building_blocks/advanced_styling_effects/index.md b/files/en-us/learn/css/building_blocks/advanced_styling_effects/index.md index aaf03c4e7438f40..ba8464831f70e7e 100644 --- a/files/en-us/learn/css/building_blocks/advanced_styling_effects/index.md +++ b/files/en-us/learn/css/building_blocks/advanced_styling_effects/index.md @@ -148,7 +148,9 @@ button { border-radius: 10px; border: none; background-image: linear-gradient(to bottom right, #777, #ddd); - box-shadow: 1px 1px 1px black, inset 2px 3px 5px rgba(0, 0, 0, 0.3), + box-shadow: + 1px 1px 1px black, + inset 2px 3px 5px rgba(0, 0, 0, 0.3), inset -2px -3px 5px rgba(255, 255, 255, 0.5); } @@ -158,7 +160,9 @@ button:hover { } button:active { - box-shadow: inset 2px 2px 1px black, inset 2px 3px 5px rgba(0, 0, 0, 0.3), + box-shadow: + inset 2px 2px 1px black, + inset 2px 3px 5px rgba(0, 0, 0, 0.3), inset -2px -3px 5px rgba(255, 255, 255, 0.5); } ``` diff --git a/files/en-us/learn/css/building_blocks/backgrounds_and_borders/index.md b/files/en-us/learn/css/building_blocks/backgrounds_and_borders/index.md index c53a937f66ca040..9fbccac44ec96f6 100644 --- a/files/en-us/learn/css/building_blocks/backgrounds_and_borders/index.md +++ b/files/en-us/learn/css/building_blocks/backgrounds_and_borders/index.md @@ -41,12 +41,14 @@ The CSS {{cssxref("background")}} property is a shorthand for a number of backgr ```css .box { - background: linear-gradient( + background: + linear-gradient( 105deg, rgba(255, 255, 255, 0.2) 39%, rgba(51, 56, 57, 1) 96% - ) center center / 400px 200px no-repeat, url(big-star.png) center - no-repeat, rebeccapurple; + ) center center / 400px 200px no-repeat, + url(big-star.png) center no-repeat, + rebeccapurple; } ``` @@ -182,7 +184,9 @@ The other `background-*` properties can also have comma-separated values in the background-image: url(image1.png), url(image2.png), url(image3.png), url(image4.png); background-repeat: no-repeat, repeat-x, repeat; -background-position: 10px 20px, top right; +background-position: + 10px 20px, + top right; ``` Each value of the different properties will match up to the values in the same position in the other properties. Above, for example, `image1`'s `background-repeat` value will be `no-repeat`. However, what happens when different properties have different numbers of values? The answer is that the smaller numbers of values will cycle — in the above example there are four background images but only two `background-position` values. The first two position values will be applied to the first two images, then they will cycle back around again — `image3` will be given the first position value, and `image4` will be given the second position value. diff --git a/files/en-us/learn/css/css_layout/floats/index.md b/files/en-us/learn/css/css_layout/floats/index.md index 71dde961fb498bc..32b9e6305892bea 100644 --- a/files/en-us/learn/css/css_layout/floats/index.md +++ b/files/en-us/learn/css/css_layout/floats/index.md @@ -85,7 +85,10 @@ body { width: 90%; max-width: 900px; margin: 0 auto; - font: 0.9em/1.2 Arial, Helvetica, sans-serif; + font: + 0.9em/1.2 Arial, + Helvetica, + sans-serif; } .box { @@ -208,7 +211,10 @@ body { width: 90%; max-width: 900px; margin: 0 auto; - font: 0.9em/1.2 Arial, Helvetica, sans-serif; + font: + 0.9em/1.2 Arial, + Helvetica, + sans-serif; } .box { @@ -281,7 +287,10 @@ body { width: 90%; max-width: 900px; margin: 0 auto; - font: 0.9em/1.2 Arial, Helvetica, sans-serif; + font: + 0.9em/1.2 Arial, + Helvetica, + sans-serif; } .box { @@ -381,7 +390,10 @@ body { width: 90%; max-width: 900px; margin: 0 auto; - font: 0.9em/1.2 Arial, Helvetica, sans-serif; + font: + 0.9em/1.2 Arial, + Helvetica, + sans-serif; } .wrapper { @@ -456,7 +468,10 @@ body { width: 90%; max-width: 900px; margin: 0 auto; - font: 0.9em/1.2 Arial, Helvetica, sans-serif; + font: + 0.9em/1.2 Arial, + Helvetica, + sans-serif; } .wrapper { diff --git a/files/en-us/learn/css/css_layout/grids/index.md b/files/en-us/learn/css/css_layout/grids/index.md index 72b8d79c14164a4..607872cce5a1bda 100644 --- a/files/en-us/learn/css/css_layout/grids/index.md +++ b/files/en-us/learn/css/css_layout/grids/index.md @@ -77,7 +77,10 @@ body { width: 90%; max-width: 900px; margin: 2em auto; - font: 0.9em/1.2 Arial, Helvetica, sans-serif; + font: + 0.9em/1.2 Arial, + Helvetica, + sans-serif; } .container > div { @@ -131,7 +134,10 @@ body { width: 90%; max-width: 900px; margin: 2em auto; - font: 0.9em/1.2 Arial, Helvetica, sans-serif; + font: + 0.9em/1.2 Arial, + Helvetica, + sans-serif; } .container > div { @@ -181,7 +187,10 @@ body { width: 90%; max-width: 900px; margin: 2em auto; - font: 0.9em/1.2 Arial, Helvetica, sans-serif; + font: + 0.9em/1.2 Arial, + Helvetica, + sans-serif; } .container > div { @@ -248,7 +257,10 @@ body { width: 90%; max-width: 900px; margin: 2em auto; - font: 0.9em/1.2 Arial, Helvetica, sans-serif; + font: + 0.9em/1.2 Arial, + Helvetica, + sans-serif; } .container > div { @@ -310,7 +322,10 @@ body { width: 90%; max-width: 900px; margin: 2em auto; - font: 0.9em/1.2 Arial, Helvetica, sans-serif; + font: + 0.9em/1.2 Arial, + Helvetica, + sans-serif; } .container > div { @@ -395,7 +410,10 @@ body { width: 90%; max-width: 900px; margin: 2em auto; - font: 0.9em/1.2 Arial, Helvetica, sans-serif; + font: + 0.9em/1.2 Arial, + Helvetica, + sans-serif; } .container { @@ -500,7 +518,10 @@ body { width: 90%; max-width: 900px; margin: 2em auto; - font: 0.9em/1.2 Arial, Helvetica, sans-serif; + font: + 0.9em/1.2 Arial, + Helvetica, + sans-serif; } header, @@ -599,7 +620,10 @@ body { width: 90%; max-width: 900px; margin: 2em auto; - font: 0.9em/1.2 Arial, Helvetica, sans-serif; + font: + 0.9em/1.2 Arial, + Helvetica, + sans-serif; } .container { diff --git a/files/en-us/learn/css/css_layout/media_queries/index.md b/files/en-us/learn/css/css_layout/media_queries/index.md index db031143d3d983c..93fec6ea8b22d1e 100644 --- a/files/en-us/learn/css/css_layout/media_queries/index.md +++ b/files/en-us/learn/css/css_layout/media_queries/index.md @@ -220,7 +220,10 @@ Our starting point is an HTML document with some CSS applied to add background c body { width: 90%; margin: 2em auto; - font: 1em/1.3 Arial, Helvetica, sans-serif; + font: + 1em/1.3 Arial, + Helvetica, + sans-serif; } a:link, diff --git a/files/en-us/learn/css/css_layout/multiple-column_layout/index.md b/files/en-us/learn/css/css_layout/multiple-column_layout/index.md index b9f5a228f39bd8d..5b7a4b47b8c6b9e 100644 --- a/files/en-us/learn/css/css_layout/multiple-column_layout/index.md +++ b/files/en-us/learn/css/css_layout/multiple-column_layout/index.md @@ -53,7 +53,10 @@ body { width: 90%; max-width: 900px; margin: 2em auto; - font: 0.9em/1.2 Arial, Helvetica, sans-serif; + font: + 0.9em/1.2 Arial, + Helvetica, + sans-serif; } ``` @@ -105,7 +108,10 @@ body { width: 90%; max-width: 900px; margin: 2em auto; - font: 0.9em/1.2 Arial, Helvetica, sans-serif; + font: + 0.9em/1.2 Arial, + Helvetica, + sans-serif; } ``` @@ -166,7 +172,10 @@ body { width: 90%; max-width: 900px; margin: 2em auto; - font: 0.9em/1.2 Arial, Helvetica, sans-serif; + font: + 0.9em/1.2 Arial, + Helvetica, + sans-serif; } ``` @@ -214,7 +223,10 @@ body { width: 90%; max-width: 900px; margin: 2em auto; - font: 0.9em/1.2 Arial, Helvetica, sans-serif; + font: + 0.9em/1.2 Arial, + Helvetica, + sans-serif; } .container { column-count: 3; @@ -263,7 +275,10 @@ body { width: 90%; max-width: 900px; margin: 2em auto; - font: 0.9em/1.2 Arial, Helvetica, sans-serif; + font: + 0.9em/1.2 Arial, + Helvetica, + sans-serif; } ``` @@ -384,7 +399,10 @@ body { width: 90%; max-width: 900px; margin: 2em auto; - font: 0.9em/1.2 Arial, Helvetica, sans-serif; + font: + 0.9em/1.2 Arial, + Helvetica, + sans-serif; } ``` diff --git a/files/en-us/learn/css/first_steps/getting_started/index.md b/files/en-us/learn/css/first_steps/getting_started/index.md index a73d0e720e08fcf..df7b16f60caee11 100644 --- a/files/en-us/learn/css/first_steps/getting_started/index.md +++ b/files/en-us/learn/css/first_steps/getting_started/index.md @@ -42,7 +42,7 @@ In this article, we will take a simple HTML document and apply CSS to it, learni Our starting point is an HTML document. You can copy the code from below if you want to work on your own computer. Save the code below as `index.html` in a folder on your machine. ```html - + diff --git a/files/en-us/learn/css/first_steps/how_css_is_structured/index.md b/files/en-us/learn/css/first_steps/how_css_is_structured/index.md index f7f395799f09123..d8665379c4ebcf7 100644 --- a/files/en-us/learn/css/first_steps/how_css_is_structured/index.md +++ b/files/en-us/learn/css/first_steps/how_css_is_structured/index.md @@ -48,7 +48,7 @@ An external stylesheet contains CSS in a separate file with a `.css` extension. You reference an external CSS stylesheet from an HTML `` element: ```html - + @@ -96,7 +96,7 @@ An internal stylesheet resides within an HTML document. To create an internal st The HTML for an internal stylesheet might look like this: ```html - + @@ -129,7 +129,7 @@ But for sites with more than one page, an internal stylesheet becomes a less eff Inline styles are CSS declarations that affect a single HTML element, contained within a `style` attribute. The implementation of an inline style in an HTML document might look like this: ```html - + @@ -155,7 +155,7 @@ For the exercise that follows, create a folder on your computer. You can name th **index.html:** ```html - + @@ -425,7 +425,10 @@ CSS comments begin with `/*` and end with `*/`. In the example below, comments m /* Handle basic element styling */ /* -------------------------------------------------------------------------------------------- */ body { - font: 1em/150% Helvetica, Arial, sans-serif; + font: + 1em/150% Helvetica, + Arial, + sans-serif; padding: 1em; margin: 0 auto; max-width: 33em; @@ -482,7 +485,10 @@ In the example below, each declaration (and rule start/end) has its own line. Th ```css body { - font: 1em/150% Helvetica, Arial, sans-serif; + font: + 1em/150% Helvetica, + Arial, + sans-serif; padding: 1em; margin: 0 auto; max-width: 33em; diff --git a/files/en-us/learn/css/howto/create_fancy_boxes/index.md b/files/en-us/learn/css/howto/create_fancy_boxes/index.md index 117d4e7df572c92..dc4a1a77db1ffb7 100644 --- a/files/en-us/learn/css/howto/create_fancy_boxes/index.md +++ b/files/en-us/learn/css/howto/create_fancy_boxes/index.md @@ -239,7 +239,11 @@ blockquote::before, blockquote::after { position: absolute; height: 3rem; - font: 6rem/100% Georgia, "Times New Roman", Times, serif; + font: + 6rem/100% Georgia, + "Times New Roman", + Times, + serif; } blockquote::before { diff --git a/files/en-us/learn/css/howto/css_faq/index.md b/files/en-us/learn/css/howto/css_faq/index.md index 11b29e2f4715894..fbc3b58f484fea7 100644 --- a/files/en-us/learn/css/howto/css_faq/index.md +++ b/files/en-us/learn/css/howto/css_faq/index.md @@ -22,7 +22,7 @@ Gecko-based browsers, have a third _[Almost Standards Mode](/en-US/docs/Mozilla/ The standard `DOCTYPE` declaration that will trigger standards mode is: ```html - + ``` When at all possible, you should just use the above doctype. There are other valid legacy doctypes that will trigger Standards or Almost Standards mode: diff --git a/files/en-us/learn/css/styling_text/fundamentals/index.md b/files/en-us/learn/css/styling_text/fundamentals/index.md index 3ef860cfcdc9cd2..48ce1c2ceb4f7df 100644 --- a/files/en-us/learn/css/styling_text/fundamentals/index.md +++ b/files/en-us/learn/css/styling_text/fundamentals/index.md @@ -432,7 +432,9 @@ You can apply multiple shadows to the same text by including multiple shadow val ```css h1 { - text-shadow: 1px 1px 1px red, 2px 2px 1px red; + text-shadow: + 1px 1px 1px red, + 2px 2px 1px red; } ``` @@ -514,7 +516,9 @@ html { h1 { font-size: 5rem; text-transform: capitalize; - text-shadow: 1px 1px 1px red, 2px 2px 1px red; + text-shadow: + 1px 1px 1px red, + 2px 2px 1px red; text-align: center; } @@ -565,7 +569,9 @@ html { h1 { font-size: 5rem; text-transform: capitalize; - text-shadow: 1px 1px 1px red, 2px 2px 1px red; + text-shadow: + 1px 1px 1px red, + 2px 2px 1px red; text-align: center; } @@ -620,7 +626,9 @@ html { h1 { font-size: 5rem; text-transform: capitalize; - text-shadow: 1px 1px 1px red, 2px 2px 1px red; + text-shadow: + 1px 1px 1px red, + 2px 2px 1px red; text-align: center; letter-spacing: 2px; } @@ -685,7 +693,10 @@ A forward slash has to be put in between the {{cssxref("font-size")}} and {{cssx A full example would look like this: ```css -font: italic normal bold normal 3em/1.5 Helvetica, Arial, sans-serif; +font: + italic normal bold normal 3em/1.5 Helvetica, + Arial, + sans-serif; ``` ## Active learning: Playing with styling text diff --git a/files/en-us/learn/css/styling_text/web_fonts/index.md b/files/en-us/learn/css/styling_text/web_fonts/index.md index cb38c3a2ea03601..647892654666103 100644 --- a/files/en-us/learn/css/styling_text/web_fonts/index.md +++ b/files/en-us/learn/css/styling_text/web_fonts/index.md @@ -139,8 +139,9 @@ To implement these fonts in your demo, follow these steps: ```css @font-face { font-family: "zantrokeregular"; - src: url("fonts/zantroke-webfont.woff2") format("woff2"), url("fonts/zantroke-webfont.woff") - format("woff"); + src: + url("fonts/zantroke-webfont.woff2") format("woff2"), + url("fonts/zantroke-webfont.woff") format("woff"); font-weight: normal; font-style: normal; } @@ -178,8 +179,9 @@ Let's explore that `@font-face` syntax generated for you by Fontsquirrel. This i ```css @font-face { font-family: "zantrokeregular"; - src: url("zantroke-webfont.woff2") format("woff2"), url("zantroke-webfont.woff") - format("woff"); + src: + url("zantroke-webfont.woff2") format("woff2"), + url("zantroke-webfont.woff") format("woff"); font-weight: normal; font-style: normal; } diff --git a/files/en-us/learn/forms/how_to_build_custom_form_controls/example_3/index.md b/files/en-us/learn/forms/how_to_build_custom_form_controls/example_3/index.md index 8c6cb7a7e8d7a51..0fbe1b1aeaeb766 100644 --- a/files/en-us/learn/forms/how_to_build_custom_form_controls/example_3/index.md +++ b/files/en-us/learn/forms/how_to_build_custom_form_controls/example_3/index.md @@ -223,7 +223,7 @@ window.addEventListener("load", () => { (event) => { toggleOptList(select); }, - false + false, ); select.addEventListener("focus", (event) => { diff --git a/files/en-us/learn/forms/sending_forms_through_javascript/index.md b/files/en-us/learn/forms/sending_forms_through_javascript/index.md index 9d51ab934c6d4ad..3783ed814adb74e 100644 --- a/files/en-us/learn/forms/sending_forms_through_javascript/index.md +++ b/files/en-us/learn/forms/sending_forms_through_javascript/index.md @@ -67,7 +67,7 @@ function sendData(data) { // Turn the data object into an array of URL-encoded key/value pairs. for (const [name, value] of Object.entries(data)) { urlEncodedDataPairs.push( - `${encodeURIComponent(name)}=${encodeURIComponent(value)}` + `${encodeURIComponent(name)}=${encodeURIComponent(value)}`, ); } @@ -351,7 +351,7 @@ window.addEventListener("load", () => { // Add the required HTTP header to handle a multipart form data POST request XHR.setRequestHeader( "Content-Type", - `multipart/form-data; boundary=${boundary}` + `multipart/form-data; boundary=${boundary}`, ); // Send the data diff --git a/files/en-us/learn/forms/styling_web_forms/index.md b/files/en-us/learn/forms/styling_web_forms/index.md index 0dfee44d0de30b2..4ac15d3ebe34aa2 100644 --- a/files/en-us/learn/forms/styling_web_forms/index.md +++ b/files/en-us/learn/forms/styling_web_forms/index.md @@ -215,16 +215,18 @@ First, we prepare by defining our {{cssxref("@font-face")}} rules, and all the b ```css @font-face { font-family: "handwriting"; - src: url("fonts/journal-webfont.woff2") format("woff2"), url("fonts/journal-webfont.woff") - format("woff"); + src: + url("fonts/journal-webfont.woff2") format("woff2"), + url("fonts/journal-webfont.woff") format("woff"); font-weight: normal; font-style: normal; } @font-face { font-family: "typewriter"; - src: url("fonts/momot___-webfont.woff2") format("woff2"), url("fonts/momot___-webfont.woff") - format("woff"); + src: + url("fonts/momot___-webfont.woff2") format("woff2"), + url("fonts/momot___-webfont.woff") format("woff"); font-weight: normal; font-style: normal; } @@ -257,7 +259,9 @@ Notice that we've used some [CSS Grid](/en-US/docs/Web/CSS/CSS_Grid_Layout) and ```css h1 { - font: 1em "typewriter", monospace; + font: + 1em "typewriter", + monospace; align-self: end; } @@ -277,7 +281,9 @@ Now we can start working on the form elements themselves. First, let's ensure th ```css label { - font: 0.8em "typewriter", sans-serif; + font: + 0.8em "typewriter", + sans-serif; } ``` @@ -286,7 +292,10 @@ The text fields require some common rules. In other words, we remove their {{css ```css input, textarea { - font: 1.4em/1.5em "handwriting", cursive, sans-serif; + font: + 1.4em/1.5em "handwriting", + cursive, + sans-serif; border: none; padding: 0 10px; margin: 0; diff --git a/files/en-us/learn/forms/ui_pseudo-classes/index.md b/files/en-us/learn/forms/ui_pseudo-classes/index.md index 98e931395030fce..7427a7776508a8e 100644 --- a/files/en-us/learn/forms/ui_pseudo-classes/index.md +++ b/files/en-us/learn/forms/ui_pseudo-classes/index.md @@ -408,7 +408,7 @@ document.addEventListener( .getElementById("billing-checkbox") .addEventListener("change", toggleBilling); }, - false + false, ); function toggleBilling() { diff --git a/files/en-us/learn/getting_started_with_the_web/dealing_with_files/index.md b/files/en-us/learn/getting_started_with_the_web/dealing_with_files/index.md index c92cd939adf26a9..3bb3fd541be742b 100644 --- a/files/en-us/learn/getting_started_with_the_web/dealing_with_files/index.md +++ b/files/en-us/learn/getting_started_with_the_web/dealing_with_files/index.md @@ -43,7 +43,7 @@ To make files talk to one another, you have to provide a file path between them 2. Open up your `index.html` file, and insert the following code into the file exactly as shown. Don't worry about what it all means for now — we'll look at the structures in more detail later in the series. ```html - + diff --git a/files/en-us/learn/getting_started_with_the_web/html_basics/index.md b/files/en-us/learn/getting_started_with_the_web/html_basics/index.md index b6727547a9beca4..683fc95313cd9b0 100644 --- a/files/en-us/learn/getting_started_with_the_web/html_basics/index.md +++ b/files/en-us/learn/getting_started_with_the_web/html_basics/index.md @@ -81,7 +81,7 @@ This contains two attributes, but there is no closing `` tag and no inner That wraps up the basics of individual HTML elements, but they aren't handy on their own. Now we'll look at how individual elements are combined to form an entire HTML page. Let's revisit the code we put into our `index.html` example (which we first met in the [Dealing with files](/en-US/docs/Learn/Getting_started_with_the_web/Dealing_with_files) article): ```html - + diff --git a/files/en-us/learn/html/introduction_to_html/advanced_text_formatting/index.md b/files/en-us/learn/html/introduction_to_html/advanced_text_formatting/index.md index 2a66cfa64dfd8f7..59f8ac626e3ce96 100644 --- a/files/en-us/learn/html/introduction_to_html/advanced_text_formatting/index.md +++ b/files/en-us/learn/html/introduction_to_html/advanced_text_formatting/index.md @@ -213,7 +213,7 @@ function insertAtCaret(text) { const front = textarea.value.substring(0, caretPos); const back = textarea.value.substring( textarea.selectionEnd, - textarea.value.length + textarea.value.length, ); textarea.value = front + text + back; caretPos += text.length; @@ -444,7 +444,7 @@ function insertAtCaret(text) { const front = textarea.value.substring(0, caretPos); const back = textarea.value.substring( textarea.selectionEnd, - textarea.value.length + textarea.value.length, ); textarea.value = front + text + back; caretPos += text.length; @@ -603,7 +603,7 @@ function insertAtCaret(text) { const front = textarea.value.substring(0, caretPos); const back = textarea.value.substring( textarea.selectionEnd, - textarea.value.length + textarea.value.length, ); textarea.value = front + text + back; caretPos += text.length; diff --git a/files/en-us/learn/html/introduction_to_html/document_and_website_structure/index.md b/files/en-us/learn/html/introduction_to_html/document_and_website_structure/index.md index d49c971d636965f..56721819743b53c 100644 --- a/files/en-us/learn/html/introduction_to_html/document_and_website_structure/index.md +++ b/files/en-us/learn/html/introduction_to_html/document_and_website_structure/index.md @@ -83,7 +83,7 @@ To implement such semantic mark up, HTML provides dedicated tags that you can us Our example seen above is represented by the following code (you can also [find the example in our GitHub repository](https://github.com/mdn/learning-area/blob/main/html/introduction-to-html/document_and_website_structure/index.html)). We'd like you to look at the example above, and then look over the listing below to see what parts make up what section of the visual. ```html - + diff --git a/files/en-us/learn/html/introduction_to_html/getting_started/index.md b/files/en-us/learn/html/introduction_to_html/getting_started/index.md index d002d9cf3f23c3d..ad11e1f16eb2d46 100644 --- a/files/en-us/learn/html/introduction_to_html/getting_started/index.md +++ b/files/en-us/learn/html/introduction_to_html/getting_started/index.md @@ -168,7 +168,7 @@ function insertAtCaret(text) { const front = textarea.value.substring(0, caretPos); const back = textarea.value.substring( textarea.selectionEnd, - textarea.value.length + textarea.value.length, ); textarea.value = front + text + back; caretPos += text.length; @@ -365,7 +365,7 @@ function insertAtCaret(text) { const front = textarea.value.substring(0, caretPos); const back = textarea.value.substring( textarea.selectionEnd, - textarea.value.length + textarea.value.length, ); textarea.value = front + text + back; caretPos += text.length; @@ -475,7 +475,7 @@ Instead, you need to do this: Individual HTML elements aren't very useful on their own. Next, let's examine how individual elements combine to form an entire HTML page: ```html - + @@ -635,7 +635,7 @@ function insertAtCaret(text) { const front = textarea.value.substring(0, caretPos); const back = textarea.value.substring( textarea.selectionEnd, - textarea.value.length + textarea.value.length, ); textarea.value = front + text + back; caretPos += text.length; diff --git a/files/en-us/learn/html/introduction_to_html/html_text_fundamentals/index.md b/files/en-us/learn/html/introduction_to_html/html_text_fundamentals/index.md index 17d0e065032baa5..77f2f7110f28e5e 100644 --- a/files/en-us/learn/html/introduction_to_html/html_text_fundamentals/index.md +++ b/files/en-us/learn/html/introduction_to_html/html_text_fundamentals/index.md @@ -215,7 +215,7 @@ function insertAtCaret(text) { const front = textarea.value.substring(0, caretPos); const back = textarea.value.substring( textarea.selectionEnd, - textarea.value.length + textarea.value.length, ); textarea.value = front + text + back; caretPos += text.length; @@ -408,7 +408,7 @@ function insertAtCaret(text) { const front = textarea.value.substring(0, caretPos); const back = textarea.value.substring( textarea.selectionEnd, - textarea.value.length + textarea.value.length, ); textarea.value = front + text + back; caretPos += text.length; @@ -567,7 +567,7 @@ function insertAtCaret(text) { const front = textarea.value.substring(0, caretPos); const back = textarea.value.substring( textarea.selectionEnd, - textarea.value.length + textarea.value.length, ); textarea.value = front + text + back; caretPos += text.length; @@ -729,7 +729,7 @@ function insertAtCaret(text) { const front = textarea.value.substring(0, caretPos); const back = textarea.value.substring( textarea.selectionEnd, - textarea.value.length + textarea.value.length, ); textarea.value = front + text + back; caretPos += text.length; @@ -948,7 +948,7 @@ function insertAtCaret(text) { const front = textarea.value.substring(0, caretPos); const back = textarea.value.substring( textarea.selectionEnd, - textarea.value.length + textarea.value.length, ); textarea.value = front + text + back; caretPos += text.length; diff --git a/files/en-us/learn/html/introduction_to_html/the_head_metadata_in_html/index.md b/files/en-us/learn/html/introduction_to_html/the_head_metadata_in_html/index.md index 98a110d5a7f9a8b..380853043e14e37 100644 --- a/files/en-us/learn/html/introduction_to_html/the_head_metadata_in_html/index.md +++ b/files/en-us/learn/html/introduction_to_html/the_head_metadata_in_html/index.md @@ -34,7 +34,7 @@ The {{glossary("Head", "head")}} of an HTML document is the part that is not dis Let's revisit the simple [HTML document we covered in the previous article](/en-US/docs/Learn/HTML/Introduction_to_HTML/Getting_started#anatomy_of_an_html_document): ```html - + diff --git a/files/en-us/learn/html/multimedia_and_embedding/adding_vector_graphics_to_the_web/index.md b/files/en-us/learn/html/multimedia_and_embedding/adding_vector_graphics_to_the_web/index.md index 0132d441473e092..d60c51b736f600b 100644 --- a/files/en-us/learn/html/multimedia_and_embedding/adding_vector_graphics_to_the_web/index.md +++ b/files/en-us/learn/html/multimedia_and_embedding/adding_vector_graphics_to_the_web/index.md @@ -294,7 +294,7 @@ function insertAtCaret(text) { const front = textarea.value.substring(0, caretPos); const back = textarea.value.substring( textarea.selectionEnd, - textarea.value.length + textarea.value.length, ); textarea.value = front + text + back; diff --git a/files/en-us/learn/html/multimedia_and_embedding/images_in_html/index.md b/files/en-us/learn/html/multimedia_and_embedding/images_in_html/index.md index a8fe844513c79c3..728d745029d26ab 100644 --- a/files/en-us/learn/html/multimedia_and_embedding/images_in_html/index.md +++ b/files/en-us/learn/html/multimedia_and_embedding/images_in_html/index.md @@ -280,7 +280,7 @@ function insertAtCaret(text) { const front = textarea.value.substring(0, caretPos); const back = textarea.value.substring( textarea.selectionEnd, - textarea.value.length + textarea.value.length, ); textarea.value = front + text + back; caretPos += text.length; @@ -525,7 +525,7 @@ function insertAtCaret(text) { const front = textarea.value.substring(0, caretPos); const back = textarea.value.substring( textarea.selectionEnd, - textarea.value.length + textarea.value.length, ); textarea.value = front + text + back; caretPos += text.length; diff --git a/files/en-us/learn/html/multimedia_and_embedding/other_embedding_technologies/index.md b/files/en-us/learn/html/multimedia_and_embedding/other_embedding_technologies/index.md index ed31a4e2a1a6305..7dc3d84c1e22df2 100644 --- a/files/en-us/learn/html/multimedia_and_embedding/other_embedding_technologies/index.md +++ b/files/en-us/learn/html/multimedia_and_embedding/other_embedding_technologies/index.md @@ -169,7 +169,7 @@ function insertAtCaret(text) { const front = textarea.value.substring(0, caretPos); const back = textarea.value.substring( textarea.selectionEnd, - textarea.value.length + textarea.value.length, ); textarea.value = front + text + back; caretPos += text.length; diff --git a/files/en-us/learn/html/tables/advanced/index.md b/files/en-us/learn/html/tables/advanced/index.md index f05e2659c2d8022..d0fe7eb5a475e58 100644 --- a/files/en-us/learn/html/tables/advanced/index.md +++ b/files/en-us/learn/html/tables/advanced/index.md @@ -101,7 +101,7 @@ Let's put these new elements into action. Your finished table should look something like the following: ```html hidden - + diff --git a/files/en-us/learn/javascript/asynchronous/introducing/index.md b/files/en-us/learn/javascript/asynchronous/introducing/index.md index fe87252fa1e16a0..b82f94e2af3867c 100644 --- a/files/en-us/learn/javascript/asynchronous/introducing/index.md +++ b/files/en-us/learn/javascript/asynchronous/introducing/index.md @@ -243,7 +243,7 @@ document.querySelector("#xhr").addEventListener("click", () => { xhr.open( "GET", - "https://raw.githubusercontent.com/mdn/content/main/files/en-us/_wikihistory.json" + "https://raw.githubusercontent.com/mdn/content/main/files/en-us/_wikihistory.json", ); xhr.send(); log.textContent = `${log.textContent}Started XHR request\n`; diff --git a/files/en-us/learn/javascript/asynchronous/introducing_workers/index.md b/files/en-us/learn/javascript/asynchronous/introducing_workers/index.md index 4ffc471135d7324..cfb91a772e4d53e 100644 --- a/files/en-us/learn/javascript/asynchronous/introducing_workers/index.md +++ b/files/en-us/learn/javascript/asynchronous/introducing_workers/index.md @@ -76,7 +76,7 @@ document.querySelector("#generate").addEventListener("click", () => { const quota = document.querySelector("#quota").value; const primes = generatePrimes(quota); document.querySelector( - "#output" + "#output", ).textContent = `Finished generating ${quota} primes!`; }); @@ -101,7 +101,7 @@ For this example, start by making a local copy of the files at