Panduan Responsive Web Design

Apa responsive design adalah, mengapa Google recommends ini di atas dynamic serving atau terpisah mobile URLs, bagaimana viewport meta tag membuat ini berfungsi, dan peringkat myth.

Pertama kali diterbitkan: 2 Jul 2026 · Terakhir diperbarui: 3 Agu 2026 · Lanjutan

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 — tidak karena ini peringkat better (ini tidak; Google memiliki mengatakan so outright) tetapi karena ada satu URL dan satu set dari HTML untuk crawl dan indeks, yang membuat ini easiest untuk implement dan maintain. ini memerlukan sebuah correct viewport meta tag untuk berfungsi di semua — tanpa ini, phones fake sebuah desktop-width viewport dan Anda media kueri tidak pernah fire. ini contrasts dengan dynamic serving (sama URL, berbeda HTML melalui sebuah Vary header) dan terpisah URLs (m-dot). Responsive tidak secara otomatis fast: layout adaptation adalah tidak performa, so Core Web Vitals masih perlu terpisah attention.

«> TL;DR — Responsive web design serves the same HTML on the same URL to

every device and uses CSS media queries to adapt the layout to the viewport. Google recommends it — “the easiest design pattern to implement and maintain” — but explicitly does not rank it above dynamic serving or separate URLs. Its real edge is operational: one URL, one set of HTML, so content parity is automatic and Google’s own mobile-first-indexing checklist “only applies to dynamic serving and separate URL configurations.” It requires a correct viewport meta tag to function — without it phones assume a desktop-width viewport (980px iOS / 800px old Android) and your media queries never fire. Contrast: dynamic serving (same URL, different HTML via Vary: User-Agent) and separate URLs (m-dot). Responsive controls layout, not speed — a responsive site can still fail Core Web Vitals.

Bukti untuk klaim ini Responsive design differs from dynamic serving, which changes HTML by user agent at one URL, and separate mobile URLs, which use distinct URLs. Cakupan: mobile and desktop rendered web documents Tingkat keyakinan: tinggi · Diverifikasi: Mobile-first indexing best practices

» (Terjemahan) (Ringkasan bahasa Indonesia untuk bagian dua puluh satu, bagian kecil satu: teks sumber dipertahankan agar dapat diperiksa dalam tinjauan penutur asli.)

Bukti untuk klaim ini Responsive design serves the same HTML at the same URL while CSS adapts display to screen size. Cakupan: Google definition of responsive web design. Tingkat keyakinan: tinggi · Diverifikasi: Google Search Central: Responsive design Bukti untuk klaim ini Google recommends responsive design because it is the easiest mobile pattern to implement and maintain. Cakupan: Google configuration recommendation. Tingkat keyakinan: tinggi · Diverifikasi: Google Search Central: Mobile configurations

definition, precisely

«Google’s own words: 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.” That sentence contains the whole idea: » (Terjemahan) (Ringkasan bahasa Indonesia untuk bagian dua puluh empat, bagian kecil satu: teks sumber dipertahankan agar dapat diperiksa dalam tinjauan penutur asli.)

  • sama HTML — satu markup payload, tidak sebuah device-spesifik satu.
  • sama URL — Tidak redirect untuk m.example.com, Tidak pengguna-agent fork.
  • Displayed differently oleh screen size — melalui CSS media kueri.

«That’s the line that separates it from the two other 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.” Separate URLs “serves different HTML to each device, and on separate URLs,” redirecting users to the device-appropriate version. Responsive is the only one of the three with a single HTML source.

Bukti untuk klaim ini Responsive design differs from dynamic serving, which changes HTML by user agent at one URL, and separate mobile URLs, which use distinct URLs. Cakupan: mobile and desktop rendered web documents Tingkat keyakinan: tinggi · Diverifikasi: Mobile-first indexing best practices

» (Terjemahan) (Ringkasan bahasa Indonesia untuk bagian dua puluh enam, bagian kecil satu: teks sumber dipertahankan agar dapat diperiksa dalam tinjauan penutur asli.)

Mengapa Google recommends ini — simplicity, tidak sebuah peringkat edge

Google adalah direct: ini “recommends Responsive Web Design karena ini itu easiest design pattern untuk implement dan maintain.” (terjemahan) “recommends Responsive Web Design karena ini adalah easiest design pattern untuk implement dan maintain.” Note apa itu alasan adalah dan tidak — ini adalah sebuah operational argument (satu codebase, fewer moving bagian), tidak sebuah peringkat argument.

Bukti untuk klaim ini Google recommends responsive design because it is the easiest mobile pattern to implement and maintain. Cakupan: Google configuration recommendation. Tingkat keyakinan: tinggi · Diverifikasi: Google Search Central: Mobile configurations

«The single most useful — and most underused — line in Google’s mobile-first best-practices doc is the 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.” Read that again. Google is telling you that most of its long mobile-first checklist — matching structured data across versions, matching robots meta tags, matching alt text, setting Vary headers, wiring up rel=alternate/canonical annotations — simply doesn’t apply to you if you’re responsive, because there’s only one version to get right. That’s the strongest practical case for RWD, and almost nobody frames it that way. » (Terjemahan) (Ringkasan bahasa Indonesia untuk bagian dua puluh sembilan, bagian kecil satu: teks sumber dipertahankan agar dapat diperiksa dalam tinjauan penutur asli.)

