[HTML-Tutorial-21] Creating Good HTML Code | HTML Best Practices | Coding Conventions & Standards

Опубликовано: 11 Октябрь 2024
на канале: Code Range
7,190
206

A consistent, clean, and tidy HTML code makes it easier for others to read and understand your code. In this video, I discuss 15 guidelines to create a good HTML code.

- - - Contents Of The Video - - - -

00:00 - Introduction
01:04 - (Tip 1) Declare Doctype
01:15 - (Tip 2) Never Skip Title Element
01:41 - (Tip 3) Add lang & charset Attributes
02:15 - (Tip 4) Set Viewport
02:48 - (Tip 5) Lowercase Element & Attribute Names
03:15 - (Tip 6) Close All Elements
03:40 - (Tip 7) Use Semantic Elements
04:15 - (Tip 8) Specify alt, width & height for Images
04:45 - (Tip 9) Avoid Long Code Lines
05:14 - (Tip 10) Avoid unnecessary Blank lines, Spaces & Indentations
05:38 - (Tip 11) Use Consistent File Naming Style
06:15 - (Tip 12) Use Comments
07:35 - (Tip 13) Use Entities
09:31 - (Tip 14) Validate Code
10:16 - (Tip 15) Check for Cross Browser Compatibility
11:13 - What next after HTML ?

- - - Interesting Links - - - -

1. HTML Entities - https://www.w3schools.com/html/html_s...

2. HTML Validator - https://validator.w3.org/

3. MDN Web Docs HTML - https://developer.mozilla.org/en-US/d...

4. W3 Schools HTML - https://www.w3schools.com/html/defaul...

5. HTML Official Specifications - https://html.spec.whatwg.org/multipage/