Structure of Common html Tags and Attributes

Published: 27th May 2011
Views: N/A
Ask About This Article Print Republish This Article
The tag, which the HTML 3.2 through 4.01 specifications requjl contains the document title. The title does not appear within the brca» window, although it is usually visible in the browser's title bar. Between the opening and closing tags, include a title that briefly summarizes yofl document's content To use the tag, enter it between the opefl and closing <HEAD> tags, like this:<br /> <br /> Titles should represent the document, even if the document is t out of context. Some good titles include the following:<br /> Sample HTML Code<br /> Learning to Ride a Bicycle<br /> Television Viewing for Fun and Profit<br /> Less useful titles, particularly taken out of context, include the foil<br /> Continued<br /> <br /> <br /> The <BODY> tag encloses all the tags, attributes, and information that you want a visitor's browser to display. Almost everything else in this entire book takes place between the <BODY> tags. To use the <B0DY> tag, enter it below the closing </HEAD> tag and above the closing </HTML> tag, like this:<br /> <br /> <br /> If you've been following along, save your document, view it in a browser, and compare it with Figure 2.1 to confirm that you're on the right track. The title appears in the title bar, and some text appears in the document window.<div class="googleright"><script type="text/javascript"><!-- google_ad_client = "pub-2907974803424692"; /* 336x280, created 6/23/11 */ google_ad_slot = "3818411811"; google_ad_width = 336; google_ad_height = 280; //--> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script></div><br /> <br /> MINIMAL COMPLIANCE FOR STRUCTURE TAGS<br /> <br /> As shown in the previous sections, the HTML 4 specification does not require all structure tags. In fact, it requires only two: the <! DOCTYPE...> tag and the <TITLE> tag. If you choose to use only these two tags, the code would look like this:<br /> O.DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01<br /> Transitional //EN "><br /> <TITLE>The name of a minimal and content free document
Of course, there's no purpose in creating a document with nothing but the minimal tags—the document doesn't say anything and doesn't present any information. If you use these two tags as a starting paint, however, you can create a standard compliant document and rave yourself a few keystrokes on each new document you create.


APPLYING COMMON TAGS AND ATTRIBUTES

After you include the structure tags, you're ready to start placing ba content in the document body. The following sections show you ho1 include headings, paragraphs, lists, and rules (horizontal lines). Th ^^ elements constitute the basic HTML document components and, unB the structure tags, do appear in the browser window. Learning to apply these basic tags and attributes will prepare you to apply practically afl HTML tag or attribute. As you create your content, keep in mind that its exact appeara vary from browser to browser, as described. For exam{ first-level heading in one browser might appear as approximately 16 Times New Roman Bold, whereas another browser might display i< 14-point Arial Bold Italic. Both browsers display the heading bigger a bolder than other heading and body text, but the specific font, size emphasis will vary. You can also apply other paragraph formate instead of the

tag to achieve some slightly different paragraph formate, as explained in Tabk 2 1 Alignment attributes are often used with these.

For more information to visit : -

web design And
web design templates Or
affordable web designing

This article is free for republishing
Source: http://shivaniybglobkapoor.articlealley.com/structure-of-common-html-tags-and-attributes-2251940.html


Report this article Ask About This Article Print Republish This Article


Loading...
More to Explore
 


Ask a Professional Online Now
27 Experts are Online. Ask a Question, Get an Answer ASAP.
Type your question here...
Optional:
Select...