?? HTML? ?? Bytes #293? ?? ??? ??? ???????. ??? ??? State of HTML 2023 ????(? ??... ?, ?? ??? ?? ???? ??)?? ?????.
???
? ??? ?? ???? ??? ??? ?? ?? ??? ?? ?? ??? ?? ? ????. ? ??? ?? ?? ??? ??? svg? ?? ? ?? ?? ?? ? ????
?_(ツ)_/?
- https://developer.mozilla.org/en-US/docs/Learn/HTML/Multimedia_and_embedding/Adding_Vector_graphics_to_the_Web
- https://developer.mozilla.org/en-US/docs/Web/SVG/Tutorial/??
- MDN? SVG ????: https://developer.mozilla.org/en-US/docs/Web/SVG/Tutorial/Getting_Started
?;DR
SVG ??? ?? ??? ?????. ?? ??? ??? ???? ??? ???? ??? ? ????. ?? ?? Adobe Illustrator ?? Inkscape? ???? ?? ???? ?? ? ????.
???
???? ???? ? ?? ??? ? ? ????. ?? ??? ????? ??? ?? ??? ??? ? ?? ??? ????? ??? ????. ??? ? ??? ??? ? ?? ?? ??, ?? ?? ? ?? ?? ??? ???? ?? ? ????.
? ?? ?? SVG ????? ??? ???????. ??? ???? svg ??? ?? ???? ?? ????. ??? ? ?? ?? ?? ??? ?? ? ??? ? ?????.
?? ??
??? SVG ??? ??? ???? ??? ???? ???. ???? ???? ????? ?????? ???? ??? ???? ?????? ???? ?? ?? ????.
??? ?:
<svg ...><image link:href="data:image/png;base64 .../>
?? ??:
<svg><g><path r=""/><circle /></g></svg>
?? ??? ?? ?? ?? ?? ? ? ?????. ??? ??? ??? ????. ??? ???? ??? ?? ??? ?????? ??? ?? .svg ???? ????? ? ? ?? ?? ?????. ???? ???? ?? ????? ???? ????.
????? SVG ??
?? ???? SVG ??? ?? ?? ??? ??? ?? ? ????.
Tag | Description | Animated attributes |
---|---|---|
used for grouping elements | - | |
main tag for your actual icon. Avoid modifying the d="" attribute on your own ? It is possible but be careful with that. Grab a link with an explanation for each character group. To animate your path use animateMotion tag | - | |
Basic rectangle shape in SVG. Simple as that | ? | |
Simple as that. The line between two points. Don't mistake with the stroke attribute! It can also be used on the line tag. | ? | |
You can think about it as an enhancement version of the g tag but it keeps the elements inside invisible for later use with, let's guess it... use tag | - | |
Next basic shape. Be careful as the size is defined by radius and you position your circle with cx and cy attributes. | ? | |
Let's call it a custom shape. They are connected straight lines where the last point connects to the first point. | ? | |
Very similar to the previous one but with a notable difference. The last point doesn't need to be connected to the first point. | ? |
???? ?? ??? SVG ??? ???? ????. ?? ?? ???? ??? ??????. ? ?? ?? ??? ? ????. ?? ??? ???? ??? ? ????.
?? ?? ? ?? ??
?? ? ?? ???? svg ??? ??????? ???? ?? ????? ???? ?? ???? ??? ? ????.
?? ????? ?? ????? ??? ?????. ?/??? ?? ???? ?? ?? ?? ??? ??? ?? ????. ????? ??? ? ??? ???? ??? ??? ?? ?? ??? ????.
good one | wrong one |
---|---|
![]() |
![]() |
???? ???. ????? ??? ???? ?? ??? ?? ??? ?? ?? ??? ??? svg? ? ??? ????. ? ??????? ??? ?? ????. ??? ?? ?? ? ????.
?? ???? ?? ?? ?? ??? ?? ????. ?? SVG ??? ??? ??? ????.
<svg ...><image link:href="data:image/png;base64 .../>
??:
?? ??? ??? ?! ? ?? ???? ?? ??? ??? ? ?? ??? ? ??? ???????.
? ?? ??? ????. ??? viewBox ?? ????? ?? ?? ???? ??, ??, x ? y ?? ?? ??? ? ????.
? ?? ??? ??? ??? ????? ? ?????? ??? ?? ? ????. ? ???? ?? ??? ?? ??? ?? ??? ?????.
<svg><g><path r=""/><circle /></g></svg>
?? ??? ??? ??? ? ????. ?? ?????? ?? ?? ??? ??? ??? ???? ????.
???? viewBox? ? ??? ??????
???? ?? ??? ???? ????? ????? ?? ??? ?????. 4?? ?? viewBox="min-x min-y width height"? ????.
?? ?? viewBox="0 0 100 100"? ?? ?? ???? (0, 0)? ?? viewBox? ??? 100??, ??? 100???? ?????.
?, viewBox? ?? ?? ????? ??? x ? y ??? ??? ? ???? ???.
?? ? ??? ??
???? ?? ???? ?????. ?? ?? ???? ???? ??? ?? ?? ??? ?? ??? ?????.
?? ???? ?? ??? fill-rule="evenodd"? ???? ???? ?? ?? ?? ??? ??? ???? ????
??? ???? ?? ????.
?? ???? ??? ?? ??? ??????. IDE?? ?? ? ?? ??? ??? ??? ???? ??? ??? ? ????.
??? ?? ????? ??? ?? ????.
?? ??? ???? ??? ???? ??? ?? ??? ???? ??? ? ??? ???. ??? ??? ???? ??? ???? ????.
?? ???? ?? ????? ?? ?? ?? ???? ??? svg ??? ???? ????? ?? ???.
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <!-- Created with Inkscape (http://www.inkscape.org/) --> <svg width="93.582886" height="93.582893" viewBox="0 0 24.760471 24.760474" version="1.1" > <p>This is our raw svg exported from Inkscape. There are a few other things to fix, bear with me so we can fix them.</p> <p>We know that 200px image is our goal. Here we have some ugly width/height values on the main svg tag.</p> <p>Simply:<br> </p> <pre class="brush:php;toolbar:false"><svg - width="93.582886" + width="200" - height="93.582893" + height="200"
????? ??? ?? ? ???? ?? ?? ?? ?? ??? ????. ?? ?? ???? ??? ????.
??? ??? ??? ??? ? ?? ??? ???.
??? ??? ???? ?? ??? ?? ??? ?????.
???
???? ?? ???? ?(?? Figma?? ????? ??) ???? ???? ??????? ???? ???. ??? ?? ?????. ?? ? ??? ??? ?? ?? ?? ?? ?? ?? ???? ?????.
SVGO(?? ??? ?? SVGR)? ???? ????? ?? ?????. ??? ?? ???? ???? ??? ??? ?????.
????? ???? ?????. ???? ????? CLI?? ????? ???. ?? ?? ??? ???? ???? ???? ?? ? ?? ??? ? ????.
??: ??? ??? ?? ?? ?? ??? ??? ? ????. ???? README?? ??? ???? ???? ???? ??? ?????
??
?? ??? ??? ??? ????.
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 50"><g fill-rule="evenodd"><?? d= "M9 24h32v3H9z"> <p>inkspace?? ??? ?? ???? ???? ??? 871????? 322???? ?????.</p> <h2> ?????? ?? </h2> <p>??? ??? ??? ??. ???? ???? ? ??? ???????. Lottie? ????? CSS?? SVG ??? ???? ?????? ???? ? ??? ? ?? ??? ??????. ? ?? ??? ?????? ??? 5? ??? ?? ???? ?????.</p> <p>?? ???? ? ?? ??? ??? ???? ?? ? ?? ?</p> <p>??? ?? ?? ??? ????? ??? ???. ??? ?? ? ??? ??????. ???? ???? 5? ?? ???? ?? ????? ???. AI ?? ??? ? ? ??? ?????! ???? ?? ? ????? ?? ????.</p> <p>??? ???????.<br> ? ???? ????? ?? ?? ???? ????. </p>
? ??? ??? ?? SVG ??? ?? ?????. ??? ??? PHP ??? ????? ?? ?? ??? ?????!

? AI ??

Undress AI Tool
??? ???? ??

Undresser.AI Undress
???? ?? ??? ??? ?? AI ?? ?

AI Clothes Remover
???? ?? ???? ??? AI ?????.

Clothoff.io
AI ? ???

Video Face Swap
??? ??? AI ?? ?? ??? ???? ?? ???? ??? ?? ????!

?? ??

??? ??

???++7.3.1
???? ?? ?? ?? ???

SublimeText3 ??? ??
??? ??, ???? ?? ????.

???? 13.0.1 ???
??? PHP ?? ?? ??

???? CS6
??? ? ?? ??

SublimeText3 Mac ??
? ??? ?? ?? ?????(SublimeText3)

Node.js?? HTTP ??? ???? ? ?? ???? ??? ????. 1. ?? ????? ????? ??? ??? ? ?? ????? ?? ?? ? https.get () ??? ?? ??? ??? ? ?? ????? ?? ??? ?????. 2.axios? ??? ???? ? ?? ??????. ??? ??? ??? ??? ??? ??? ???/???, ?? JSON ??, ???? ?? ?????. ??? ?? ??? ????? ?? ????. 3. ?? ??? ??? ??? ??? ???? ???? ??? ??? ???? ?????.

JavaScript ??? ??? ?? ?? ? ?? ???? ????. ?? ???? ???, ??, ??, ?, ???? ?? ? ??? ?????. ?? ????? ?? ?? ? ? ??? ????? ?? ??? ??? ????. ??, ?? ? ??? ?? ?? ??? ??? ??? ???? ??? ??? ???? ??? ?? ??? ????. ?? ? ????? ??? ???? ? ??? ? ??? TypeofNull? ??? ?????? ??? ? ????. ? ? ?? ??? ???? ?????? ????? ???? ??? ???? ? ??? ? ? ????.

?? JavaScript ??? ??? ??? ?????? ?? ??? ?? ?? ??? ?? ???? ????. 1. ??? ???? ???? ?? ??? ?? ? ? ???? ??? ??? ?? ? ?? ????? ?????. 2. Angular? ?????? ??? ?? ???? ? ?? ?? ??? ??? ??? ???? ?????. 3. VUE? ???? ?? ??? ???? ?? ?? ??? ?????. ?? ?? ?? ??, ? ??, ???? ???? ? SSR? ???? ??? ??? ??? ???? ? ??? ?????. ???, ??? ??? ??? ????? ????. ??? ??? ??? ??? ?? ????.

?????, JavaScript ???! ?? ? JavaScript ??? ?? ?? ?????! ?? ?? ??? ??? ??? ? ????. Deno?? Oracle? ?? ??, ??? JavaScript ?? ??? ????, Google Chrome ???? ? ??? ??? ???? ?????. ?????! Deno Oracle? "JavaScript"??? ????? Oracle? ?? ??? ??? ??????. Node.js? Deno? ??? ? Ryan Dahl? ??? ?????? ???? ????? JavaScript? ??? ???? Oracle? ????? ???? ?????.

??? JavaScript?? ??? ??? ?????? ?? ???????. ?? ??, ?? ?? ? ??? ??? ?? ????? ????? ?????. 1. ?? ??? ??? ????? ???? ??. ()? ?? ??? ??? ?????. ?. ()? ?? ??? ?? ??? ??? ?? ? ? ????. 2. ?? ??? .catch ()? ???? ?? ??? ??? ?? ??? ??????, ??? ???? ???? ????? ??? ? ????. 3. Promise.all ()? ?? ????? (?? ?? ?? ? ??????? ??), Promise.Race () (? ?? ??? ?? ?) ? Promise.AllSettled () (?? ??? ???? ??)

Cacheapi? ?????? ?? ???? ??? ???? ???, ?? ??? ??? ?? ???? ? ??? ?? ? ???? ??? ??????. 1. ???? ????, ??? ??, ?? ?? ?? ???? ???? ??? ? ????. 2. ??? ?? ?? ??? ?? ? ? ????. 3. ?? ?? ?? ?? ?? ??? ??? ?? ?????. 4. ??? ???? ?? ?? ???? ?? ?? ?? ?? ?? ???? ?? ?? ??? ??? ? ????. 5. ?? ???? ??, ??? ??? ? ??? ??, ?? ??? ? ?? ???? ???? ???? ? ?? ?????. 6.?? ??? ?? ?? ?? ??, ???? ?? ? HTTP ?? ????? ?????? ???????.

.map (), .filter () ? .reduce ()? ?? JavaScript ?? ?? ???? ??? ??? ??? ? ? ????. 1) .map ()? ??? ??? ??? ???? ? ??? ???? ? ?????. 2) .filter ()? ???? ??? ????? ? ?????. 3) .reduce ()? ???? ?? ??? ???? ? ?????. ???? ??? ????? ??? ?? ?? ??? ?????.

JavaScript? ??? ??? ?? ??, ? ? ? ?? ???? ???? ??? ??? ?????. 1. ?? ??? ?? ??? ???? ??? ??? ??? ??? ?? WebAPI? ?????. 2. WebAPI? ??????? ??? ?? ? ? ??? ?? ??? (??? ?? ?? ???? ??)? ????. 3. ??? ??? ?? ??? ?? ??? ?????. ?? ??? ??? ????? ??? ??? ?? ? ???? ?????. 4. ???? ?? (? : Promise. 5. ??? ??? ???? ?? ???? ???? ?? ?? ?? ??? ????? ? ??????.
