Curious Minds

Clear answers to science and history questions

Remove Date From Printed Web Pages

· 4 min read · Science

Most websites automatically include the date when you print a page, but you can usually remove it by adjusting your browser's print settings or using the browser's developer tools to remove the date element. The exact steps differ slightly depending on your browser, but the general principle remains the same: identify and remove the date element before printing.

Time 5 min · Steps 8 · Level Easy

Identify the Source of the Date

Before you start, determine where the date is coming from. Is it part of the website's design, dynamically generated by the website's software, or embedded in the page's HTML? Often, websites will display the publication or last modified date at the top or bottom of the page. Some websites dynamically insert the current date into the print preview. If the date is part of the HTML, you can remove it directly. If it's dynamically generated, you'll need to adjust browser settings or use developer tools.

Adjust Browser Print Settings (Chrome & Edge)

Google Chrome and Microsoft Edge share a similar print settings interface. This is often the simplest way to remove the date, as it avoids altering the website's code. These settings affect only your printout, not the website itself.

  1. Open the webpage you want to print.
  2. Click the three vertical dots (menu) in the top-right corner of the browser window.
  3. Select "Print…" from the dropdown menu.
  4. In the print dialog box, look for a "More settings" or "Advanced" option. Click it.
  5. Under "Background graphics," ensure the box is *unchecked*. This prevents images, including the date, from printing.
  6. Under “Headers and footers”, select "Don't include headers and footers".
  7. Preview the print to confirm the date is removed.
  8. Click "Print" to print the page without the date.

Remove the Date Using Developer Tools (Chrome, Edge, Firefox)

If browser settings don't work, you can use the browser's developer tools to find and remove the date element directly from the HTML. This is a more advanced method, but it provides greater control. Remember that this only affects your printout, not the website itself.

Accessing Developer Tools

To open the developer tools, press F12 on your keyboard, or right-click on the page and select "Inspect" or "Inspect Element".

Finding and Removing the Date Element

  1. In the developer tools panel, select the "Elements" tab.
  2. Use the "Select an element in the page to inspect it" tool (often an arrow icon) to click on the date you want to remove.
  3. The corresponding HTML code will be highlighted in the Elements panel.
  4. Right-click on the HTML element containing the date (usually a or
    tag).
  5. Select "Delete element" from the context menu.
  6. Close the developer tools panel.
  7. Print the page. The date should no longer appear.

Adjust Browser Print Settings (Safari)

Safari’s print settings are a bit different. It doesn’t have a simple checkbox to disable headers and footers.

  1. Open the webpage you want to print.
  2. Go to File > Print… (or press Command + P).
  3. In the Print dialog, click "Show Details."
  4. Uncheck "Headers and Footers."
  5. Click "Print."

Understanding HTML and CSS

The date is often displayed using HTML tags like ,

, or

. CSS (Cascading Style Sheets) is used to style the date, such as its font, size, and color. By inspecting the HTML and CSS, you can pinpoint the exact element to remove or modify. Removing the element directly from the HTML, as described in the developer tools section, is the most reliable method.

Troubleshooting: Date Still Appears

If the date still appears after trying the above methods, consider these possibilities:

  • The date is embedded in an image: If the date is part of an image, you'll need to remove the image or edit the image itself. Developer tools can help you identify the image tag.
  • The website uses JavaScript to dynamically insert the date: This is more complex, and removing the date may require more advanced JavaScript knowledge. Try clearing your browser cache and cookies, as sometimes cached data can cause issues.
  • The website uses a custom print stylesheet: Some websites have specific CSS rules that apply only when printing. These rules might override your browser settings. Inspecting the "Elements" panel in developer tools can reveal these custom styles.

Different Browser Versions

Menu paths and options in browser settings can differ slightly depending on the version you are using. Always look for options with similar names, such as "Print Background Graphics" or "Headers and Footers".

What to Check First

Before using developer tools, always try adjusting the browser's print settings. This is the easiest and safest method. If that doesn't work, then consider using the developer tools to directly remove the date element from the HTML.

Official source: Google Chrome Help

In this article
  1. Identify the Source of the Date
  2. Adjust Browser Print Settings (Chrome & Edge)
  3. Remove the Date Using Developer Tools (Chrome, Edge, Firefox)
  4. Adjust Browser Print Settings (Safari)
  5. Understanding HTML and CSS
  6. Troubleshooting: Date Still Appears
  7. Different Browser Versions
  8. What to Check First