Static Website is one that has web pages stored in the server in the format as they are delivered to the user exactly as stored. It is also know as flag page or stationary page. In other words, the content of a static page does not change at runtime. When a user or client requests for a static Web page through a Web browser, the request is sent by the browser using a protocol called Hypertext Transfer Protocol (HTTP). This protocol functions as a request-response standard for data transfer over the Internet. The request is processed by the Web server, which retrieves the desired page and sends it back to the browser.
These days, website designing is generally created using Hypertext Markup Language (HTML). HTML is a Web standard that simplifies the process of creating static websites or web applications. These Web standards ensure that Web browsers are able to display the Web pages properly. The document containing the code to create a static Web page is called an HTML document. An HTML document consists of different elements and attributes, and has an .html extension. The first element of the document is <DOCTYPE>, which specifies the document type definition (DTD).
CSS stands for Cascading Style Sheet. It is used to define display pattern of web pages. You can define font style, font color, background and style for controls using a CSS file. A CSS file can be created with any text editor by saving it with .css extension.
CSS is a language used to describe the presentation or appearance of static web design, such as the font, margins, color, and background graphics of a Web page. CSS enables you to define the layout of a Web page. For example, you can store all the presentational elements of a large website in a single CSS file. This enables you to have better control over the presentation of the static website designing and avoid the use of presentational element types in HTML. A CSS file can be written using any text editor and saved with the .css extension.
Advantage of Static Websites
- Easy to develop
- Quick to develop
- Cheaper development cost
- No maintenance required
- Fast loading in page
Disadvantage
- Required Expert web developer to update to site
- Site not useful for the users
XHTML is a standard markup language that combines the features of both HTML and Extensible Markup Language (XML). XML is used to describe the data of a Web page, while HTML is used to display its data. Therefore, their combination-XHTML-is a more powerful markup language than HTML. XHTML defines various types of modules, such as text and hypertext, for static website development. The text module defines the basic text container elements as well as their attributes. The hypertext module defines the elements used to create hyperlinks.