How to Cite a Website: A Step-by-Step Approach for Any Style
Why websites need extra care
Web pages are some of the trickiest sources to cite. They change without notice, they often hide the author and date, and the same text can appear on several pages with different titles. Every major style has a pattern for websites, but the pattern assumes that you have found the right pieces of information first. This guide walks through that discovery process, and then shows how the pieces fit into the major styles in a general way.
Before anything else, ask whether the page is a good source for your purpose. Instructors often care about credibility. A page from a recognized institution, a publisher with editorial standards, or an identified expert is usually easier to defend than an anonymous post. Evaluating a source is a different task from citing it, but the two are connected, because the information you need for a citation often tells you something about the quality of the source too. Check the current manual for your style, and your instructor's preferences, before finalizing any entry.
Finding the five core pieces
For almost every style, you need the same five pieces: who is responsible, when it was published or last updated, what the page is called, which website or organization it belongs to, and where it can be found. Start with the author. Look near the title, at the end of the page, or on an about page. If you find a named person, use that name. If the page is clearly produced by an organization, that organization can take the author position in many styles.
Next, the date. Look for a published or updated date near the title or the bottom of the page. If a page shows both, many styles prefer the original publication date, but some prefer the most recent update. Verify the preference in your manual. Third, the title of the page, which is the heading of the specific page, not the name of the whole site. Fourth, the name of the site, often visible in a header or footer. Fifth, the link. Copy it from the address bar, and remove tracking parts such as long strings after a question mark if they are not needed to reach the page, but only if you have confirmed the shorter link still works.
Write these five pieces down before you open a generator. It makes it easy to spot what is missing.
What the major styles do with them
In APA, the pattern is generally author, date, page title, site name, and link, with the page title in italics when the page stands alone as a document. A generic form is Author, A. A. (Year, Month Day). Title of page. Site Name. link. In MLA, the generic form is Author. Title of Page. Title of Website, Publisher, Day Month Year, link. The page title goes in quotation marks and the website name is in italics, since the website is the container.
Chicago notes-bibliography handles websites in a note and sometimes in the bibliography as well, with an access date used mainly when no publication date can be found. Harvard variants differ, but many use author, year, page title, site name or Available at: followed by the link, and some ask for an access date. These are general sketches, not rules. The punctuation, italics, and capitalization are exactly the details that change between editions and institutions, so confirm them in the current manual or guide.
Whatever style you use, apply it the same way to every website in your list. Consistency matters as much as the particular form you choose.
When details are missing
Missing authors are common. If no person or organization is named, most styles move the page title into the author position. Missing dates are also common. Styles generally supply a short placeholder for no date, such as n.d. in APA and Harvard, while MLA often allows the date element to be omitted. Missing titles are rarer, but if a page has no clear title, some styles let you write a short description in place of the title, in square brackets or plain text depending on the style.
Pages that change frequently, like live dashboards or wiki-style pages, are a special case. Several styles suggest including an access date because the content you saw may not be what a reader sees later. Another option is to find an archived copy and cite that, if your instructor accepts it. Whatever you choose, tell the reader how you handled the problem so that a marker can see your reasoning.
Avoid inventing information. If a detail is not available, leave it out using the style's recommended convention. Fabricating a date or an author is much worse than a small gap.
Checking your finished entry
Once you have an entry, read it as a reader would. Does the link go to the page you meant? Is the title copied from the page, not paraphrased? Is the site name spelled the way the site spells it? Does the author format match the style? Does the in-text citation connect clearly to the list entry?
Generators can pull some of this information automatically, but they rely on page metadata, which is sometimes wrong or incomplete. A page may declare a different author, a stale date, or a title that includes the site name. Always compare against what you can actually see on the page.
Finally, save your sources. Keep a note of the link and the date you visited, and consider saving a copy or screenshot if the content is important to your argument. Web pages disappear, and a record of what you saw can protect you if your citation is questioned later. And again: the official manual, or your instructor, has the final say over any detail of formatting.
Frequently asked questions
Do I always need an access date for a web page?
Not always. Some styles ask for one only when there is no publication date or when the page changes often. Check your style manual or instructor.
What do I do if the page has no author?
Many styles let an organization act as the author, or move the title into the author position. Follow the rule in your manual.
Should I cite the whole website or one page?
Cite the specific page you used. Cite the whole site only if you are referring to the site in general.
Can I shorten a long URL?
Only if the shorter version still reaches the same page. Test it first, and follow your style's guidance on links.