«The knock-on benefits all flow from “one URL, one HTML”: » (Terjemahan) (Ringkasan bahasa Indonesia untuk bagian tiga puluh, bagian kecil satu: teks sumber dipertahankan agar dapat diperiksa dalam tinjauan penutur asli.)

  • Tidak duplicate-konten atau parity risk antara example.com/page dan m.example.com/page — ada tidak ada apa pun untuk diverge.
  • Tidak Vary: User-Agent fragility cara dynamic serving carries (sebuah cache itu ignores header dapat sajikan wrong HTML untuk wrong device — atau untuk Googlebot).
  • Tidak rantai pengalihan atau tautan-equity splitting di seluruh desktop dan mobile URLs.
  • Tidak annotation machinery (rel=alternate pada desktop, rel=canonical pada mobile) untuk maintain dan mendapatkan wrong.

ini adalah persis mengapa, di my Ahrefs guide pada pengindeksan mobile-pertama, “gunakan responsive design” (terjemahan) “gunakan responsive design” adalah pertama dari ten tips untuk membangun sebuah mobile-friendly situs — ini menghapus seluruh categories dari masalah sebelum mereka mulai.

melakukan responsive design secara langsung meningkatkan rankings? Tidak.

ini adalah myth untuk kill early. Google’s Zineb Ait Bahajji put ini plainly: Google melakukan tidak peringkat responsive-design situs better daripada situs menggunakan lainnya configurations (terpisah mobile situs atau dynamic serving). Google masih prefers RWD — karena ini adalah easier untuk maintain, future-friendly, dan mereka see fewer configuration errors dengan ini — tetapi “fewer errors” (terjemahan) “fewer errors” adalah tidak 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 apa hurts Anda.

So honest framing: responsive design tidak win Anda rankings. ini saves Anda dari losing them untuk sebuah parity mistake, dan ini saves Anda maintenance time. Keduanya adalah worth sebuah lot — neither adalah sebuah algorithm boost.

Bagaimana ini berfungsi: viewport meta tag adalah sebuah prerequisite, tidak sebuah nicety

sebagian besar guides list viewport meta tag sebagai satu bullet among banyak CSS tips. ini tidak sebuah tip — ini adalah hal itu membuat responsive design function di semua. Google’s 2012 Penelusuran Central post explaining mengapa Google itself went responsive adalah blunt tentang mengapa: “Oleh default, smartphone browsers pretend untuk menjadi high-resolution desktop browsers, dan lay out a halaman sebagai jika Anda adalah viewing it pada a desktop monitor… Itu default viewport width untuk itu default Android browser adalah 800px, dan 980px untuk iOS, regardless dari itu number dari sebenarnya physical pixels pada itu 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 sebenarnya physical pixels pada screen.”

itu’s failure mode: tanpa sebuah viewport tag, sebuah phone renders Anda halaman ke sebuah 980px-wide canvas dan lalu shrinks seluruh hal untuk fit — tiny text, “overview mode,” (terjemahan) “overview mode,” dan Anda dengan hati-hati-ditulis max-width: 479px media kueri tidak pernah triggers, karena browser thinks ini adalah 980px wide. perbaiki adalah satu line: “Di order untuk trigger itu browser untuk render Anda halaman di a lebih readable scale, Anda perlu untuk gunakan itu viewport meta element: <meta name="viewport" konten="width=device-width, initial-scale=1">.” (terjemahan) “di order untuk trigger browser untuk render Anda halaman di sebuah lebih readable scale, Anda perlu gunakan viewport meta element: tidak terdefinisi.” Setting width=device-width juga berarti layout memperbarui ketika pengguna rotates device, yang adalah apa lets media kueri respond untuk orientation. Deep mechanics — initial-scale, user-scalable/maximum-scale accessibility traps — langsung di dedicated viewport meta tag artikel.

Bagaimana 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 di atas sebagai illustrative, tidak 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, tidak sebuah device list: set them di mana Anda own konten sebenarnya breaks (sebuah nav wraps badly, columns mendapatkan too sempit, text pendek-lines), dan test ranges antara breakpoints too, tidak hanya sebuah handful dari named screen sizes. Device viewport widths perubahan setiap product cycle; konten-driven breakpoints jangan perlu updating ketika mereka melakukan.

«Google’s 2012 post also flagged the CSS discipline that keeps a responsive layout from 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.” Their three guiding principles were equally simple: pages should render legibly at any resolution, one set of content should be viewable on any device, and you should “never show a horizontal scrollbar, whatever the window size.” Modern refinements (clamp() for fluid type, container queries, srcset/<picture> for device-appropriate images) sit on top of that foundation — they’re not required to be “truly” responsive. For implementation depth beyond the SEO framing, Google’s own web.dev Learn Responsive Design course is the place to go. » (Terjemahan) (Ringkasan bahasa Indonesia untuk bagian empat puluh tiga, bagian kecil satu: teks sumber dipertahankan agar dapat diperiksa dalam tinjauan penutur asli.)

