Learning how to cite a website inside your own writing is easier once you see it done properly, and an in text website citation example is the fastest way to understand the pattern. Instead of guessing where the author name goes or whether you need a date, you can copy the structure of a correct example and adapt it to your own source. This guide walks through APA and MLA worked examples step by step, so you can cite a website with confidence in essays, reports, and research papers.
An in-text citation is a short note placed inside your sentence or at the end of a sentence that points your reader to the full source in your reference list or works cited page. It is not the same as the full reference. The in-text note is brief, usually just an author name and a year or a page reference, while the full entry at the end of your paper gives the complete details. When you cite a website, the same idea applies, although websites often lack page numbers and sometimes lack a named author, which is where most students get stuck.
What an In-Text Citation Does for Your Reader
A citation does three jobs at once. First, it gives credit to the original writer or organisation, so your work is honest about where ideas came from. Second, it lets your reader find the source quickly by matching the short in-text note to the full entry at the end of your paper. Third, it strengthens your argument, because a claim backed by a named source carries more weight than an unsupported assertion. If you quote, paraphrase, or summarise ideas from a website, you need a citation in that spot, not just a link or a mention of the site name.
Many beginners make the mistake of pasting a web address into their essay and thinking that counts as a citation. It does not. A web address on its own is not formatted as a citation in APA or MLA, and it does not connect to a reference list entry. Another common mistake is citing only at the end of a long paragraph that draws on several sources. Each idea that comes from a source should be cited close to where it appears, so the reader can tell which claim belongs to which source.
An in text website citation example in APA Style
APA style, now in its seventh edition, is widely used in psychology, education, business, and the social sciences. The basic APA pattern for a website is the author surname followed by the year of publication in parentheses. When the author is named in your sentence, only the year goes in parentheses. When the author is not named in your sentence, both the name and the year go inside the parentheses at the end of the sentence.
Consider a fictional but realistic example. Suppose you are using a health article written by Maria Chen and published in 2024 on a medical information site. A parenthetical citation looks like this: Regular exercise improves sleep quality for adults with busy schedules (Chen, 2024). A narrative citation, where the author is part of your sentence, looks like this: Chen (2024) reports that regular exercise improves sleep quality for adults with busy schedules. Both versions are correct, and you can choose whichever reads more smoothly in your paragraph.
Now consider a website article with two authors. APA uses an ampersand in parenthetical citations and the word and in narrative citations. A parenthetical citation therefore looks like (Patel & Okafor, 2023), while a narrative citation reads Patel and Okafor (2023) argue that screen time limits work best when families agree on the rules together. With three or more authors, APA shortens the citation to the first author plus et al., as in (Nguyen et al., 2022). You do not need to list every author in the in-text note, even though the reference list entry gives all of them up to twenty authors.
APA Websites With No Page Numbers
Most web pages do not have page numbers, so APA does not ask you to invent one. For a direct quotation from a web page, you should still help the reader find the passage by giving a paragraph number or a section heading. For example, a quotation could be cited as (Chen, 2024, para. 4) or with a shortened heading, such as (Chen, 2024, Sleep and Recovery section). For a paraphrase, no locator is required, so (Chen, 2024) on its own is enough. This is one of the most useful rules to remember, because students often stall over missing page numbers when APA simply does not need them for paraphrases.
APA When an Organisation Is the Author
Many reliable websites are published by organisations rather than individuals, such as government agencies, universities, and charities. In APA, the organisation name serves as the author. The first time you cite it, you may spell out the full name and give the abbreviation in brackets, for example (National Sleep Foundation [NSF], 2023), and then use the abbreviation in later citations, (NSF, 2023). If the organisation name is short, just use the full name every time. The key point is consistency: the name in your in-text citation must match the start of the reference list entry exactly, so your reader can find it.
An in text website citation example in MLA Style
MLA style, in its ninth edition, is common in English, literature, history, and the humanities. MLA in-text citations normally use the author surname and, where relevant, a page or location reference, but websites rarely have stable page numbers. In that case, the author surname alone is usually enough. If no author is named, use a shortened version of the page title instead.
Using the same fictional example, an MLA citation looks like this: Regular exercise improves sleep quality for adults with busy schedules (Chen). If you name the author in your sentence, no parenthetical note is needed at all beyond that mention, as in: Chen reports that regular exercise improves sleep quality for adults with busy schedules. Notice that MLA does not include the publication year in the in-text citation. The year appears in the works cited entry at the end, not in the body of your essay.
When a website article has two authors in MLA, both surnames appear, as in (Patel and Okafor). With three or more authors, MLA also uses et al., giving (Nguyen et al.). If you quote directly from a web page that numbers its paragraphs, you may add the paragraph number, as in (Chen, par. 4), but this is only possible when the source itself numbers paragraphs. Most websites do not, so the surname alone remains the standard approach.
MLA When No Author Is Named
Anonymous web pages are common, especially on organisational sites and news pages. MLA handles this by using a shortened title in place of the author name. Suppose the page is titled How Sleep Affects Memory and Learning. Your citation could read: Students who sleep less than seven hours score lower on memory tests (How Sleep Affects Memory). Use the first few distinctive words of the title, in quotation marks if it is a short work such as an article, and keep the shortened title consistent every time you cite that page. Do not use the website name or the web address as a substitute for the author unless the website itself is the author.
APA Versus MLA at a Glance
The table below summarises the key differences, so you can check your format quickly before submitting your work.
| Feature | APA seventh edition | MLA ninth edition |
|---|---|---|
| Basic pattern | Author surname and year, for example (Chen, 2024) | Author surname only, for example (Chen) |
| Author in sentence | Chen (2024) reports that… | Chen reports that… |
| Two authors | (Patel and Okafor, 2023) in narrative text; ampersand inside parentheses | (Patel and Okafor) |
| Three or more authors | First surname plus et al. from the first citation | First surname plus et al. |
| No author | Shortened title and year, for example (How Sleep Works, 2023) | Shortened title, for example (How Sleep Works) |
| Direct quotation locator | Paragraph number or section heading | Paragraph number only if the source numbers them |
A Step-by-Step Workflow for Citing Any Website
Follow these steps in order and you will rarely go wrong. First, open the web page and look for the author name, usually at the top or bottom of the article. Second, find the publication date or the last updated date, which often sits near the author line. Third, note the title of the page, because you will need a shortened version if no author exists. Fourth, decide whether you are quoting, paraphrasing, or summarising, because quotations need a locator in APA. Fifth, write the citation in the style your teacher or publisher requires, and check that the name matches your reference list entry exactly.
A useful habit is to capture these details at the moment you first read a source, rather than hunting for them the night before submission. Keep a simple research log with four columns: author, date, title, and the web address for your own records. That log makes building your reference list far quicker, and it prevents the familiar problem of knowing you read something useful but no longer remembering where you found it. For more guidance on tricky author situations, see our guide to APA citations with multiple authors and the companion piece on APA citations with two authors.
Paraphrase, Summary, and Quotation
A paraphrase restates a specific idea in your own words and still needs a citation. A summary condenses a longer passage or a whole article and also needs a citation. A quotation copies the exact words and needs quotation marks plus a citation with a locator in APA. Changing a few words in a sentence and keeping the structure is not a true paraphrase, and it still needs quotation marks if the wording is close to the original. When in doubt, cite. Over-citing is a minor style issue, while missing citations can be treated as plagiarism, so caution is the safer choice.
Common Mistakes and How to Fix Them
One frequent error is mixing styles in a single paper, such as using APA years in some citations and MLA surname-only notes in others. Pick one style and use it throughout. Another error is citing the website name when an individual author is clearly listed on the page. Use the person first, and reserve the organisation name for pages where no individual is credited. A third error is leaving the citation until the end of a paragraph that blends your own analysis with source material, which makes it unclear which ideas are yours. Place citations beside the borrowed ideas, not pages later.
Students also worry about citing the same source repeatedly in one paragraph. APA allows you to cite once per paragraph when it is clear that the whole paragraph draws on that source, provided you do not introduce a new source in between. MLA works similarly: once the source is established in a paragraph, you do not need to repeat the surname after every sentence, as long as the reader can follow which claims come from that source. If you switch sources mid-paragraph, cite the new source at the point of the switch.
Frequently Asked Questions
Do I put the web address in my in-text citation?
No. In both APA and MLA, the in-text citation is a short author or title note. The web address belongs in the full reference list or works cited entry at the end of your paper, not in the body text.
What if the website has no date?
In APA, use the abbreviation n.d. in place of the year, as in (Chen, n.d.). In MLA, simply omit the date from the in-text note, since MLA in-text citations do not include years anyway, and give whatever date information is available in the works cited entry.
Can I cite a whole website rather than one page?
If you are referring to a website in general rather than a specific page, APA allows you to mention the site name in your sentence and give its address in parentheses, without a reference list entry. MLA handles general mentions similarly. For any specific claim, cite the exact page instead.
Conclusion
A correct in text website citation example is simply a short, consistent pointer from your sentence to your reference list, built from the author, the date in APA, and a locator for quotations. Learn the APA pattern of surname plus year and the MLA pattern of surname alone, handle missing authors with a shortened title, and capture source details as you read. With those habits in place, citing websites becomes a routine part of writing rather than a last-minute scramble, and your work will look more credible to every reader who checks your sources. If page numbers are involved, our guide to APA page numbers in citations covers the details.



