Web Coding Standards & Marking Up Documents
Web Coding Standards & Marking Up Documents
WEB CODING
STANDARDS
OBJECTIVES:
At the end of this lesson, you
are expected to achieve the
following objectives for this
session:
Ensure that HTML documents
adhere to a consistent structure,
including proper use of the <html>,
<head>, and <body> elements.
Apply consistent naming
conventions for classes and IDs and
use them effectively for styling
and scripting.
1.INDENTATION AND FORMATTING
Use consistent
indentation (usually with
2 or 4 spaces) to
enhance code readability.
Properly format your
code with line breaks
and spacing to improve
clarity.
2. HTML STANDARDS
Use lowercase for HTML tags and
attributes to maintain consistency.
Close all HTML tags and avoid using
self-closing tags non-void elements.
Include relevant attributes, such as
alt attributes for images and labels
for form inputs.
Use semantic HTML Tags (e.g.
<header>, <nav>, <main>, <footer> ) to
convey the meaning and structure of
the content.
3. FILE FOLDER STRUCTURES
Organize your files and
folders in a logical manner.
Use meaningful names for
files and folders to quickly
identify their purpose.
Keep related files together
separate different concerns
(e.g., CSS, JavaScript,
images).
THYNK UNLIMITED
WE LEARN FOR THE FUTURE
MARKING UP
DOCUMENTS
PARAGRAPHS <p>....</p>
A paragraph element
<li> ......</li>
List item within an unordered list
UNORDERED LIST
<ul>
<li> <a href= “ “ >Serif</a> </li> Serif
<li> <a href= “ “ Sans-serif </a> </li> Sans- serif
<li> <a href= “ “Script </a> </li> Script
<li> <a href= “ “ Display </a> </li> Display
<li> <a href= “ “ Dingbats</a></li> Dingbats
</ul>
2.ORDERED LIST
List in which the
sequence of the
items is important
<ol> ......</ol>
Ordered List
<li> ......</li>
List item within an ordered list
<dd> ......</dd>
A value, such as a description or definition
ORDERED LIST
<ol>
<li> Gutenburg develops moveable type (1450s) </li>
<li> Linotype is introduced (1890's) </li>
<li> Photocomposition catches on (1950s) </li>
<li> Type goes digital (1980s) </li>
</ol>
<pre> ......</pre>
Preformatted text
6. FIGURES
Used to encapsulate media
content,such as images or videos,
along with their captions.
It allows for a semantic grouping
of media and associated
descriptive content
<figure> ......</figure>
Contact information
NEW IN HTML5
<figcaption> ......</figcaption>
Contact information
NEW IN HTML5
THANK YOU
THYNK UNLIMITED
WE LEARN FOR THE FUTURE
FOR
LISTENING!