<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Interview on Time Friend</title><link>https://time-friend.com/en/tags/interview/</link><description>Recent content in Interview 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/interview/index.xml" rel="self" type="application/rss+xml"/><item><title>Frontend Interview Knowledge Collection - JavaScript</title><link>https://time-friend.com/en/archive/interview-javascript/</link><pubDate>Mon, 07 Jan 2019 22:17:36 +0000</pubDate><guid>https://time-friend.com/en/archive/interview-javascript/</guid><description>&lt;h2 id="javascript-interview-knowledge-summary"&gt;JavaScript Interview Knowledge Summary&lt;/h2&gt;
&lt;h4 id="1-introduce-the-basic-data-types-of-js"&gt;1. Introduce the basic data types of JS.&lt;/h4&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;JS has six basic data types: Undefined, Null, Boolean, Number, String, and the Symbol type added in ES6,
which represents a unique and immutable data type after creation. Its appearance is mainly to solve the problem of possible global variable conflicts.
&lt;/code&gt;&lt;/pre&gt;&lt;h4 id="2-how-many-types-of-values-does-javascript-have-can-you-draw-their-memory-diagram"&gt;2. How many types of values does JavaScript have? Can you draw their memory diagram?&lt;/h4&gt;
&lt;p&gt;Related knowledge points:&lt;/p&gt;</description></item><item><title>Frontend Interview Knowledge Collection - HTML</title><link>https://time-friend.com/en/archive/interview-html/</link><pubDate>Sun, 06 Jan 2019 22:17:36 +0000</pubDate><guid>https://time-friend.com/en/archive/interview-html/</guid><description>&lt;h2 id="html-interview-knowledge-summary"&gt;HTML Interview Knowledge Summary&lt;/h2&gt;
&lt;h4 id="1-what-is-the-purpose-of-doctype"&gt;1. What is the purpose of DOCTYPE?&lt;/h4&gt;
&lt;p&gt;Related knowledge points:&lt;/p&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;IE5.5 introduced the concept of document mode, which is implemented through document type (DOCTYPE) switching.

The &amp;lt;!DOCTYPE&amp;gt; declaration is located at the first line of an HTML document, before the &amp;lt;html&amp;gt; tag. It tells the browser&amp;#39;s parser which document standard to use for parsing.

The absence or incorrect format of DOCTYPE will cause the document to render in compatibility mode.
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Answer (refer to 1-5):&lt;/p&gt;</description></item><item><title>Frontend Interview Knowledge Collection - CSS</title><link>https://time-friend.com/en/archive/interview-css/</link><pubDate>Sat, 05 Jan 2019 22:17:36 +0000</pubDate><guid>https://time-friend.com/en/archive/interview-css/</guid><description>&lt;h2 id="css-interview-knowledge-summary"&gt;CSS Interview Knowledge Summary&lt;/h2&gt;
&lt;h4 id="1-introduce-the-standard-css-box-model-how-is-the-low-version-ie-box-model-different"&gt;1. Introduce the standard CSS box model? How is the low-version IE box model different?&lt;/h4&gt;
&lt;p&gt;Related knowledge points:&lt;/p&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;(1) There are two box models: IE box model (border-box) and W3C standard box model (content-box)
(2) The box model consists of four parts: content, padding, margin, border

Difference between IE box model and W3C standard box model:

(1) W3C standard box model: width and height properties only include content, not border and padding
(2) IE box model: width and height properties include content, border, and padding, referring to content
+padding+border.

In IE8+ browsers, which box model to use can be controlled by box-sizing (a new CSS property). The default value is content-box, which is the standard box model.
If box-sizing is set to border-box, the IE box model is used. In IE6, 7, 8, if DOCTYPE is missing, the box model will be interpreted as IE box model.
If DOCTYPE is declared in the page, all browsers will interpret the box model as the W3C box model.
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Answer:&lt;/p&gt;</description></item><item><title>Frontend Interview Knowledge Collection - Comprehensive</title><link>https://time-friend.com/en/archive/interview-comprehensive/</link><pubDate>Fri, 04 Jan 2019 22:17:36 +0000</pubDate><guid>https://time-friend.com/en/archive/interview-comprehensive/</guid><description>&lt;h2 id="html-http-web-comprehensive-questions"&gt;HTML, HTTP, Web Comprehensive Questions&lt;/h2&gt;
&lt;h3 id="common-sorting-algorithm-time-complexity-and-space-complexity"&gt;Common sorting algorithm time complexity and space complexity&lt;/h3&gt;
&lt;p&gt;&lt;img src="img/sort-compare.png" alt="Sorting algorithm comparison"&gt;&lt;/p&gt;
&lt;h3 id="what-seo-should-frontend-pay-attention-to"&gt;What SEO should frontend pay attention to&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;Reasonable title, description, keywords: search engines weight these three in descending order. Title should emphasize key points, with important keywords appearing no more than twice and positioned early. Different pages should have different titles. Description should summarize page content concisely, with appropriate length and no keyword stuffing. Different pages should have different descriptions. Keywords should list important keywords only.&lt;/li&gt;
&lt;li&gt;Semantic HTML code compliant with W3C standards: semantic code helps search engines understand web pages easily.&lt;/li&gt;
&lt;li&gt;Important content HTML code placed first: search engines crawl HTML from top to bottom. Some search engines have length limits on crawling, so placing important content first ensures it gets crawled.&lt;/li&gt;
&lt;li&gt;Don&amp;rsquo;t output important content with JS: crawlers don&amp;rsquo;t execute JS to get content.&lt;/li&gt;
&lt;li&gt;Minimize iframe usage: search engines don&amp;rsquo;t crawl content inside iframes.&lt;/li&gt;
&lt;li&gt;Non-decorative images must include alt attributes.&lt;/li&gt;
&lt;li&gt;Improve website speed: website speed is an important factor in search engine ranking.&lt;/li&gt;
&lt;/ol&gt;
&lt;h3 id="session-tracking-methods-in-web-development"&gt;Session tracking methods in web development&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;cookie&lt;/li&gt;
&lt;li&gt;session&lt;/li&gt;
&lt;li&gt;URL rewriting&lt;/li&gt;
&lt;li&gt;Hidden input&lt;/li&gt;
&lt;li&gt;IP address&lt;/li&gt;
&lt;/ol&gt;
&lt;h3 id="difference-between-imgs-title-and-alt"&gt;Difference between &lt;code&gt;&amp;lt;img&amp;gt;&lt;/code&gt;&amp;rsquo;s title and alt&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;&lt;code&gt;title&lt;/code&gt; is one of the &lt;a href="http://www.w3.org/TR/html-markup/global-attributes.html#common.attrs.core"&gt;global attributes&lt;/a&gt;, used to provide additional advisory information for elements. It&amp;rsquo;s usually displayed when the mouse hovers over the element.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;alt&lt;/code&gt; is a unique attribute of &lt;code&gt;&amp;lt;img&amp;gt;&lt;/code&gt;, an equivalent description of the image content. It&amp;rsquo;s displayed when the image cannot load and is used by screen readers to interpret images. It improves image accessibility. Except for purely decorative images, it must have meaningful values, and search engines focus on analyzing it.&lt;/li&gt;
&lt;/ol&gt;
&lt;h3 id="what-is-doctype-examples-of-common-doctypes-and-their-characteristics"&gt;What is doctype? Examples of common doctypes and their characteristics&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;&lt;code&gt;&amp;lt;!doctype&amp;gt;&lt;/code&gt; declaration must be at the top of the HTML document, before the &lt;code&gt;&amp;lt;html&amp;gt;&lt;/code&gt; tag. In HTML5, it&amp;rsquo;s case-insensitive.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;&amp;lt;!doctype&amp;gt;&lt;/code&gt; is not an HTML tag; it&amp;rsquo;s an instruction to tell the browser which HTML version the current page uses.&lt;/li&gt;
&lt;li&gt;Modern browser HTML layout engines determine whether to use quirks mode or standards mode for rendering by checking the doctype. Some browsers have a &amp;ldquo;almost standards&amp;rdquo; mode.&lt;/li&gt;
&lt;li&gt;In HTML4.01, &lt;code&gt;&amp;lt;!doctype&amp;gt;&lt;/code&gt; points to a DTD. Since HTML4.01 is based on SGML, the DTD specifies markup rules to ensure the browser renders content correctly.&lt;/li&gt;
&lt;li&gt;HTML5 is not based on SGML, so DTD is not needed.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Common doctypes:&lt;/p&gt;</description></item></channel></rss>