Professional Documents
Culture Documents
DTD: indicates in which HTML 4.01 / XHTML 1.0 DTD the tag is allowed. S=Strict, T=Transitional, and F=Frameset
Tag Basic <!DOCTYPE> <html> <body> <h1> to <h6> <p> <br /> <hr /> <!--...--> Formatting <acronym> <abbr> <address> <b> <bdo> <big> <blockquote> <center> <cite> <code> <del> <dfn> <em> <font> <i> <ins> <kbd> <pre> <q> <s>
Description Defines the document type Defines an HTML document Defines the document's body Defines HTML headings Defines a paragraph Inserts a single line break Defines a horizontal line Defines a comment Defines an acronym Defines an abbreviation Defines contact information for the author/owner of a document Defines bold text Defines the text direction Defines big text Defines a long quotation Deprecated. Defines centered text Defines a citation Defines computer code text Defines deleted text Defines a definition term Defines emphasized text Deprecated. Defines font, color, and size for text Defines italic text Defines inserted text Defines keyboard text Defines preformatted text Defines a short quotation Deprecated. Defines strikethrough text
DTD STF STF STF STF STF STF STF STF STF STF STF STF STF STF STF TF STF STF STF STF STF TF STF STF STF STF STF TF
<samp> <small> <strike> <strong> <sub> <sup> <tt> <u> <var> <xmp> Forms <form> <input /> <textarea> <button> <select> <optgroup> <option> <label> <fieldset> <legend> <isindex> Frames <frame /> <frameset> <noframes> <iframe> Images <img /> <map> <area /> Links
Defines sample computer code Defines small text Deprecated. Defines strikethrough text Defines strong text Defines subscripted text Defines superscripted text Defines teletype text Deprecated. Defines underlined text Defines a variable part of a text Deprecated. Defines preformatted text Defines an HTML form for user input Defines an input control Defines a multi-line text input control Defines a push button Defines a select list (drop-down list) Defines a group of related options in a select list Defines an option in a select list Defines a label for an input element Defines a border around elements in a form Defines a caption for a fieldset element Deprecated. Defines a searchable index related to a document Defines a window (a frame) in a frameset Defines a set of frames Defines an alternate content for users that do not support frames Defines an inline frame Defines an image Defines an image-map Defines an area inside an image-map
STF STF STF STF STF STF STF STF STF STF TF
<a> <link /> Lists <ul> <ol> <li> <dir> <dl> <dt> <dd> <menu> Tables <table> <caption> <th> <tr> <td> <thead> <tbody> <tfoot> <col /> <colgroup> Styles <style> <div> <span> Meta Info <head> <title> <meta> <base />
Defines an anchor Defines the relationship between a document and an external resource Defines an unordered list Defines an ordered list Defines a list item Deprecated. Defines a directory list Defines a definition list Defines a term (an item) in a definition list Defines a description of a term in a definition list Deprecated. Defines a menu list Defines a table Defines a table caption Defines a header cell in a table Defines a row in a table Defines a cell in a table Groups the header content in a table Groups the body content in a table Groups the footer content in a table Defines attribute values for one or more columns in a table Defines a group of columns in a table for formatting Defines style information for a document Defines a section in a document Defines a section in a document Defines information about the document Defines the document title Defines metadata about an HTML document
STF STF
STF STF STF TF STF STF STF TF STF STF STF STF STF STF STF STF STF STF STF STF STF STF STF STF
Defines a default address or a default target for all links STF on a page
Deprecated. Defines a default font, color, or size for the TF text in a page Defines a client-side script Defines an alternate content for users that do not support client-side scripts Deprecated. Defines an embedded applet Defines an embedded object Defines a parameter for an object STF STF TF STF STF
Core Attributes
Not valid in base, head, html, meta, param, script, style, and title elements. Attribute class id style title Value classname id style_definition text Description Specifies a classname for an element Specifies a unique id for an element Specifies an inline style for an element Specifies extra information about an element
Language Attributes
Not valid in base, br, frame, frameset, hr, iframe, param, and script elements. Attribute dir Value ltr rtl language_code Description Specifies the text direction for the content in an element
lang
Specifies a language code for the content in an element.Language code reference Specifies a language code for the content in an element, in XHTML documents.Language code reference
xml:lang
language_code
Keyboard Attributes
Attribute accesskey tabindex Value character number Description Specifies a keyboard shortcut to access an element Specifies the tab order of an element
Form Events
The attributes below can be used in form elements: Attribute onblur onchange onfocus onreset onselect onsubmit Value script script script script script script Description Script to be run when an element loses focus Script to be run when an element change Script to be run when an element gets focus Script to be run when a form is reset Script to be run when an element is selected Script to be run when a form is submitted
Image Events
The attribute below can be used with the img element: Attribute onabort Value script Description Script to be run when loading of an image is interrupted
Keyboard Events
Valid in all elements except base, bdo, br, frame, frameset, head, html, iframe, meta, param, script, style, and title. Attribute onkeydown onkeypress onkeyup Value script script script Description Script to be run when a key is pressed Script to be run when a key is pressed and released Script to be run when a key is released
Mouse Events
Valid in all elements except base, bdo, br, frame, frameset, head, html, iframe, meta, param, script, style, and title. Attribute onclick ondblclick onmousedown onmousemove onmouseout onmouseover onmouseup Value script script script script script script script Description Script to be run on a mouse click Script to be run on a mouse double-click Script to be run when mouse button is pressed Script to be run when mouse pointer moves Script to be run when mouse pointer moves out of an element Script to be run when mouse pointer moves over an element Script to be run when mouse button is released
HTML 4.01
HTML is the language of the Web, and every Web developer should have a basic understanding of it. HTML 4.01 is an important Web standard, and very different from HTML 3.2. When tags, like <font> and color attributes, were added to HTML 3.2, it started a developer's nightmare. Development of web sites where font information must be added to every single Web page is a long and expensive job. With HTML 4.01, all formatting can be moved out of the HTML document, and into a separate style sheet. HTML 4.01 is also important because XHTML 1.0 is HTML 4.01 "reformulated" as an XML application. Using HTML 4.01 in your pages makes the future upgrade from HTML to XHTML a very simple process. Make sure you use the latest HTML 4.01 standard.
XHTML
XHTML stands for Extensible HyperText Markup Language. XHTML is a reformulation of HTML 4.01 in XML, and is supported in all major browsers. To prepare for the future: Read how W3Schools.com was converted to XHTML
gives HTML designers a programming tool can put dynamic text into an HTML page can react to events can change HTML elements can be used to validate data
Dynamically edit, change, or add any content of a Web page Respond to user queries and form data Access databases and return the result to a browser Access files and return the result to a browser Transform XML data to HTML data and return the results to a browser Customize a Web page to make it more useful for individual users Provide security and access control to Web pages Tailor your output to different types of browsers Minimize network traffic
Less is More
Keep the paragraphs as short as possible. Keep the pages as short as possible. Keep the chapters as short as possible. Use a lot of space! Pages overloaded with text will kill your audience. If you have a lot to say, break your information into smaller chunks and place it on different pages!
Navigation
Create a consistent navigation structure that is used by all the pages in your Web site. Don't use hyperlinks inside paragraphs, to send visitors to every page of your Web. This will destroy the feeling of a consistent navigation structure. If you must use hyperlinks, add them to the bottom of a paragraph, or to the menu.
Download Speed
Sometimes developers are not aware of the fact that some pages take a long time to download. Most visitors will leave a Web page that takes more than 7 seconds to download. Test your web pages over a low-speed modem connection. If your pages take a long time to download, consider removing graphic or multimedia content.
Visitor's Monitor
Not everyone on the internet has the same monitor as you. If you design a Web site to be displayed on a monitor with a 1024x768 resolution, visitors with lower resolution monitors (like 800x600) might have problems reading your pages. Make sure you test your Web site on different monitors. Take a look at our browser display statistics to see the trends in monitor development.
Web Standard
Web standards make Web development easier.
CSE HTML Validator for Windows Fast, Powerful, Customizable, and Offline HTML, CSS, Accessibility, SEO, and Link Checking.
Super-fast offline HTML, CSS, link, and more checking Built-in editor lets you easily find and fix problem Search engine checking (SEO) to help improve rankings Checks for issues that other validators don't Accessibility checking, including WCAG 2.0 Check everything with just one click or keypress Customize the message output to your needs Check an entire site with the Batch Wizard Easily check the output of dynamic pages Prices start at just $69, and a free trial is available
Client for Microsoft Networks File and Printer Sharing for Microsoft Networks NetBEUI Protocol Internet Protocol TCP/IP
If your setup allows NetBIOS over TCP/IP, you have a security problem:
Your files can be shared all over the Internet Your logon-name, computer-name, and workgroup-name are visible to others
If your setup allows File and Printer Sharing over TCP/IP, you also have a problem:
Computers that are not connected to any network can also have unsecure network settings, because the settings were changed when Internet was installed.
Open Windows Explorer Right-click on My Network Places Select: Properties Right-click on Local Area Network Select: Properties Select: Internet Protocol TCP/IP Click on Properties Click on Advanced Select the WINS tab Select Disable NetBIOS over TCP/IP Click OK
If you get the message: "This connection has an empty......", ignore the message and click on YES to continue, and click OK to close the other setup windows. You should restart your computer after the changes. For Windows 95, 98, or ME users: You can solve your security problem by disabling NetBIOS over TCP/IP:
Open Windows Explorer Right-click on My Network Places Select: Properties Select: Internet Protocol TCP/IP Click on Properties Select the NetBIOS tab Uncheck: Enable NetBIOS over TCP/IP Click OK
You must also disable the TCP/IP Bindings to Client for Microsoft Networks and File and Printer Sharing:
Open Windows Explorer Right-click on My Network Places Select: Properties Select: Internet Protocol TCP/IP Click on Properties Select the Bindings tab Uncheck: Client for Microsoft Networks Uncheck: File and Printer Sharing Click OK
If you get a message with something like: "You must select a driver.........", ignore the message and click on YES to continue, and click OK to close the other setup windows. If you still want to share your Files and Printer over the network, you must use the NetBEUI protocol instead of the TCP/IP protocol. Make sure you have enabled it for your local network:
Open Windows Explorer Right-click on My Network Places Select: Properties Select: NetBEUI Click on Properties Select the Bindings tab
Check: Client for Microsoft Networks Check: File and Printer Sharing Click OK