| | | | | | | | | |
|
|
|
|
|
|
|
|
| |
1. HTML Web Standards
« Previous Chapter
Next Chapter » |
|
|
| |
The latest web browsers and web pages have become more complicated and complex, therefore web developers now take deep consideration to Web Standards when creating HTML pages
For example:
- Web Developers now declare a web page with the following markup as a standard.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
Note:
- The above markup declares the HTML web page and complies with the XHTML 1.0 Strict standard.
- XHTML 1.0 converts HTML markup into well-formed XML. This means, the HTML code complies with XML rules that follow.
- Self-closing tags – All tags used in the HTML code must be self-closing for instance, <img> with <img/> and <br> with <br/>.
- Close all tags – Tags like <p> and <li> are now completed with </p> and </li>.
- Quote attributes – The use of quotes for instance, id= “myID” instead of id=myID.
- Consistent case – All HTML code should be of the same Case, for instance <A> tag should be <a>. This makes XHTML validation easier if all the code is lowercase. This can be set as an option in Visual Studio HTML editor.
- Use entities – Reserved characters are converted to their special sequences for instance:
- < will be <
- > will be >
- & will be &
- ‘ will be '
- “ will be "
The following chapter shows two types of web standards available for you when you create HTML pages:
« Previous Chapter
Next Chapter »
Table of Contents
» Chapter 1 - HTML Web Standards
Chapter 1.1 - Visual Studio and Standards
Chapter 1.2 - External XHTML validation
Chapter 2 - Creating Columns Using CSS
Chapter 2.1 - Page Layout using <div> tags
Chapter 2.2 - ASP.NET Document Outline
Chapter 2.3 - Style Rules for <div> tags
Chapter 3 - Improving Web Page Performance
Chapter 3.1 - Turning off ViewState
Chapter 3.2 - Caching Content
Chapter 3.2.1 - Page-Level Caching
Chapter 3.2.2 - Cache Period
Chapter 4 - Accessibility Requirements
Chapter 4.1 - Image Alternate Text
Chapter 4.2 - Avoiding Table for Layouts
Chapter 4.3 - Client-side Scripts
Chapter 4.4 - Validating Web Accessibility
Chapter 5 - Increasing Web Page Usability
Chapter 5.1 - Tab Order
Chapter 5.2 - Access Keys
Chapter 5.3 - Default Focus and Default Buttons
[top] |
|
| |
|
|
| | |
|
|
|