Responsive vs. dynamic serving vs. terpisah URLs

three configurations Google documents, side oleh side:

Responsive designDynamic servingTerpisah URLs (m-dot)
URLSatu URLSatu URLberbeda URLs (m.example.com)
HTMLsama HTML untuk semuaberbeda HTML per deviceberbeda HTML per device
Bagaimana ini adaptsCSS media kueriserver pengguna-agent sniffingRedirect untuk device-spesifik situs
Extra requirementViewport meta tagVary: User-Agent headerrel=alternate + rel=canonical, hreflang di seluruh versi
Parity riskrendah — satu versiMedium — easy untuk drifttinggi — dua situs untuk sync
Google’s stanceRecommendeddidukungdidukung, least recommended

Dynamic serving masih membuat sense occasionally (e.g. radically berbeda device experiences itu sebuah single template dapat’t reasonably express); terpisah URLs adalah mostly legacy now. jika Anda’re pada either, penuh 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 apa pun else.

Bing’s angle: criteria, tidak architecture

«Bing agrees with the outcome but frames it differently. It doesn’t endorse “Responsive Web Design” by name the way Google does; instead its mobile-friendliness test evaluates testable criteria — viewport and zoom-control configuration, width of page content, readability of text, spacing of links and other tap targets, and use of incompatible plug-ins. It recommends the same viewport tag Google does, and its content-width rule is that “the content width should not exceed the screen width” — overflow gets flagged as “Page content does not fit device width.” So it’s safe to say Bing and Google both reward mobile-friendly rendering; just attribute the explicit recommended-configuration language to Google specifically. » (Terjemahan) (Ringkasan bahasa Indonesia untuk bagian empat puluh sembilan, bagian kecil satu: teks sumber dipertahankan agar dapat diperiksa dalam tinjauan penutur asli.)

Responsive design dan pengindeksan mobile-pertama (post-July 2024)

pengindeksan mobile-pertama adalah selesai — Google finished rollout, dan ini now menggunakan mobile-di-crawl versi dari Anda halaman untuk pengindeksan dan peringkat oleh default. Hampir setiap guide masih menulis tentang responsive design sebagai sebuah “mendapatkan ready untuk mobile-pertama indexing” (terjemahan) “mendapatkan ready untuk mobile-pertama pengindeksan” future-tense move. itu framing adalah stale. rollout adalah menyelesaikan, dan untuk sebuah sudah-responsive situs ini perubahan tidak ada apa pun — Anda konten dan metadata adalah sudah identical di seluruh mobile dan desktop karena ada satu versi. itu’s tidak sebuah coincidence; ini adalah entire poin. situs’s pengindeksan mobile-pertama artikel covers timeline dan parity aturan di penuh.

Responsive ≠ secara otomatis fast

biggest trap. Responsive design controls layout, tidak 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 tidak sebuah Core Web Vitals lulus. Truly optimizing berarti serving appropriately sized assets per breakpoint (itu’s apa srcset/<picture> dan responsive images adalah untuk), tidak hanya letting CSS shrink oversized ones. Perbaiki performa secara terpisah — see Core Web Vitals konten dan responsive-images material untuk bagaimana.

performa tidak satu-satunya assumption itu tidak secara otomatis hold. Satu codebase tidak jaminan identical rendering, accessibility, atau penelusuran-hasil presentation either — browser dan devices masih differ cukup di bagaimana mereka tangani CSS, fonts, dan JavaScript-dependent layout itu cross-device dan cross-browser testing tetap bagian dari job, yang sama sebagai ini akan di bawah apa pun lainnya configuration. “Responsive” (terjemahan) “Responsive” mendeskripsikan sebuah architecture, tidak sebuah verified outcome; test ini like Anda’d test apa pun else.

sebuah little history

«Worth one paragraph, because it reframes the whole “best practice.” Google didn’t recommend responsive design first and adopt it later — it went responsive on its own properties first, for engineering reasons, and the recommendation followed. As its 2012 post explains, 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.” Canonical-URL preservation, no redirect complexity, simpler sharing — those were the reasons before anyone called it an SEO best practice, and they’re still the reasons. » (Terjemahan) (Ringkasan bahasa Indonesia untuk bagian lima puluh enam, bagian kecil satu: teks sumber dipertahankan agar dapat diperiksa dalam tinjauan penutur asli.)

Di mana ini sits di bigger picture: responsive design adalah satu piece dari lebih luas mobile SEO story, alongside mobile usability, intrusive interstitials, history dari AMP, dan mobile SEO checklist itu ties them together. ini artikel adalah “bagaimana seharusnya I serve mobile?” (terjemahan) “bagaimana seharusnya I sajikan mobile?” piece; others cover rest.

Tambahkan catatan pakar

Sematkan kutipan pakar

Orang baru? Buat profilnya yang belum diklaim di /admin/experts/ → Sematkan kutipan pakar terlebih dahulu.