Do these 3 things before closing this tab:
1Fix the driver behind crashes, sound loss and screen glitches2Clear out junk files and repair common Windows errors3Scan for outdated or missing drivers - takes under a minuteUse an <img> element whose src points to your PNG file: <img src="images/logo.png" alt="Acme">. Put the file at the matching path, provide meaningful alternative text, and control its displayed size with CSS. If the logo is the site link, wrap the image in an <a> element.
Add a PNG logo with the img element
The browser loads a PNG when the image URL in src resolves to a file that the web server can deliver. This is the smallest useful example:
<img src="images/logo.png" alt="Acme">
Here, the HTML document is in one directory and the PNG is in a child directory named images. Replace both the filename and directory with your own project’s path. The alt text is not a caption or a tooltip; it is the text a screen reader can use when the image conveys information or when the file cannot be displayed.
Put the PNG at a path the browser can resolve
Use a relative path for a project asset
A relative URL starts from the location of the current HTML file. If your project looks like this:
Recommended Free Tools
#1 Best Overall
- Custom Logo Embossing Stamp, Logo or Emblem Embosser, Wedding Logo Custom Embosser. Library Book Embosser, Logo Branding Embosser
- Click on “Customize Now” to enter your details and upload your design or logo image.Best results are from a high resolution black and white jpeg or png.
- Impression size approx. 1 5/8" " (Please do not upload photos) If you want a different design please message us.. Please ensure your image is clear and not too detailed. If so your order will be cancelled and you will need to reorder again. Please message if unsure.
- Our Custom Personalized Embossers are made right here in the USA! We are FAST! Send us a message if you would like a different font, graphic image, larger or smaller seal etc.
- FAST PRODUCTION! We can work together to make the best custom, personalized embosser for you!
site/
├── index.html
├── about/
│ └── team.html
└── images/
└── logo.png
Use images/logo.png in index.html. From about/team.html, move up one directory first:
<img src="../images/logo.png" alt="Acme">
Choose the right kind of URL
| URL | Meaning | Typical use |
|---|---|---|
images/logo.png |
Relative to the current document | Pages that share a predictable folder layout |
/images/logo.png |
Relative to the website origin (the domain root) | A site-wide header when the site is served from its own domain root |
https://cdn.example.com/logo.png |
An absolute URL on another host | A deliberately configured CDN or asset host |
Do not use a path from your computer such as C:UsersYouDesktoplogo.png. Visitors cannot access your local disk. Upload the PNG to the web project or an approved asset host, then reference its public URL.
Watch capitalization and server rules
On many servers, Logo.png and logo.png are different names. Match the filename, extension, and every directory character exactly. If a file opens when double-clicked but not through your site, test it through the same local server or hosting environment that serves the HTML; relative paths can behave differently when files are opened directly with a file: URL.
Make the logo link to the home page
Most headers make the logo a shortcut to the home page. Place the image inside an anchor and give the link an accessible name:
Windows Errors? Fix Them Before They Spread
Repair common Windows errors and clear accumulated junk for a smoother, more stable PC - no reinstall needed.Free scan · no reinstallCrashes, No Sound, or Screen Glitches?
Random freezes, missing sound and display glitches usually trace back to one bad driver. Find and replace yours safely.Free scan · under a minute<a href="/" aria-label="Acme home">
<img src="images/logo.png" alt="Acme">
</a>
Because the image is the only content of the link, its alternative should describe the destination or action. You can use alt="Acme home" and omit aria-label, or keep a short image alternative and use the label on the link. Avoid announcing the same name twice in a way that produces a noisy accessible name; test the result with a screen reader or accessibility inspector.
If the link already has visible text such as “Acme home” beside the logo and the image adds no new information, use alt="" on the repeated image. The link’s text remains available to assistive technology.
Rank #2
- Custom Rectangle Logo Embossing Stamp, Logo or Emblem Embosser, Wedding Logo Custom Embosser. Library Book Embosser, Logo Branding Embosser
- Click on “Customize Now” to enter your details and upload your design or logo .Best results are from a high resolution black and white jpeg or png.
- Please do not upload photos** Message us first if in doubt and we will let you know if your image would emboss
- Impression size approx. 2" x 1" Our Custom Personalized Embossers are made right here in the USA! We are FAST! Send us a message if you would like a different font, graphic image, larger or smaller seal etc.
- FAST PRODUCTION! We can work together to make the best custom, personalized embosser for you!
Size the PNG without distortion or layout shift
Constrain one dimension with CSS
Give the image a class and preserve its aspect ratio:
<img class="site-logo" src="images/logo.png" alt="Acme">
.site-logo {
display: block;
width: 160px;
height: auto;
}
The 160-pixel width is only an example. Set a value that fits your header. With height: auto, the browser calculates the matching height instead of stretching the artwork.
The Tool Desk
Outbyte Driver Updater FREEScan for outdated or missing drivers - takes under a minuteDriver Scan →Outbyte PC Repair FREERepair Windows errors before they cause bigger problemsFix Now →Declare the intrinsic dimensions
If the source file is 320 by 100 pixels, include those actual dimensions in HTML and display it smaller with CSS:
<img src="images/logo.png" alt="Acme" width="320" height="100" class="site-logo">
.site-logo {
width: 160px;
height: auto;
}
Accurate width and height attributes let the browser reserve the correct aspect-ratio space before the PNG arrives, reducing unexpected movement in the header. Never copy these numbers unless they are the real intrinsic dimensions of your file. If you need a fluid logo, use a maximum width:
.site-logo {
display: block;
width: min(100%, 160px);
height: auto;
}
Keep the image inside its header
A narrow viewport can make a large logo push navigation off-screen. A simple header layout can allow the navigation to wrap or scroll rather than forcing the image to overflow:
.site-header {
display: flex;
align-items: center;
gap: 1rem;
flex-wrap: wrap;
}
.site-header nav {
min-width: 0;
}
.site-header img {
max-width: 100%;
height: auto;
}
Choose alternative text by context
| Context | Example | Why |
|---|---|---|
| The logo communicates the organization name | alt="Acme" |
Provides the name conveyed by the mark |
| The logo is the only content in a home link | alt="Acme home" |
Communicates the link’s destination or action |
| The logo repeats adjacent text and adds nothing | alt="" |
Lets assistive technology skip redundant decoration |
| The image has a separate explanatory caption | A meaningful alt plus <figcaption> |
A caption does not replace the image alternative |
Keep the alternative concise and specific. Do not use the filename, “image,” or “logo” as the only description when the organization or action is known. The title attribute is not a replacement for alt. If the image is inside a link, judge the alternative together with the surrounding link text so users hear one clear purpose.
Rank #3
- CUSTOMIZABLE EMBOSSER STAMP: Click on "Customize Now" to Select your design & stamper type, We offer self inking and embossers. And enter your details and upload your design or logo image. Best results are from a high resolution black and white jpeg or png
- EASY TO USE: Simply press the custom embosser onto paper for a beautiful raised impression that adds a touch of elegance to any document. This versatile embosser can be used for logos, emblems, wedding logos, library books, and branding. Crafted with excellence, our embosser produces sharp, clear patterns without damaging the paper
- 2 STYLES OF MOUNTS: The impression size is approximately 1.6inch. Choose from self-inking stamp or embosser to provide the perfect impression for your books. For the self-inking(built-in ink), you can choose from 3 ink color(Black Red and blue) options! For embossers, you can customize things like its handle color and the embossing direction
- GREAT GIFT: This custom book embosser machine is a thoughtful and unique gift for book lovers, teachers, librarians, or anyone who enjoys collecting and organizing books. Perfect for birthdays, Teacher's Day, anniversaries, and more. It's the ideal tool for anyone who loves reading or organizing their books
- AFTER-SALES SERVICE: Please confirm your customize information before adding it to cart. If you have any problem when you receive your product, please feel free to reach us, we will help you in every possible way
A complete navigation-bar example
This example combines a linked PNG, reserved dimensions, keyboard-visible focus, and a flexible navigation list:
<header class="site-header">
<a class="brand" href="/" aria-label="Acme home">
<img
src="images/logo.png"
alt="Acme"
width="320"
height="100"
>
</a>
<nav aria-label="Primary">
<ul class="nav-list">
<li><a href="/products/">Products</a></li>
<li><a href="/pricing/">Pricing</a></li>
<li><a href="/contact/">Contact</a></li>
</ul>
</nav>
</header>
.site-header {
display: flex;
align-items: center;
gap: 1.25rem;
padding: 1rem;
flex-wrap: wrap;
}
.brand {
flex: 0 1 auto;
}
.brand img {
display: block;
width: 160px;
height: auto;
}
.nav-list {
display: flex;
gap: 1rem;
flex-wrap: wrap;
list-style: none;
margin: 0;
padding: 0;
}
.nav-list a {
display: inline-block;
padding: .4rem .2rem;
}
.nav-list a:focus-visible,
.brand:focus-visible {
outline: 3px solid currentColor;
outline-offset: 3px;
}
The navigation links remain real links, the logo has a stable layout box, and keyboard users receive a visible focus indicator. Add your own color, spacing, and breakpoint rules without changing the image semantics.
Serve sharper or responsive logo variants
Use a 1× and 2× PNG
For a logo displayed at 160 by 50 CSS pixels, provide a higher-density candidate when you have one:
<img
src="images/logo.png"
srcset="images/[email protected] 2x"
alt="Acme"
width="160"
height="50"
>
The browser can select the 2× resource on a high-density display. Keep src as the fallback for browsers that do not use srcset.
Use width descriptors for several rendered sizes
<img
src="images/logo-320.png"
srcset="images/logo-160.png 160w,
images/logo-320.png 320w,
images/logo-640.png 640w"
sizes="(max-width: 600px) 120px, 160px"
alt="Acme"
width="160"
height="50"
>
With width descriptors, sizes tells the browser how wide the image will be in the layout. The browser chooses an appropriate candidate; keep the intrinsic dimensions and CSS consistent with the displayed aspect ratio.
Offer a different format with picture
When you have alternate formats or media-specific versions, put them in <source> elements and retain a normal <img> fallback:
Rank #4
<picture>
<source srcset="images/logo.webp" type="image/webp">
<img src="images/logo.png" alt="Acme" width="160" height="50">
</picture>
The fallback is still the actual image element and must carry the alternative text. Add media conditions only when the alternate artwork genuinely differs by viewport or theme.
When PNG is the right logo format
| Format | Strength | Trade-off |
|---|---|---|
| PNG | Lossless pixels and an alpha channel for transparency; reliable for supplied raster artwork and sharp edges | Can be larger than newer raster formats, especially at large dimensions |
| SVG | Vector geometry stays crisp at many sizes and is often a strong fit for a logo available as vector artwork | Requires an SVG asset and an appropriate security/content policy for your deployment |
| WebP or AVIF | Often compress raster images more efficiently than PNG, JPEG, or GIF | Plan a fallback strategy and verify the formats required by your browser audience |
Use the PNG you already have when transparency, lossless edges, or straightforward compatibility matter. If the brand supplies a vector master, SVG may scale better. Changing formats is an optimization decision, not a prerequisite for displaying a PNG.
Troubleshoot a logo that does not appear correctly
- Broken-image icon or 404: Open the image URL shown in the browser’s developer tools. Correct the relative path, filename case, extension, or deployment location.
- The image appears only on one page: The page directories differ. Recalculate the path from each HTML document, or use a root-relative path when the site is deployed at the domain root.
- It works locally but not after deployment: Confirm the PNG was included in the upload/build output and that the server serves its MIME type as an image. Check case-sensitive hosting.
- The logo is stretched: Remove arbitrary width-and-height combinations. Use one CSS dimension with
height: auto, and ensure the declared intrinsic dimensions match the actual file. - Text reads badly in a screen reader: Replace a filename or generic
altwith the organization name, destination, or an empty value when the image is purely decorative or redundant. - The header jumps while loading: Add accurate
widthandheightattributes or an equivalent aspect-ratio reservation. - The logo is hidden behind another element: Inspect computed CSS for
display: none, zero dimensions,opacity, clipping, or a stacking context. Fix the rule rather than adding random margins. - A transparent PNG looks invisible: Preview it against the page background. Add sufficient contrast or use a version intended for that background; do not flatten transparency blindly if the logo needs it.
- A high-density version is never selected: Check that the
srcsetURL is valid and that the descriptor is written as2xor a width such as320w. Width descriptors also require a usefulsizesvalue.
Check accessibility, loading, and performance
- Give every meaningful logo an appropriate
alt; usealt=""only for decoration or redundant repetition. - Make a linked logo’s purpose understandable without relying on hover text.
- Set intrinsic dimensions to reserve space and prevent layout movement.
- Use CSS to size the image rather than editing the source repeatedly for every breakpoint.
- Do not add
loading="lazy"to a logo that appears immediately in the header unless you have a measured reason; delaying an above-the-fold brand mark can make it appear late. - Compress oversized PNGs and provide an appropriately sized 2× asset instead of shipping a very large file to every device.
- Test keyboard focus, zoom, narrow screens, dark and light backgrounds, and a screen reader. Inspect the network request to verify the expected file, status, and dimensions.
Or skip the browser setup
If your goal is to capture a page that contains the logo rather than hand-build a browser workflow, ScreenshotNeo returns a PNG, JPEG, WebP, or PDF from one GET request. Before capture it accepts cookie or consent banners and removes more than 60 known consent platforms, newsletter popups, and chat widgets; each step can be disabled. Bot checks or CAPTCHAs, blank pages, timeouts, failed loads, and cache hits are not billed, and the response identifies the result with X-Page-Verdict and X-Billed headers.
See the ScreenshotNeo API documentation for all parameters. A minimal cURL request is:
curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp
The same request in Python:
import requests
r = requests.get("https://api.screenshotneo.com/v1/shot", params={"access_key": "YOUR_API_KEY", "url": "https://stripe.com"}, timeout=90)
open("shot.webp", "wb").write(r.content)
And in Node.js:
const q = new URLSearchParams({ access_key: 'YOUR_API_KEY', url: 'https://stripe.com' });
const res = await fetch(`https://api.screenshotneo.com/v1/shot?${q}`);
ScreenshotNeo also provides an MCP server with take_screenshot, get_page_info, and capture_pdf for Claude, Cursor, and other MCP clients. Options include full-page captures with lazy images loaded, CSS-selector element capture, dark mode, device presets or custom viewports, retina scale, PDF paper and page controls, custom CSS and JavaScript, click or wait actions, blocked ads and requests, custom headers, cookies, user agents, authorization, timezone and geolocation, transparent backgrounds, resizing, chosen cache TTLs, signed image links, asynchronous jobs with signed webhooks, bulk capture of up to 100 URLs per call, a usage API, and an OpenAPI specification. Parameter names used by other screenshot APIs also work.
The Free plan includes 1,000 shots each month with no card. Paid plans start at $5 for 3,000 shots; yearly billing gives two months free, and every feature is available on every plan. Create a free ScreenshotNeo account to try it.
FAQ
Can I use a PNG logo as a CSS background instead?
Yes, but a background image is decorative by default and does not provide an equivalent accessible name. Use an HTML <img> when the logo conveys the organization or is the only content of a link.
Best Value
- CUSTOMIZABLE EMBOSSER STAMP: Click on "Customize Now" to Select your design & stamper type, We offer self inking and embossers. And enter your details and upload your design or logo image. Best results are from a high resolution black and white jpeg or png
- EASY TO USE: Simply press the custom embosser onto paper for a beautiful raised impression that adds a touch of elegance to any document. This versatile embosser can be used for logos, emblems, wedding logos, library books, and branding. Crafted with excellence, our embosser produces sharp, clear patterns without damaging the paper
- 2 STYLES OF MOUNTS: The impression size is approximately 1.6inch. Choose from self-inking stamp or embosser to provide the perfect impression for your books. For the self-inking(built-in ink), you can choose from 3 ink color(Black Red and blue) options! For embossers, you can customize things like its handle color and the embossing direction
- GREAT GIFT: Perfect for various wedding items like invitations, envelopes, napkins, ards, thank-you notes, and favor tags. Whether you want to create a seal stamp on documents or add a special touch to your invitations, our embosser is versatile and easy to use. The embossed designs create lasting memories
- AFTER-SALES SERVICE: Please confirm your customize information before adding it to cart. If you have any problem when you receive your product, please feel free to reach us, we will help you in every possible way
Why does a URL with spaces in the filename fail?
Spaces are encoded in URLs and can be mishandled by build tools. Rename the asset with simple characters such as letters, numbers, hyphens, and underscores, then update every reference.
Should I include both alt and aria-label?
Usually give the image a suitable alternative and let the link’s accessible name come from its content, or label the link deliberately. Avoid creating a repeated announcement by supplying equivalent names in several places without testing.
Does the PNG extension guarantee transparency?
No. PNG supports transparency, but an individual file may have no transparent pixels. Inspect the asset and test it against the backgrounds used by your header.
Quick wins for a faster PC:
Repair Windows errors before they cause bigger problemsFix Now →Scan for outdated or missing drivers - takes under a minuteDriver Scan →Clear out junk files and repair common Windows errorsFree Scan →Frequently Asked Questions
Can I use a PNG logo as a CSS background instead?
Yes, but a background is decorative by default. Use an HTML image when the logo conveys the organization or labels a link.
Why does a URL with spaces in the filename fail?
Rename the asset with simple letters, numbers, hyphens, or underscores and update its references; spaces require URL encoding and can confuse build tools.
Should I include both alt and aria-label?
Usually provide one clear accessible name. Test the link so assistive technology does not announce the same logo name twice.
Does the PNG extension guarantee transparency?
No. PNG supports transparency, but a particular file may contain no transparent pixels.
Quick Recap
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

