Web Application Architecture Tips

Web Application Architecture Tips

html

A collection of practical web application architecture tips covering doctypes, meta tags, CSS practices, JavaScript frameworks, and mobile considerations.

Doctype

Declare the document doctype. before your html tag.

for HTML 5:

<!DOCTYPE html>
<html>
.
.
.
</html>

for older Doctypes like HTML 4.01 Strict/Transitional/Frameset etc… you can browse here.

 

Declaring Encodings

For HTML or XHTML served as HTML, you should always use the

<meta>

tag inside

<head>

. Example:

<meta http-equiv="Content-Type" content="text/html;charset=utf-8" >

For XHTML, you need a slash at the end:

<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />

 

Declare Sections

Use the HTML Tags to declare your sections: