Hosting with XHTML, CSS, and Graphics
Limitations of XHTML
Sample of XHTML
About DTDs
What is the role of CSS
Web hosting service is a type of internet hosting service that allows individuals and organizations to make websites accessible via the World Wide Web. The hosting companies provide a particular space on the server provided by the web hosting company. That space is provided according to what the user wants and is suitable for the user. Websites can be hosted on many different platforms. So, if hosting the website is done with XHTML, CSS, and web graphics, how will it work? So, let’s briefly talk about XHTML, CSS, and web graphics.
XHTML is the stricter and cleaner form of HTML and is identical to HTML 4.01. XHTML is responsible for the structure of the web pages, whereas CSS handles presentation (Cascading Style Sheets). The first version of it is known as XHTML 1.0. It used the existing three document types of HTML and reformulated them as applications of XML. XHTML is the recommendation of W3C (Worldwide Web Consortium), an organization that makes and maintains standards for the Internet and its associated technologies.
- Documents must have only one root element
- XHTML elements must be properly nested
- Parts must permanently be closed and be in lowercase
- Tags attribute names must be in lowercase and quoted
- XHTML tags attribute minimization is forbidden
Websites are designed with multi-column CSS layouts with optimized graphic files; the process of website development includes:
• Getting Web Hosting, Domain name and FTP Access: Get the best business hosting plan, which helps you provide the user with the best hosting. The business hosting plan offers the following :
•Create a simple (X)HTML page, how to add links and images: An XHTML document has a straightforward structure. It has a header, which contains information about the document, and a body, which includes its primary content. To markup this structure, you need three tags – <html>, <head>, and <body>. The FTP (File Transfer Protocol File Transfer Protocol) is one of the oldest on the Internet. It is a service that users frequently use (driver downloads, music, documents, etc..), But this is only part of the service; since it is also possible to implement in our machine, an FTP server for other users can connect to our computer and pick up / leave information in a particular area.
E.g.:
<?xml version=”1.0″ encoding=”UTF-8″?>
<!DOCTYPE htmlPUBLIC “-//W3C//DTD XHTML 1.0 Strict//EN””DTD/xhtml1-strict.dtd”>
<html xmlns=”http://www.w3.org/1999/xhtml” xml:lang=”en” lang=”en”>
<head>
<title> Strict DTD XHTML Example </title>
</head>
<body>
<p>
Please Choose a Day:
<br /><br />
<select name=”day”>
<option selected=”selected”>Monday</option>
<option>Tuesday</option>
<option>Wednesday</option>
</select>
</p>
</body>
</html>
• Web standards –
Facts about XHTML:
- XHTML documents start with an <html> tag – there is no such thing as an <xhtml> tag.
- You must declare the XHTML namespace inside the opening <html> tag.
- This XHTML example covered the use of XHTML transitional – for XHTML strict or Frameset, use the appropriate DOCTYPE Declaration.
- Remember that declaring a DOCTYPE with a valid identifier at the top of an XHTML page puts most browsers in standards mode- so remember not to use old browser hacks and non-standard tags. (Otherwise, use regular HTML)
- For some browsers, including Microsoft Internet Explorer 6, if you start an XHTML page with the XML declaration, the browser goes into quirks mode, an unfortunate bug. The workaround is to delete the optional declaration and declare the encoding using a meta tag.
- The DOCTYPE declaration has to be in all uppercase characters, just like in the XHTML example code.
XML defines the DTD [document type definition] to avail variable contents to display them. XML conversion services are helpful for newspapers, magazines, journals, technical and various documents, graphics and other republishing services. The source file is converted and validated with the best-validating software; every individual tag will be validated by an automated method to ensure the highest quality standard. The purpose of a DTD (Document Type Definition) is to define the legal building blocks of an XML document. A DTD defines the document structure with a list of legal elements and attributes. Three types of DTDs are there:
a. Strict:
It would be best to use the strict DTD when your XHTML pages are marked cleanly and free of presentational clutter. You use the strict DTD with cascading style sheets because it doesn’t allow attributes like “bgcolor” to be set for the <body> tag, etc.
b. Transitional
The transitional DTD should be used when you need to take advantage of the presentational features available through HTML. It would be best if you also used the transitional DTD when you want to support older browsers that don’t have built-in support for cascading style sheets.
c. Frameset
Using the Frameset DTD when your XHTML page contains frames would be best.
Go To Top
• Cascading Style Sheets – CSS stands for Cascading Style Sheets. Styles define how to display HTML elements. Styles were added to HTML 4.0 to solve a problem. External Style Sheets can save a lot of work. External Style Sheets are stored in CSS files. CSS defines HOW HTML elements are to be displayed. CSS allows us to create visual settings for our internet documents. CSS is not a tool to enrich websites’ business or logical layers. CSS’s primary and only purpose is to improve and give better control to visual aspects such as page layout, page colour, text and decorations and the like.
CSS also allows us to define different displays of the same content in different situations. For example, CSS can be configured to display content differently in a browser or printed document. CSS also allows us to customize how one reader or a group of readers will see our site according to various characteristics we can define in advance.
For example, if you want to change the background colour of a page, then the CSS is as follows:
<html>
<head>
<style type=”text/css”>
body
{
background-color:#b0c4de;
}
</style>
</head>
<body>
<h1>My CSS web page!</h1>
<p>HELLO! Welcome to webhostingcheap.net</p>
</body>
</html>
• Web graphics: Graphics are visual elements that often point readers and viewers to particular information. They are also used to supplement text to aid readers in understanding a specific concept or make the idea more engaging.
Graphics can be functional or artistic. The latter can be a recorded version, such as a photograph, an interpretation by a scientist to highlight essential features or an artist, in which case the distinction with imaginary graphics may become blurred. Web graphic design has been professed as the easiest and most modern method for online connectedness, exploring other arenas of typography for designs. It uses visual arts, creative and cognitive skills, etc., to create that quest to grouping. In primary events, equal fluid publicity and competent illustration design better portray the open soul for the kind.
