### Lighthouse Node Module Usage Example
Source: https://github.com/google/webfundamentals/blob/main/src/content/en/tools/lighthouse/v3/migration.md
Demonstrates how to use the Lighthouse Node.js module to run audits. It shows how to pass configuration flags, such as `onlyCategories` and `output`, which were previously handled differently or ignored in v2.
```javascript
const fs = require('fs');
const lighthouse = require('lighthouse');
async function run() {
// `onlyCategories` was previously only available as a config setting.
// `output` was previously only available in CLI.
const flags = {onlyCategories: ['performance'], output: 'html'};
const html = (await lighthouse('https://google.com/', flags)).report;
fs.writeFileSync('report.html', html);
}
```
--------------------------------
### Display Images
Source: https://github.com/google/webfundamentals/blob/main/src/tests/blink-component-bad.md
Demonstrates how to display images using HTML `
` tags and Markdown syntax. Includes examples of image sources and alt text.
```html
```
```markdown

```
--------------------------------
### Polymer Responsive Element Example
Source: https://github.com/google/webfundamentals/blob/main/src/content/en/shows/cds/2013/polymer.md
Illustrates how to create responsive elements using Polymer by binding to a `queryMatches` attribute. This allows elements to react to media queries.
```html
```
--------------------------------
### Polymer App Composition Example
Source: https://github.com/google/webfundamentals/blob/main/src/content/en/shows/cds/2013/polymer.md
Shows the concept of composing a full application by nesting custom elements, including a root `` element.
```html
```
--------------------------------
### Image Tag Example
Source: https://github.com/google/webfundamentals/blob/main/src/tests/good-article.md
Demonstrates embedding an image using a standard HTML img tag. Includes attributes for source and alt text.
```html
```
--------------------------------
### Scheme-Relative URL Example
Source: https://github.com/google/webfundamentals/blob/main/src/content/en/shows/cds/2013/got-ssl.md
Demonstrates how to use a scheme-relative URL to ensure resources are loaded over HTTPS on an HTTPS page, preventing mixed content warnings.
```html