Basic HTMl tags |
|
HTML stands for Hyper Text Markup Language, is the markup language for web pages. It provides a means to describe the structure of information in a web page — by denoting certain text as links, headings, paragraphs, lists, tabular data, etc. To supplement that text interactive elements like forms, embedded images, and other objects are also present. HTML is written in the form of tags, surrounded by angle brackets with attributes. HTML can also describe the appearance and semantics of a document, and can include embedded scripting language code (such as JavaScript) which can add more interactivity and GUI to web page. HTML elements or tags are the basic structure for HTML markup. Elements have two basic properties: attributes and content. Attributes are different propreties and these attributes are applied to the content, which is the actual data. The best way to learn HTML is to view the source of any web page (press Ctrl+U). Many tags can have different attributes and attributes are specified by there name followed by = sign and value in double quotes " ". The head element can contain information about the document. The browser does not display the "head information" to the user. Most commonly used tags in the head section are <title>, <meta>, <base>, <link>, <script>, <style> Title: This element defines the title of the document. Title is displayed on the browsers title bar. Title is important from the SEO point of view, as it tells the search engine about the content of the page. You can have exactly one TITLE in the document. The contents of the TITLE can be any amount of text. The <h1> to <h6> tags define headings. Normally the most important heading is given the h1 tag. <h1> defines the largest header. <h6> defines the smallest header. Search Engines are constantly looking for h1 tag, so its very important to put keywords in H1 tag Paragraph tag is for writing text in paragraph. Has not much visual impact but it important to give the text document proper structure. The <meta> element provides meta-information about your page, such as descriptions and keywords for search engines and refresh rates. These are one of the most important tags from SEO point of view. The <meta> tag always goes inside the head element. Tables are used for showing tabular data. Most of the time tables are used for presentation which is not it is made for. Tools like Dream Weaver makes heavy use of tables, which makes the loading of page slow. Table less design is the solution, in which <div> tags are used. If you want to know more in detail about table less design click here. <div> tags are used for structuring, and dividing text in sections. Div are more preferred these days. Tables for layout and presentation is out of date. The <a> tag defines an anchor or link. Image tag <img> is used for displaying image in the document. This increases the look and feel of the page. Alt attribute is also very important as search engine cannot read images and reads the alt attribute. There are many such html tags. |