diff --git a/src/__tests__/deprecated.spec.ts b/src/__tests__/deprecated.spec.ts
index 493b8c7f80..913a6c7abf 100644
--- a/src/__tests__/deprecated.spec.ts
+++ b/src/__tests__/deprecated.spec.ts
@@ -149,7 +149,7 @@ describe('deprecated APIs', () => {
* const $ = cheerio.load('
Hello, world.
');
*
* $('h1').html();
- * //=> 'Hello, world.'
+ * //=> 'Hello, world.'
* ```
*
* @example To render the markup of an entire document, invoke the
diff --git a/src/api/attributes.ts b/src/api/attributes.ts
index 47d0406fae..23781ee854 100644
--- a/src/api/attributes.ts
+++ b/src/api/attributes.ts
@@ -146,7 +146,7 @@ export function attr(
* @example
*
* ```js
- * $('.apple').attr('id', 'favorite').html();
+ * $('.apple').attr('id', 'favorite').prop('outerHTML');
* //=> Apple
* ```
*
@@ -172,7 +172,7 @@ export function attr(
* @example
*
* ```js
- * $('.apple').attr({ id: 'favorite' }).html();
+ * $('.apple').attr({ id: 'favorite' }).prop('outerHTML');
* //=> Apple
* ```
*
@@ -760,7 +760,7 @@ export function val(
* @example
*
* ```js
- * $('input[type="text"]').val('test').html();
+ * $('input[type="text"]').val('test').prop('outerHTML');
* //=>
* ```
*
@@ -848,11 +848,11 @@ function splitNames(names?: string): string[] {
* @example
*
* ```js
- * $('.pear').removeAttr('class').html();
+ * $('.pear').removeAttr('class').prop('outerHTML');
* //=> Pear
*
* $('.apple').attr('id', 'favorite');
- * $('.apple').removeAttr('id class').html();
+ * $('.apple').removeAttr('id class').prop('outerHTML');
* //=> Apple
* ```
*
@@ -928,10 +928,10 @@ export function hasClass(
* @example
*
* ```js
- * $('.pear').addClass('fruit').html();
+ * $('.pear').addClass('fruit').prop('outerHTML');
* //=> Pear
*
- * $('.apple').addClass('fruit red').html();
+ * $('.apple').addClass('fruit red').prop('outerHTML');
* //=> Apple
* ```
*
@@ -996,10 +996,10 @@ export function addClass>(
* @example
*
* ```js
- * $('.pear').removeClass('pear').html();
+ * $('.pear').removeClass('pear').prop('outerHTML');
* //=> Pear
*
- * $('.apple').addClass('red').removeClass().html();
+ * $('.apple').addClass('red').removeClass().prop('outerHTML');
* //=> Apple
* ```
*
@@ -1066,10 +1066,10 @@ export function removeClass>(
* @example
*
* ```js
- * $('.apple.green').toggleClass('fruit green red').html();
+ * $('.apple.green').toggleClass('fruit green red').prop('outerHTML');
* //=> Apple
*
- * $('.apple.green').toggleClass('fruit green red', true).html();
+ * $('.apple.green').toggleClass('fruit green red', true).prop('outerHTML');
* //=> Apple
* ```
*