New format
Page source code: why open it and what to check
Page source is the HTML (and related CSS/JS) the browser gets from the server and turns into what you see. For SEO and debugging it helps to open it and find title, meta, markup, and console errors.
Below: why marketers and site owners look at source, how to open it in the browser, and what to check first. A full layout course is a separate article; this is a practical walkthrough.
What page source is
On a URL request the server returns a document: HTML markup, CSS links, and scripts. The browser parses the tags and draws the UI. Users see the result; the code is the score.
Even PHP, Python, or builder sites send HTML to the browser. So you inspect a page the same way — via source and DevTools.
The code usually includes:
- HTML structure
- linked CSS
- JavaScript
- meta tags and canonical
- analytics tags and pixels
Why look at the code
To see what search engines and browsers actually get: title, description, h1, noindex, link markup, script weight, broken image paths.
It’s also handy to see how a competitor styled a block (color, font, class) — for a designer brief, not for copying their content.
Typical jobs:
- audit meta and headings
- find analytics tags and pixels
- check canonical / robots
- debug JS errors in Console
- save CSS or fonts for analysis
How to open code in the browser
Chrome / Edge / Firefox: right-click the page → “View Page Source” — a separate tab with the text. Or right-click an element → Inspect — DevTools with that block highlighted.
Menu → More tools → Developer tools. Tabs: Elements/Inspector, Sources, Console, Network, Security (certificate). Move the panel if it gets in the way.
Quick tricks:
- Ctrl+F / Cmd+F for `title`, `canonical`, `noindex`
- click a node in Elements — highlight on the page
- Sources — script and style files, Save as
- Console — JS errors
- right-click a block on the site → Inspect — jump to the node
What to check in HTML
`<head>` holds the utility layer: title, meta, CSS links, and canonical. `<body>` is what users see: h1–h6 headings, paragraphs, lists, links, images.
Semantic tags (`article`, `section`, `nav`) help structure. `div`/`span` are generic blocks with little meaning. For SEO, a clear h1, meaningful anchors, and image alt matter.
Common tags when inspecting
| Tag | Why check |
|---|---|
| `title` | Tab title and topic signal |
| `meta description` | Snippet draft |
| `link rel=canonical` | Canonical URL |
| `h1` | Main on-page heading |
| `a href` | Where links go |
| `img alt` | Text for the image |
FAQ
How does View Source differ from DevTools?
“View Page Source” shows the response HTML (often before heavy script changes). Developer tools show the live tree after JS runs, plus styles, network, and the console.
Do you need to know front-end to read code?
Basic tags (title, h1, a, img, meta) are enough for SEO hygiene. Building layouts from scratch is a developer’s job.
Is CSS-hidden content still in the code?
Often yes — text can sit in HTML and be hidden by styles. Crawlers and people see things differently; don’t use hiding as an SEO trick.
Where do I find meta description and robots?
In `<head>`: `meta name="description"`, `meta name="robots"`, and `link rel="canonical"`. Search with Ctrl+F / Cmd+F.
Can I edit someone else’s site via Inspect?
DevTools changes stay local. Nothing hits the server until you deploy edits in the CMS or repo yourself.
Need a quick source check for title, canonical, and console errors?
We’ll walk the page in DevTools and fix what blocks SEO hygiene — without a full redesign.
Discuss the task