Website testing

Contents
Validate HTML and CSS
Status codes and links
Speed and mobile view
Automated tests
Who owns a domain

A short list of checks for any website, from the markup to automated tests. The general theory of testing is in Software testing.

Validate HTML and CSS

The W3C validator finds unclosed tags, wrong nesting and invalid attributes: validator.w3.org/nu. Give it a URL, upload a file or paste the code. A typical find is Element tbody not allowed as child of element table in this context. CSS has its own validator: jigsaw.w3.org/css-validator.

Status codes and links

Every page should answer 200, moved pages 301 to their new address, and nothing your site links to should answer 404. Check one URL with curl:

curl -sI https://www.example.com/ | head -1

What the codes mean: HTTP status codes. How to move pages without losing visitors: Redirects.

Speed and mobile view

PageSpeed Insights measures how fast a page loads on a phone and on a computer and lists what slows it down; large images are the usual cause, see WebP images. The developer tools of the browser (F12) show the page at phone sizes.

Automated tests

Tests that click through the site like a user: Selenium with Python. If the site has an API, test it directly: API testing.

Who owns a domain

The registrar, the dates and the status of a domain are public: lookup.icann.org, or whois example.com in a terminal. Why that matters before a move: Moving a website.

Article authors: Andrei Olegovich, Klavdiya Kondakova

Related articles
Responsive design: an adaptive menu
Beget mail: create a mailbox
Canonical page: rel=canonical
CSS
Firefox
Which hosting to choose
VPS hosting
HTTP status codes
Joomla
OpenCart
PUT vs POST
Redirects
Russian IP ranges
SEO
Element tbody not allowed as child of element table in this context
CSS test: shapes and line numbers
CSS test 2: the code blocks of this site
Website testing
A tram drawn with CSS
URL encoding
UTM tags
Telling bots from people
WebP images
Moving a website: domain and hosting
WordPress
Move a WordPress site
Yandex Metrica: goals
Yandex Mail: collect mail from other mailboxes

Search this site

Channel @aofeed Chat @aofeedchat

Contacts and cooperation:
I recommend our hosting beget.com
Write to info@aredel.com if you:
1. Want to write an article for our site or translate an article into your native language.
2. Want to place thematically relevant ads on the site.
3. Ads on my site pass maximum censorship. If you see an ad block unsuitable for school-age children, shocking or misleading - please contact us by e-mail
4. Found a mistake, inaccuracy, bug, etc. on the site. ... .......
5. Articles can be shared on social media by clicking a network icon: