<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>HTML on Time Friend</title><link>https://time-friend.com/en/tags/html/</link><description>Recent content in HTML on Time Friend</description><generator>Hugo</generator><language>en-GB</language><lastBuildDate>Wed, 29 Jul 2026 15:15:07 +0800</lastBuildDate><atom:link href="https://time-friend.com/en/tags/html/index.xml" rel="self" type="application/rss+xml"/><item><title>Replaced and Non-Replaced Elements</title><link>https://time-friend.com/en/archive/replaced-and-non-replaced-elements/</link><pubDate>Mon, 29 Aug 2016 17:33:33 +0000</pubDate><guid>https://time-friend.com/en/archive/replaced-and-non-replaced-elements/</guid><description>&lt;p&gt;Suddenly heard about this concept. Never heard of it before. So I looked it up to learn more.&lt;/p&gt;
&lt;h2 id="replaced-and-non-replaced-elements"&gt;Replaced and Non-Replaced Elements&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Replaced elements generally refer to elements that have default styles, such as: img, input, textarea, select, object&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Non-replaced elements are the opposite, that is, all elements other than replaced elements like: img, input, textarea, select, object.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;</description></item><item><title>What is Browser Repaint and Reflow</title><link>https://time-friend.com/en/archive/what-is-browser-repaint-and-reflow/</link><pubDate>Mon, 25 Apr 2016 19:33:33 +0000</pubDate><guid>https://time-friend.com/en/archive/what-is-browser-repaint-and-reflow/</guid><description>&lt;h1 id="repaint-and-reflow-definitions"&gt;Repaint and Reflow Definitions&lt;/h1&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Repaint: When current element&amp;rsquo;s style (background color, font color, etc.) changes, we only need to re-render the changed element, repaint has smaller impact on browser performance, so generally not considered.
　　Repaint situations: Changing container&amp;rsquo;s appearance style, etc., like background: black, etc. Changing appearance, not changing layout, not affecting other dom.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Reflow: Process where browser recalculates element positions and geometric structure in document to re-render part or all of document. Because reflow may cause entire dom tree reconstruction, it&amp;rsquo;s a major performance killer. An element&amp;rsquo;s reflow causes subsequent reflow of all its child elements and ancestors immediately following it in DOM.&lt;/p&gt;</description></item></channel></rss>