Skip to content

Commit 496ef23

Browse files
authored
docs: Fix some typos in helpers/html_helper.rst
Fix some typos in helpers/html_helper.rst
1 parent c326cd1 commit 496ef23

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

user_guide_src/source/helpers/html_helper.rst

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -38,16 +38,15 @@ The following functions are available:
3838

3939
.. literalinclude:: html_helper/002.php
4040

41-
There is an optional second parameter that is a true/false value that
42-
specifics if the *src* should have the page specified by
43-
``$config['indexPage']`` added to the address it creates.
41+
There is an optional second parameter, a true/false value, that
42+
specifies if the *src* should have ``$config['indexPage']`` added to the address it creates.
4443
Presumably, this would be if you were using a media controller:
4544

4645
.. literalinclude:: html_helper/003.php
4746

4847
Additionally, an associative array can be passed as the first parameter,
4948
for complete control over all attributes and values. If an *alt* attribute
50-
is not provided, CodeIgniter will generate an empty string.
49+
is not provided, CodeIgniter will generate one with empty string.
5150

5251
Example:
5352

@@ -220,8 +219,8 @@ The following functions are available:
220219
:returns: An HTML video element
221220
:rtype: string
222221

223-
Permits you to generate HTML video element from simple or
224-
source arrays. Example:
222+
Permits you to generate an HTML video element from a source string or an array of sources.
223+
Example:
225224

226225
.. literalinclude:: html_helper/014.php
227226

@@ -269,8 +268,8 @@ The following functions are available:
269268
:returns: An HTML source element
270269
:rtype: string
271270

272-
Lets you create HTML ``<source>`` elements. The first parameter contains the
273-
source source. Example:
271+
Lets you create HTML ``<source>`` elements. The first parameter contains the path of the resource.
272+
Example:
274273

275274
.. literalinclude:: html_helper/015.php
276275

@@ -352,11 +351,11 @@ The following functions are available:
352351

353352
.. literalinclude:: html_helper/020.php
354353

355-
The following is a list of the pre-defined doctype choices. These are configurable,
356-
pulled from **app/Config/DocTypes.php**, or they could be over-ridden in your **.env** configuration.
354+
The following is a list of the pre-defined doctypes. These are
355+
pulled from **app/Config/DocTypes.php**, or they could be overridden in your **.env** configuration.
357356

358357
=============================== =================== ==================================================================================================================================================
359-
Document type Option Result
358+
Document type $type parameter Result
360359
=============================== =================== ==================================================================================================================================================
361360
XHTML 1.1 xhtml11 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
362361
XHTML 1.0 Strict xhtml1-strict <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

0 commit comments

Comments
 (0)