How to Cite a Website in Harvard Style
Learn the Harvard format for citing a web page, with a reference template, worked examples, and fixes for pages with no author or no date.
The basic Harvard pattern for a web page
Harvard referencing has no single official guide. Most universities publish their own version based on the same core pattern, so the first job is to know that pattern and then check your institution's handbook for small differences in punctuation and italics.
The common template for a web page is: Author Surname, Initial. (Year) 'Title of page', Name of website. Available at: URL (Accessed: day Month year).
Here is a fictional example. Patel, R. (2022) 'Choosing a sleep schedule for shift work', Sleep Health Guide. Available at: https://www.example-sleep.org/shift-work (Accessed: 3 June 2024).
Notice three things. The page title sits in single quotation marks, the website name follows after a comma, and the access date is given in brackets with the word 'Accessed' and a full date in day, month, year order.
Collecting the details before you write the reference
- 1Find the author
Look for a named person at the top or bottom of the article, in a byline, or in an 'About the author' box. If the author is an organisation, such as a government department or charity, use the organisation's name as the author.
- 2Find the publication year
Check the date near the headline, in the footer, or in the copyright line. Some pages show only a last-updated date. Use the year the content was published or last substantially updated, and say so in your notes.
- 3Copy the exact page title
Use the title shown on the page itself, not the text in the browser tab, which often adds the site name. Keep the original capitalisation as far as your style guide allows.
- 4Record the URL and access date
Copy the full web address, including the path to the specific page. Note the date you actually viewed the page. Web content changes, so the access date tells your reader when the wording you saw was live.
Harvard web citation elements at a glance
| Element | Where to find it | Harvard format example |
|---|---|---|
| Author | Byline or organisation name | Patel, R. |
| Year | Published or updated date | (2022) |
| Page title | Heading of the page itself | 'Choosing a sleep schedule for shift work' |
| Website name | Site header or footer | Sleep Health Guide |
| URL | Address bar, full path | Available at: https://www.example-sleep.org/shift-work |
| Access date | The date you viewed the page | (Accessed: 3 June 2024) |
Handling pages with no author or no date
Missing details are common, and Harvard has a standard way to handle each gap. If there is no named author, start the reference with the organisation that runs the site. If there is no organisation either, start with the page title and move it to the author position, keeping the quotation marks.
If no date appears anywhere on the page, write (no date) in place of the year. Do not guess a year. Your access date still appears at the end, so the reader can see when you checked the page.
Example with an organisation as author: Department of Example Health (no date) 'Sleep and night work', Public Health Pages. Available at: https://www.example.gov/sleep (Accessed: 10 July 2024).
Example with no author or organisation: 'Ten tips for better rest' (2023) Rest Journal online. Available at: https://www.example.com/rest-tips (Accessed: 1 August 2024). In this case the title moves forward because there is nobody to credit.
Wrong and right versions side by side
| Problem | Weaker version | Corrected version |
|---|---|---|
| Title not in quotes | Patel, R. (2022) Choosing a sleep schedule for shift work, Sleep Health Guide. | Patel, R. (2022) 'Choosing a sleep schedule for shift work', Sleep Health Guide. |
| Access date missing | Available at: https://www.example-sleep.org/shift-work | Available at: https://www.example-sleep.org/shift-work (Accessed: 3 June 2024). |
| Browser tab title used | Choosing a sleep schedule | Sleep Health Guide | Choosing a sleep schedule for shift work (the heading on the page). |
| Date guessed | Patel, R. (2021) | Patel, R. (no date), if no date is shown anywhere on the page. |
In-text citations and the reference list
In the body of your essay, give the author and year in brackets, for example (Patel, 2022), or name the author in the sentence: Patel (2022) found that rotating shifts were hard to plan. Use a page or paragraph number only when your guide requires it for a direct quotation.
When there is no author, use the organisation or a shortened title in the in-text citation, for example (Department of Example Health, no date) or ('Ten tips for better rest', 2023).
Build your reference list in alphabetical order by the first word of each entry. If you cite two pages by the same author in the same year, add letters after the year, such as 2022a and 2022b, and keep the same letters in your in-text citations.
Harvard is an umbrella term. Some institutions require italics for the website name, others want the URL without the word 'Available at', and some ask for a retrieval date in a different position. When your handbook and this guide disagree, follow the handbook, because markers grade against it.
Open each cited page again and confirm the title, author, and URL still match your reference. Pages move and get edited. If you want a second pair of eyes on formatting, the Citation Generator on AI Humanizer Lab can help you draft a reference, but compare its output with your own style guide before you hand in your work.
Try it on your own text
Paste a reference, a DOI, or a title and get correctly formatted citations in all three major styles. Each one is verified against Crossref and OpenAlex so you cite a real source.
Citation CheckerScan your references for missing fields, style drift, and orphaned citations across APA, MLA, and Chicago — before your reviewer does.
Make your writing sound human
Humanize AI-generated text in one click with AI Humanizer Lab.
Try for free