Panduan Responsive Web Design
What responsive design adalah, why Google recommends ini di atas dynamic serving atau separate mobile URLs, how viewport meta tag membuat ini berfungsi, dan peringkat myth.
Bahasa
Responsive web design menyajikan yang sama HTML pada yang sama URL untuk setiap device dan menggunakan CSS media kueri untuk adapt layout untuk viewport. ini adalah Google's recommended mobile configuration — not because ini peringkat better (ini doesn't; Google memiliki said so outright) tetapi because there's one URL dan one set dari HTML untuk crawl dan indeks, which membuat ini easiest untuk implement dan maintain. ini memerlukan sebuah correct viewport meta tag untuk berfungsi di semua — without ini, phones fake sebuah desktop-width viewport dan Anda media kueri tidak pernah fire. ini contrasts dengan dynamic serving (sama URL, berbeda HTML via sebuah Vary header) dan separate URLs (m-dot). Responsive isn't automatically fast: layout adaptation adalah not performa, so Core Web Vitals masih perlu separate attention.
Evidence for this claim Responsive design serves the same HTML at the same URL while CSS adapts display to screen size. Scope: Google definition of responsive web design. Confidence: high · Verified: Google Search Central: Responsive design Evidence for this claim Google recommends responsive design because it is the easiest mobile pattern to implement and maintain. Scope: Google configuration recommendation. Confidence: high · Verified: Google Search Central: Mobile configurationsTL;DR — Responsive design berarti one situs web itu reshapes itself untuk fit whatever screen ini adalah pada — phone, tablet, atau laptop — menggunakan yang sama halaman dan sama address untuk everyone. ini adalah setup Google recommends because ini adalah simplest untuk bangun dan pertahankan berfungsi. ini perlu one kecil line dari code ( viewport meta tag) untuk berfungsi, dan ini melakukan not magically membuat Anda peringkat higher.
What responsive design adalah
sebuah responsive situs web adalah sebuah single situs web itu adapts -nya layout untuk size dari screen. sama halaman, sama web address, whether Anda open ini pada sebuah phone, sebuah tablet, atau sebuah big desktop monitor — columns rearrange, images resize, menu collapses, so ini selalu looks right.
alternative, older approaches split Anda situs di two: sebuah separate mobile
situs web pada -nya own address (like m.example.com), atau sebuah server itu quietly hands
phones dan desktops berbeda halaman dari yang sama address. Responsive design
skips semua dari itu. There’s one versi dari everything.
Why ini adalah recommended cara
Google recommends responsive design, dan -nya alasan adalah refreshingly plain: ini adalah easiest untuk bangun dan maintain. Because there’s hanya one halaman, Anda hanya memiliki one thing untuk pertahankan correct. Nothing dapat drift out dari sync antara sebuah “mobile version” (terjemahan) “mobile versi” dan sebuah “desktop version,” (terjemahan) “desktop versi,” because there aren’t two versi.
Evidence for this claim Google recommends responsive design because it is the easiest mobile pattern to implement and maintain. Scope: Google configuration recommendation. Confidence: high · Verified: Google Search Central: Mobile configurationsitu penting more daripada ini digunakan untuk, because Google now reads mobile versi dari Anda halaman untuk decide how Anda peringkat (itu’s pengindeksan mobile-pertama). dengan sebuah responsive situs, Anda mobile versi dan Anda desktop versi adalah yang sama thing — so there’s nothing untuk get wrong.
one line itu membuat ini berfungsi
Responsive design doesn’t berfungsi pada -nya own. Anda perlu ini di Anda halaman’s <head>:
<meta name="viewport" content="width=device-width, initial-scale=1">Without ini, phones pretend untuk menjadi desktop monitors dan shrink Anda whole halaman down untuk tiny, unreadable text — dan responsive layout tidak pernah kicks di. ini adalah not optional; ini adalah switch itu turns responsive design pada. (There’s sebuah whole deep dive pada viewport meta tag jika Anda ingin detail.)
thing people get wrong
Responsive design adalah not sebuah peringkat boost. Google memiliki said outright itu ini doesn’t peringkat responsive situs higher daripada situs dibangun lainnya cara. benefit adalah itu ini adalah simpler dan harder untuk mess up — not itu ini earns Anda positions.
dan “it looks okay on my phone” (terjemahan) “ini looks okay pada my phone” isn’t yang sama sebagai “it’s responsive.” (terjemahan) “ini adalah responsive.” Responsive berarti layout genuinely adapts via CSS pada sebuah single halaman — not itu ini happens untuk menjadi readable oleh luck.
ingin full versi — exact Google quotes, how ini compares untuk dynamic serving dan separate URLs, why viewport tag adalah sebuah hard requirement, dan why sebuah responsive situs dapat masih menjadi slow? Switch untuk Advanced tab.
Evidence for this claim Responsive design differs from dynamic serving, which changes HTML by user agent at one URL, and separate mobile URLs, which use distinct URLs. Scope: mobile and desktop rendered web documents Confidence: high · Verified: Mobile-first indexing best practices Evidence for this claim Responsive design serves the same HTML at the same URL while CSS adapts display to screen size. Scope: Google definition of responsive web design. Confidence: high · Verified: Google Search Central: Responsive design Evidence for this claim Google recommends responsive design because it is the easiest mobile pattern to implement and maintain. Scope: Google configuration recommendation. Confidence: high · Verified: Google Search Central: Mobile configurationsTL;DR — Responsive web design menyajikan sama HTML pada yang sama URL untuk setiap device dan menggunakan CSS media kueri untuk adapt layout untuk viewport. Google recommends ini — “the easiest design pattern to implement and maintain” (terjemahan) “ easiest design pattern untuk implement dan maintain” — tetapi explicitly melakukan not peringkat ini above dynamic serving atau separate URLs. -nya nyata edge adalah operational: one URL, one set dari HTML, so konten parity adalah automatic dan Google’s own mobile-pertama-pengindeksan checklist “only applies to dynamic serving and separate URL configurations.” (terjemahan) “hanya applies untuk dynamic serving dan separate URL configurations.” ini memerlukan sebuah correct viewport meta tag untuk function — without ini phones assume sebuah desktop-width viewport (980px iOS / 800px old Android) dan Anda media kueri tidak pernah fire. Contrast: dynamic serving (sama URL, berbeda HTML via
Vary: User-Agent) dan separate URLs (m-dot). Responsive controls layout, not speed — sebuah responsive situs dapat masih fail Core Web Vitals.
definition, precisely
Google’s own kata: responsive design “serves the same HTML code on the same URL regardless of the users’ device (for example, desktop, tablet, mobile, non-visual browser), but can display the content differently based on the screen size.” (terjemahan) “menyajikan yang sama HTML code pada yang sama URL regardless dari pengguna’ device (misalnya, desktop, tablet, mobile, non-visual browser), tetapi dapat display konten differently berdasarkan screen size.” itu kalimat berisi whole idea:
- sama HTML — one markup payload, not sebuah device-spesifik one.
- sama URL — no redirect untuk
m.example.com, no pengguna-agent fork. - Displayed differently oleh screen size — via CSS media kueri.
itu’s line itu separates ini dari two lainnya configurations Google
documents. Dynamic serving “uses the same URL regardless of device… relies on
user-agent sniffing and the Vary: user-agent HTTP response header to serve a
different version of the HTML to different devices.” (terjemahan) “menggunakan yang sama URL regardless dari device… relies pada
pengguna-agent sniffing dan undefined respons header HTTP untuk sajikan
berbeda versi dari HTML untuk berbeda devices.” Separate URLs “serves
different HTML to each device, and on separate URLs,” (terjemahan) “menyajikan
berbeda HTML untuk setiap device, dan pada separate URLs,” redirecting pengguna untuk
device-appropriate versi. Responsive adalah satu-satunya one dari three dengan sebuah single
HTML source.
Why Google recommends ini — simplicity, not sebuah peringkat edge
Google adalah direct: ini “recommends Responsive Web Design because it’s the easiest design pattern to implement and maintain.” (terjemahan) “recommends Responsive Web Design because ini adalah easiest design pattern untuk implement dan maintain.” Note what itu alasan adalah dan isn’t — ini adalah sebuah operational argument (one codebase, fewer moving bagian), not sebuah peringkat argument.
Evidence for this claim Google recommends responsive design because it is the easiest mobile pattern to implement and maintain. Scope: Google configuration recommendation. Confidence: high · Verified: Google Search Central: Mobile configurationssingle sebagian besar berguna — dan sebagian besar underused — line di Google’s mobile-pertama
best-practices doc adalah scope note: “The contents of this guide only apply to
dynamic serving and separate URL configurations. In case of responsive design, the
content and the metadata are the same on the mobile and desktop version of the
pages.” (terjemahan) “ contents dari ini guide hanya apply untuk
dynamic serving dan separate URL configurations. di case dari responsive design,
konten dan metadata adalah yang sama pada mobile dan desktop versi dari
halaman.” Read itu again. Google adalah telling Anda itu sebagian besar dari -nya panjang mobile-pertama
checklist — matching data terstruktur di seluruh versi, matching robots meta tags,
matching teks alt, setting Vary headers, wiring up rel=alternate/canonical
annotations — simply doesn’t apply untuk Anda jika Anda’re responsive, because there’s
hanya one versi untuk get right. itu’s strongest practical case untuk RWD, dan
almost nobody frames ini itu cara.
knock-pada benefits semua flow dari “one URL, one HTML” (terjemahan) “one URL, one HTML”:
- No duplicate-konten atau parity risk antara
example.com/pagedanm.example.com/page— there’s nothing untuk diverge. - No
Vary: User-Agentfragility cara dynamic serving carries (sebuah cache itu ignores header dapat sajikan wrong HTML untuk wrong device — atau untuk Googlebot). - No rantai pengalihan atau tautan-equity splitting di seluruh desktop dan mobile URLs.
- No annotation machinery (
rel=alternatepada desktop,rel=canonicalpada mobile) untuk maintain dan get wrong.
ini adalah exactly why, di my Ahrefs guide pada pengindeksan mobile-pertama, “use responsive design” (terjemahan) “gunakan responsive design” adalah pertama dari ten tips untuk membangun sebuah mobile-friendly situs — ini menghapus whole categories dari masalah sebelum mereka start.
melakukan responsive design directly meningkatkan rankings? No.
ini adalah myth untuk kill early. Google’s Zineb Ait Bahajji put ini plainly: Google melakukan not peringkat responsive-design situs better daripada situs menggunakan lainnya configurations (separate mobile situs atau dynamic serving). Google masih prefers RWD — because ini adalah easier untuk maintain, future-friendly, dan mereka see fewer configuration errors dengan ini — tetapi “fewer errors” (terjemahan) “fewer errors” adalah not yang sama sebagai “a ranking bonus.” (terjemahan) “sebuah peringkat bonus.” sebuah well-implemented dynamic-serving atau m-dot situs itu mempertahankan parity dapat peringkat identically; risk dengan itu adalah itu mereka drift, dan drift adalah what hurts Anda.
So honest framing: responsive design doesn’t win Anda rankings. ini saves Anda dari losing them untuk sebuah parity mistake, dan ini saves Anda maintenance time. Both adalah worth sebuah lot — neither adalah sebuah algorithm boost.
How ini berfungsi: viewport meta tag adalah sebuah prerequisite, not sebuah nicety
sebagian besar guides list viewport meta tag sebagai one bullet among banyak CSS tips. ini isn’t sebuah tip — ini adalah thing itu membuat responsive design function di semua. Google’s 2012 Search Central post explaining why Google itself went responsive adalah blunt tentang why: “By default, smartphone browsers pretend to be high-resolution desktop browsers, and lay out a page as if you were viewing it on a desktop monitor… The default viewport width for the default Android browser is 800px, and 980px for iOS, regardless of the number of actual physical pixels on the screen.” (terjemahan) “oleh default, smartphone browser pretend untuk menjadi tinggi-resolution desktop browser, dan lay out sebuah halaman sebagai jika Anda adalah viewing ini pada sebuah desktop monitor… default viewport width untuk default Android browser adalah 800px, dan 980px untuk iOS, regardless dari angka dari actual physical pixels pada screen.”
itu’s failure mode: without sebuah viewport tag, sebuah phone renders Anda halaman ke sebuah
980px-wide canvas dan lalu shrinks whole thing untuk fit — tiny text, “overview
mode,” (terjemahan) “overview
mode,” dan Anda carefully-written max-width: 479px media kueri tidak pernah triggers,
because browser thinks ini adalah 980px wide. fix adalah one line: “In order
to trigger the browser to render your page at a more readable scale, you need to
use the viewport meta element: <meta name="viewport" content="width=device-width, initial-scale=1">.” (terjemahan) “di order
untuk trigger browser untuk render Anda halaman di sebuah more readable scale, Anda perlu
gunakan viewport meta element: undefined.” Setting width=device-width juga berarti layout updates
when pengguna rotates device, which adalah what lets media kueri respond untuk
orientation. Deep mechanics — initial-scale, user-scalable/maximum-scale
accessibility traps — live di dedicated viewport meta tag artikel.
How ini berfungsi: CSS media kueri
dengan viewport set correctly, layout adapts dengan CSS media kueri — aturan itu apply hanya di certain viewport widths:
<style>
/* Base styles apply everywhere */
@media screen and (max-width: 479px) {
/* Portrait smartphones: stack columns, hide the sidebar, grow tap targets */
}
@media screen and (min-width: 480px) and (max-width: 1024px) {
/* Tablets */
}
</style>Treat pixel nilai above sebagai illustrative, not sebuah checklist untuk copy. durable practice — echoed di seluruh MDN’s media-kueri reference dan web.dev’s responsive-design course — adalah untuk treat breakpoints sebagai sebuah layout decision, not sebuah device list: set them where Anda own konten actually breaks (sebuah nav wraps badly, columns get too narrow, text pendek-lines), dan test ranges antara breakpoints too, not hanya sebuah handful dari named screen sizes. Device viewport widths perubahan setiap product cycle; konten-driven breakpoints don’t perlu updating when mereka melakukan.
Google’s 2012 post juga flagged CSS discipline itu mempertahankan sebuah responsive layout
dari breaking: “Instead of specifying width for container elements, we started
using max-width instead. In place of height we used min-height, so larger
fonts or multi-line text don’t break the container’s boundaries.” (terjemahan) “alih-alih specifying undefined untuk container elements, kami started
menggunakan undefined instead. di place dari undefined kami digunakan undefined, so larger
fonts atau multi-line text don’t break container’s boundaries.” mereka three
guiding principles adalah equally sederhana: halaman seharusnya render legibly di apa pun
resolution, one set dari konten seharusnya menjadi viewable pada apa pun device, dan Anda harus
“never show a horizontal scrollbar, whatever the window size.” (terjemahan) “tidak pernah tampilkan sebuah horizontal scrollbar, whatever window size.” Modern refinements
(clamp() untuk fluid jenis, container kueri, srcset/<picture> untuk
device-appropriate images) sit pada top dari itu foundation — mereka’re not diperlukan
untuk menjadi “truly” (terjemahan) “truly” responsive. untuk implementation depth beyond SEO framing, Google’s
own web.dev Learn Responsive Design course adalah
place untuk go.
Responsive vs. dynamic serving vs. separate URLs
three configurations Google documents, side oleh side:
| Responsive design | Dynamic serving | Separate URLs (m-dot) | |
|---|---|---|---|
| URL | One URL | One URL | berbeda URLs (m.example.com) |
| HTML | sama HTML untuk semua | berbeda HTML per device | berbeda HTML per device |
| How ini adapts | CSS media kueri | server pengguna-agent sniffing | Redirect untuk device-spesifik situs |
| Extra requirement | Viewport meta tag | Vary: User-Agent header | rel=alternate + rel=canonical, hreflang di seluruh versi |
| Parity risk | rendah — one versi | Medium — easy untuk drift | tinggi — two situs untuk sync |
| Google’s stance | Recommended | didukung | didukung, least recommended |
Dynamic serving masih membuat sense occasionally (e.g. radically berbeda
device experiences itu sebuah single template dapat’t reasonably express); separate URLs
adalah mostly legacy now. jika Anda’re pada either, full deep dives — including
Vary header mechanics untuk dynamic serving — adalah di dynamic serving artikel.
tetapi untuk sebuah greenfield bangun, responsive adalah default jawaban, dan burden dari
proof adalah pada choosing anything else.
Bing’s angle: criteria, not architecture
Bing agrees dengan outcome tetapi frames ini differently. ini doesn’t endorse “Responsive Web Design” (terjemahan) “Responsive Web Design” oleh name cara Google melakukan; instead -nya mobile-friendliness test evaluates testable criteria — viewport dan zoom-control configuration, width dari halaman konten, readability dari text, spacing dari tautan dan lainnya tap targets, dan gunakan dari incompatible plug-ins. ini recommends yang sama viewport tag Google melakukan, dan -nya konten-width aturan adalah itu “the content width should not exceed the screen width” (terjemahan) “ konten width seharusnya not exceed screen width” — overflow gets flagged sebagai “Page content does not fit device width.” (terjemahan) “halaman konten melakukan not fit device width.” So ini adalah safe untuk say Bing dan Google both reward mobile-friendly rendering; hanya attribute explicit recommended-configuration language untuk Google specifically.
Responsive design dan pengindeksan mobile-pertama (post-July 2024)
pengindeksan mobile-pertama adalah done — Google finished rollout, dan ini now menggunakan mobile-di-crawl versi dari Anda halaman untuk pengindeksan dan peringkat oleh default. Almost setiap guide masih writes tentang responsive design sebagai sebuah “get ready for mobile-first indexing” (terjemahan) “get ready untuk mobile-pertama pengindeksan” future-tense move. itu framing adalah stale. rollout adalah complete, dan untuk sebuah sudah-responsive situs ini perubahan nothing — Anda konten dan metadata adalah sudah identical di seluruh mobile dan desktop because there’s one versi. itu’s not sebuah coincidence; ini adalah entire poin. situs’s pengindeksan mobile-pertama artikel covers timeline dan parity aturan di full.
Responsive ≠ automatically fast
biggest trap. Responsive design controls layout, not performa. sebuah
responsive situs dapat masih ship sebuah 3 MB desktop hero image itu phones hanya scale
down di CSS, atau kirim desktop-weight JavaScript untuk sebuah perangkat seluler — dan fail LCP atau
CLS badly. “Responsive” (terjemahan) “Responsive” adalah not sebuah Core Web Vitals pass. Truly optimizing berarti
serving appropriately sized assets per breakpoint (itu’s what srcset/<picture>
dan responsive images adalah untuk), not hanya letting CSS shrink oversized ones. Fix
performa separately — see Core Web Vitals konten dan responsive-images
material untuk how.
performa isn’t satu-satunya assumption itu doesn’t automatically hold. One codebase doesn’t guarantee identical rendering, accessibility, atau search-hasil presentation either — browser dan devices masih differ enough di how mereka handle CSS, fonts, dan JavaScript-dependent layout itu cross-device dan cross-browser testing stays bagian dari job, yang sama sebagai ini akan di bawah apa pun lainnya configuration. “Responsive” (terjemahan) “Responsive” describes sebuah architecture, not sebuah verified outcome; test ini like Anda’d test anything else.
sebuah little history
Worth one paragraf, because ini reframes whole “best practice.” (terjemahan) “best practice.” Google didn’t recommend responsive design pertama dan adopt ini later — ini went responsive pada -nya own properties pertama, untuk engineering alasan, dan recommendation diikuti. sebagai -nya 2012 post menjelaskan, Google “faced a stark choice between creating mobile specific websites, or adapting existing sites… Creating two sites would allow us to better target specific hardware, but maintaining a single shared site preserves a canonical URL, avoiding any complicated redirects, and simplifies the sharing of web addresses.” (terjemahan) “faced sebuah stark choice antara membuat mobile spesifik situs web, atau adapting existing situs… membuat two situs akan allow us untuk better target spesifik hardware, tetapi maintaining sebuah single shared situs preserves sebuah canonical URL, avoiding apa pun complicated redirects, dan simplifies sharing dari web addresses.” Canonical-URL preservation, no redirect complexity, simpler sharing — itu adalah alasan sebelum anyone called ini sebuah SEO best practice, dan mereka’re masih alasan.
Where ini sits di bigger picture: responsive design adalah one piece dari broader mobile SEO story, alongside mobile usability, intrusive interstitials, history dari AMP, dan mobile SEO checklist itu ties them together. ini artikel adalah “how should I serve mobile?” (terjemahan) “how seharusnya I sajikan mobile?” piece; others cover rest.
AI summary
sebuah condensed take pada Advanced versi:
- Responsive web design = sama HTML, sama URL, CSS media kueri adapt layout untuk viewport. ini adalah one dari Google’s three documented mobile configurations, alongside dynamic serving dan separate URLs.
- Google recommends ini — “the easiest design pattern to implement and maintain” (terjemahan) “ easiest design pattern untuk implement dan maintain” — tetapi ini adalah not sebuah peringkat boost. Google (Zineb Ait Bahajji) memiliki said ini melakukan not peringkat responsive situs above lainnya configurations.
- ** nyata edge adalah operational.** Google’s own scope note: -nya mobile-pertama
checklist “only applies to dynamic serving and separate URL configurations… In
case of responsive design, the content and the metadata are the same” (terjemahan) “hanya applies untuk dynamic serving dan separate URL configurations… di
case dari responsive design, konten dan metadata adalah yang sama” — so
parity,
Varyheaders, dan alternate/canonical annotations mostly don’t apply. - ** viewport meta tag adalah sebuah hard prerequisite,** not sebuah tip: without
<meta name="viewport" content="width=device-width, initial-scale=1">, phones assume sebuah desktop-width viewport (980px iOS / 800px old Android) dan media kueri tidak pernah fire. - Contrast: dynamic serving (sama URL, berbeda HTML via
Vary: User-Agent) dan separate URLs (m-dot, perlurel=alternate/canonical). Both adalah riskier because two versi dapat drift. - Bing rewards mobile-friendliness via testable criteria (viewport, konten width, readability, tap-target spacing) alih-alih endorsing RWD oleh name.
- pengindeksan mobile-pertama adalah complete; untuk sebuah sudah-responsive situs itu perubahan nothing, since konten/metadata adalah sudah identical.
- Responsive ≠ fast. ini controls layout, not performa — sebuah responsive situs dapat masih fail Core Web Vitals jika assets dan JS aren’t dioptimalkan per breakpoint.
- Breakpoints adalah sebuah layout decision, not sebuah device list. Set them where konten actually breaks dan test ranges antara them, not hanya sebuah handful dari named screen sizes.
- Responsive ≠ identical everywhere. One codebase doesn’t guarantee identical rendering, accessibility, atau presentation di seluruh browser dan devices — cross-device testing masih penting.
Official documentation
Primary-source documentation dari mesin pencari.
- pengindeksan mobile-pertama Best Practices — canonical doc: responsive definition, three configurations, “easiest to implement and maintain” (terjemahan) “easiest untuk implement dan maintain” recommendation, dan scope note itu sebagian besar dari checklist doesn’t apply untuk responsive situs. Start here.
- Responsive design – harnessing power dari media kueri (2012) — Google explaining why ini went responsive: viewport-tag requirement, 980px/800px default-viewport masalah, dan
max-width/min-heightCSS discipline. - Learn Responsive Design (web.dev) — Google-owned developer course pada implementation side (media kueri, responsive images, dark mode). old
developers.google.com/search/mobile-sites/mobile-seo/responsive-designURL now redirects here. - Understanding Google pengalaman halaman — where mobile-friendliness dan Core Web Vitals fit sebagai signals (relevant untuk “responsive ≠ fast” (terjemahan) “responsive ≠ fast” poin).
Bing / Microsoft
- Bing Webmaster Guidelines — Bing’s umum guidance; mobile-friendliness adalah treated sebagai testable criteria alih-alih sebuah named preferred architecture.
- Announcing Bing Mobile Friendliness Test alat (Nov 2015) — five criteria Bing memeriksa: viewport/zoom config, konten width, readability, tap-target spacing, dan incompatible plug-ins.
Quotes dari source
pada—record statements dari Google dan Bing. setiap tautan adalah sebuah deep tautan itu jumps untuk quoted passage pada source halaman.
Google — definition dan recommendation
- “Serves the same HTML code on the same URL regardless of the users’ device (for example, desktop, tablet, mobile, non-visual browser), but can display the content differently based on the screen size.” (terjemahan) “menyajikan yang sama HTML code pada yang sama URL regardless dari pengguna’ device (misalnya, desktop, tablet, mobile, non-visual browser), tetapi dapat display konten differently berdasarkan screen size.” — Google Search Central docs. Jump untuk quote
- “Google recommends Responsive Web Design because it’s the easiest design pattern to implement and maintain.” (terjemahan) “Google recommends Responsive Web Design because ini adalah easiest design pattern untuk implement dan maintain.” Jump untuk quote
- “The contents of this guide only apply to dynamic serving and separate URL configurations. In case of responsive design, the content and the metadata are the same on the mobile and desktop version of the pages.” (terjemahan) “ contents dari ini guide hanya apply untuk dynamic serving dan separate URL configurations. di case dari responsive design, konten dan metadata adalah yang sama pada mobile dan desktop versi dari halaman.” Jump untuk quote
Google — dynamic serving dan separate URLs (untuk contrast)
- “Uses the same URL regardless of device. This configuration relies on user-agent sniffing and the Vary: user-agent HTTP response header to serve a different version of the HTML to different devices.” (terjemahan) “menggunakan yang sama URL regardless dari device. ini configuration relies pada pengguna-agent sniffing dan Vary: pengguna-agent respons header HTTP untuk sajikan berbeda versi dari HTML untuk berbeda devices.” (Dynamic serving.) Jump untuk quote
- “Serves different HTML to each device, and on separate URLs. Like dynamic serving, this configuration relies on the user-agent and Vary HTTP headers to redirect users to the device-appropriate version of the site.” (terjemahan) “menyajikan berbeda HTML untuk setiap device, dan pada separate URLs. Like dynamic serving, ini configuration relies pada pengguna-agent dan Vary header HTTP untuk redirect pengguna untuk device-appropriate versi dari situs.” (Separate URLs.) Jump untuk quote
Google — why viewport tag adalah diperlukan (2012 Search Central blog)
- “By default, smartphone browsers pretend to be high-resolution desktop browsers, and lay out a page as if you were viewing it on a desktop monitor… The default viewport width for the default Android browser is 800px, and 980px for iOS, regardless of the number of actual physical pixels on the screen.” (terjemahan) “oleh default, smartphone browser pretend untuk menjadi tinggi-resolution desktop browser, dan lay out sebuah halaman sebagai jika Anda adalah viewing ini pada sebuah desktop monitor… default viewport width untuk default Android browser adalah 800px, dan 980px untuk iOS, regardless dari angka dari actual physical pixels pada screen.” Jump untuk quote
- “In order to trigger the browser to render your page at a more readable scale, you need to use the viewport meta element.” (terjemahan) “di order untuk trigger browser untuk render Anda halaman di sebuah more readable scale, Anda perlu gunakan viewport meta element.” Jump untuk quote
- “We faced a stark choice between creating mobile specific websites, or adapting existing sites and new launches to render well on both desktop and mobile… maintaining a single shared site preserves a canonical URL, avoiding any complicated redirects, and simplifies the sharing of web addresses.” (terjemahan) “kami faced sebuah stark choice antara membuat mobile spesifik situs web, atau adapting existing situs dan baru launches untuk render well pada both desktop dan mobile… maintaining sebuah single shared situs preserves sebuah canonical URL, avoiding apa pun complicated redirects, dan simplifies sharing dari web addresses.” Jump untuk quote
- “Instead of specifying
widthfor container elements, we started usingmax-widthinstead. In place ofheightwe usedmin-height, so larger fonts or multi-line text don’t break the container’s boundaries.” (terjemahan) “alih-alih specifying undefined untuk container elements, kami started menggunakan undefined instead. di place dari undefined kami digunakan undefined, so larger fonts atau multi-line text don’t break container’s boundaries.” Jump untuk quote
Google — no peringkat boost (Zineb Ait Bahajji, via mesin pencari Roundtable’s coverage)
- Google melakukan “not rank responsive web design sites better than sites using other configurations (separate site for mobile or dynamic serving).” (terjemahan) “not peringkat responsive web design situs better daripada situs menggunakan lainnya configurations (separate situs untuk mobile atau dynamic serving).” Google’s stated alasan untuk masih preferring ini: “it’s easier to maintain, it’s future-friendly and we see less configuration errors with RWD.” (terjemahan) “ini adalah easier untuk maintain, ini adalah future-friendly dan kami see less configuration errors dengan RWD.” Read coverage
Google (Nov 2016), relayed via my SMX Advanced 2017 deck
- “If you have a responsive site or a dynamic serving site where the primary content and markup is equivalent across mobile and desktop, you shouldn’t have to change anything.” (terjemahan) “jika Anda memiliki sebuah responsive situs atau sebuah dynamic serving situs where primary konten dan markup adalah equivalent di seluruh mobile dan desktop, Anda shouldn’t memiliki untuk perubahan anything.” See deck
#:~:text= fragment di ini pass, so ini adalah ditautkan untuk artikel alih-alih deep-ditautkan — confirm exact wording terhadap live halaman sebelum treating ini sebagai akhir verbatim. 2016 Google statement adalah quoted here sebagai relayed melalui my own SMX Advanced 2017 deck (attributed untuk Google Webmasters Blog, Nov 2016), not fetched dari sebuah live primary Google URL. Which mobile configuration seharusnya I gunakan?
untuk almost setiap baru bangun jawaban adalah responsive — tetapi ada legitimate alasan lainnya two masih exist. Click melalui ini.
Choosing a mobile configuration
Responsive design — cheat sheet
** definition:** sama HTML, sama URL, CSS media kueri adapt layout untuk viewport. One versi dari everything.
** diperlukan tag** (nothing berfungsi without ini):
<meta name="viewport" content="width=device-width, initial-scale=1">Config comparison
| Config | One URL? | sama HTML? | Extra requirement | Google’s stance |
|---|---|---|---|---|
| Responsive | Yes | Yes | Viewport meta tag | Recommended |
| Dynamic serving | Yes | No (oleh UA) | Vary: User-Agent | didukung, fragile |
| Separate URLs (m-dot) | No | No | rel=alternate + canonical, hreflang | Least recommended |
Why responsive, di one line setiap
- One URL, one HTML → konten parity adalah automatic.
- Google’s checklist “only applies to dynamic serving and separate URL configurations.” (terjemahan) “hanya applies untuk dynamic serving dan separate URL configurations.”
- No
Varyheader risk, no rantai pengalihan, no alternate/canonical annotations. - Easiest untuk implement dan maintain — Google’s stated alasan.
What ini adalah NOT
- Not sebuah peringkat boost (Google: doesn’t peringkat responsive above lainnya configs).
- Not automatically fast — layout ≠ performa; CWV masih perlu berfungsi.
- Not yang sama sebagai “looks okay on my phone” (terjemahan) “looks okay pada my phone” — ini adalah media-kueri-driven adaptation.
Viewport failure mode: no tag → phone assumes 980px (iOS) / 800px (old Android) viewport, shrinks halaman, media kueri tidak pernah fire.
Bing: rewards mobile-friendliness oleh testable criteria (viewport, konten width, readability, tap-target spacing) — doesn’t endorse “RWD” (terjemahan) “RWD” oleh name.
pengindeksan mobile-pertama: complete; untuk sebuah responsive situs ini perubahan nothing — konten/metadata sudah identical.
Responsive design QA checklist
Run ini untuk confirm sebuah situs adalah genuinely responsive dan not hanya “fluid desktop” (terjemahan) “fluid desktop”:
- Viewport meta tag present dan correct —
<meta name="viewport" content="width=device-width, initial-scale=1">di<head>dari setiap halaman. - No zoom-blocking — hindari
user-scalable=no/maximum-scale=1di viewport tag (accessibility regression, dan Bing dapat flag ini). - sama URL, sama HTML di seluruh devices — no pengguna-agent fork, no redirect untuk sebuah separate mobile URL.
- No horizontal scroll di umum widths (360, 390, 414, 768, 1024, 1280).
- Media kueri actually fire — layout genuinely restructures di breakpoints, not hanya shrinks.
- Tap targets big enough dan spaced (~48px) pada kecil breakpoints.
- Readable text without zooming (~16px base floor).
- Images sized per breakpoint — menggunakan
srcset/<picture>, not sebuah giant desktop image scaled down di CSS. - CSS/JS not blocked di
robots.txt— Googlebot harus render responsive layout. - Mobile Core Web Vitals pass — LCP < 2,5s, INP < 200ms, CLS < 0,1 pada mobile (responsive ≠ fast; periksa separately).
- tanpa konten hidden dari mobile via
display:noneitu Anda actually ingin terindeks. - Rendered mobile HTML reviewed di Search Console pemeriksaan URL.
- Spot-diperiksa pada nyata browser/devices, not hanya sebuah resized desktop window — one codebase doesn’t guarantee identical rendering everywhere.
Responsive design anti-patterns
mistakes itu turn “we’re responsive” (terjemahan) “kami’re responsive” ke sebuah masalah:
- No viewport meta tag (atau sebuah wrong one). single sebagian besar umum failure — media kueri adalah semua written correctly tetapi tidak pernah fire because phone adalah rendering ke sebuah 980px canvas. selalu pertama thing untuk periksa.
user-scalable=no/maximum-scale=1. Blocking pinch-zoom adalah sebuah accessibility regression dan dapat get flagged oleh Bing’s mobile test. Don’t disable zoom untuk “protect” (terjemahan) “protect” Anda layout.- “Fluid desktop” (terjemahan) “Fluid desktop” masquerading sebagai responsive. layout scales proportionally tetapi tidak pernah restructures — three columns hanya get narrower alih-alih stacking. ini technically resizes; ini isn’t really responsive.
display:nonepada konten Anda ingin terindeks. Hiding sebuah whole bagian pada mobile via CSS untuk “keep it clean.” (terjemahan) “pertahankan ini clean.” di bawah pengindeksan mobile-pertama mobile HTML adalah what’s read — hide ini dan Anda risk ini not menjadi terindeks. (Tabs/accordions itu pertahankan konten di HTML adalah fine; fully menghapus ini adalah not.)- Treating “responsive” (terjemahan) “responsive” sebagai sebuah performa strategy. Shipping sebuah 3 MB desktop hero dan letting CSS shrink ini, atau sending desktop-weight JS untuk phones. layout adapts; payload doesn’t. ini adalah how responsive situs fail Core Web Vitals.
- Reaching untuk dynamic serving atau m-dot oleh default. Choosing sebuah two-versi
architecture when sebuah single responsive template akan melakukan — signing up untuk parity
drift,
Vary-header fragility, atau annotation maintenance Anda didn’t perlu. - Assuming responsive earns rankings. membangun business case pada sebuah peringkat boost itu doesn’t exist. Sell ini pada simplicity dan fewer errors, which adalah nyata.
periksa sebuah halaman untuk responsive readiness
Quick cara untuk confirm two things itu membuat atau break responsive design: viewport tag, dan whether server adalah quietly forking HTML oleh pengguna-agent.
1) adalah viewport meta tag present? (shell)
# Fetch the page and look for the viewport meta tag
curl -s https://example.com/ | grep -io '<meta[^>]*name=["'"'"']viewport["'"'"'][^>]*>'
# Expect something like:
# <meta name="viewport" content="width=device-width, initial-scale=1">2) melakukan server sajikan berbeda HTML untuk mobile vs. desktop? (shell)
jika byte counts differ significantly, Anda dapat menjadi pada dynamic serving — dan Anda’ll
ingin sebuah Vary: User-Agent header untuk go dengan ini.
UA_MOBILE="Mozilla/5.0 (Linux; Android 14; Pixel 8) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125 Mobile Safari/537.36"
UA_DESKTOP="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125 Safari/537.36"
echo "Mobile bytes: $(curl -s -A "$UA_MOBILE" https://example.com/ | wc -c)"
echo "Desktop bytes: $(curl -s -A "$UA_DESKTOP" https://example.com/ | wc -c)"
# If they differ, check for the Vary header (needed for dynamic serving):
curl -sI -A "$UA_MOBILE" https://example.com/ | grep -i '^vary:'
# Expect: Vary: User-Agent (among any other Vary values)3) DevTools console — audit viewport tag dari sebuah dimuat halaman
Paste ke browser console pada apa pun halaman:
(() => {
const vp = document.querySelector('meta[name="viewport"]');
if (!vp) return console.warn('❌ No viewport meta tag — responsive layout will not work.');
const c = vp.getAttribute('content') || '';
console.log('viewport content:', c);
console.log(/width=device-width/.test(c) ? '✅ width=device-width set' : '❌ missing width=device-width');
console.log(/user-scalable=no|maximum-scale=1(\b|,|$)/.test(c)
? '⚠️ zoom is blocked — accessibility regression' : '✅ zoom not blocked');
})();4) DevTools console — flag horizontal overflow ( “no horizontal scrollbar” (terjemahan) “no horizontal scrollbar” aturan)
Run di sebuah narrow viewport (device toolbar pada) untuk temukan elements wider daripada screen:
(() => {
const w = document.documentElement.clientWidth;
const bleeding = [...document.querySelectorAll('*')]
.filter(el => el.getBoundingClientRect().right > w + 1)
.slice(0, 20);
console.log(bleeding.length ? '⚠️ Elements overflowing the viewport:' : '✅ No horizontal overflow');
bleeding.forEach(el => console.log(el.tagName.toLowerCase() + (el.className ? '.' + String(el.className).split(' ').join('.') : ''), el));
})();5) Bookmarklet — quick viewport periksa
Save sebagai sebuah bookmark dan click pada apa pun halaman:
javascript:(()=>{const v=document.querySelector('meta[name="viewport"]');alert(v?('viewport: '+v.getAttribute('content')):'No viewport meta tag found — responsive layout will not work.');})(); Test yourself: Responsive Design
Five quick pertanyaan pada responsive web design. Pick sebuah jawaban untuk setiap, lalu periksa.
Resources worth Anda time
My writing
- pengindeksan mobile-pertama Goes Mobile-hanya — my Ahrefs guide; “use responsive design” (terjemahan) “gunakan responsive design” leads ten-tip checklist untuk membangun sebuah mobile-friendly situs, dan ini covers konten-parity background itu membuat responsive safe default.
- Beginner’s Guide untuk SEO teknis — where mobile configuration sits di bigger crawl/indeks/peringkat picture.
- Core Web Vitals: What mereka adalah & cara meningkatkan Yours — performa side, since responsive alone doesn’t membuat Anda fast.
My speaking
- pengindeksan mobile-pertama (SMX Advanced 2017) (SlideShare) — my deck pada mobile configurations; ini quotes Google’s Nov 2016 line itu responsive dan dynamic-serving situs dengan equivalent konten “shouldn’t have to change anything” (terjemahan) “shouldn’t memiliki untuk perubahan anything” untuk pengindeksan mobile-pertama. (Standing disclaimer: ini adalah my understanding dari ini sistem, not sebuah guarantee dari completeness.)
dari sekitar industry
- pengindeksan mobile-pertama Best Practices (Google) — canonical doc: responsive definition, three configurations, dan scope note itu sebagian besar dari checklist doesn’t apply untuk responsive situs.
- Responsive design – harnessing power dari media kueri (Google, 2012) — why Google itself went responsive, dan origin dari -nya viewport-tag recommendation.
- Learn Responsive Design (web.dev / Google) — implementation-depth course: media kueri, responsive images, pengguna preferences.
- Announcing Bing Mobile Friendliness Test alat (Microsoft Bing) — Bing’s five mobile-friendliness criteria (viewport, konten width, readability, tap-target spacing, plug-ins).
- Google: Responsive Design adalah Not sebuah sinyal peringkat Boost (mesin pencari Roundtable) — Barry Schwartz’s reporting dari Zineb Ait Bahajji “no ranking boost” (terjemahan) “no peringkat boost” statement.
- adalah responsive web design enough? (Hint: No) (mesin pencari Land) — contrarian case itu RWD isn’t sebuah silver bullet.
- Top 7 SEO Benefits dari Responsive Web Design (mesin pencari Journal) — practical single-URL dan parity wins, laid out.
Videos
- Google Search Central (YouTube) — Martin Splitt’s mobile-friendliness dan rendering explainers, plus How Google Search berfungsi series, cover how Googlebot handles responsive layouts. Channel
Log perubahan
Diperbarui 18 Jul 2026.
Ringkasan editorial dan detail perubahan yang tercatat.Detail perubahan
-
Catatan perubahan terperinci saat ini tersedia dalam bahasa Inggris.
-
Catatan perubahan terperinci saat ini tersedia dalam bahasa Inggris.
Perbandingan lengkap tidak tersedia — tidak ada cuplikan sebelumnya yang diarsipkan untuk revisi ini.