Revision for “Essential HTML Tags” created on January 28, 2015 @ 22:54:45
|
Essential HTML Tags
|
|
Basic <a title="HTML" href="http://code.emrysproductions.com/wiki/html/">HTML</a> structure is based around 4 sets of <a title="Tag" href="http://code.emrysproductions.com/wiki/tag/">tags</a> which are needed for every HTML page.
<ul style="list-style-type: square;"> <li>HTML <html></html></li> <li>Head <head></head></li> <li>Title <title></title></li> <li>Body <body></body></li> </ul> <iframe src="http://jsfiddle.net/mapster86/ctcL5mpc/4/embedded/html,result" width="100%" height="300" frameborder="0" allowfullscreen="allowfullscreen"></iframe> In this example, note everything falls between the HTML tags, the title appears within the head of the document and that the body comes after the head. <strong>Definition</strong> – <code class="def"><html> </html></code> This basically defines the document as web page. It also identifies the beginning and end of the HTML document. All other tags must fall between the HTML tags. <strong>Header</strong> – <code class="def"><head> </head></code> The header contains information about the document that will not appear on the actual page, such as the title of the document, the author, which <a title="CSS" href="http://code.emrysproductions.com/wiki/css/">stylesheet</a> to use and also meta tags. <a title="title" href="http://code.emrysproductions.com/wiki/title/"><strong>Title</strong></a> – <code class="def"><title> </title></code> The title tag defines the title that will appear in the title bar of your web browser. The title must appear between the head tags. <strong>Body</strong> – <code class="def"><body> </body></code> The body tags contain all the information and other visible content on the page. All your images, links and plain text must go between the <code><body></code> and <code></body></code> tags. After you have set up your page using these tags you can start using some other basic tags for content and headings |