Categories
Html

HTML iframe

The iframe is used to include external html pages or other html pages inside another html page. iframe format: <iframe width=”400″ height=”300″ src=”http://example.com/”></iframe> There are different types of attributes i.e. width, height, name, src, srcdoc, seamless etc.

Categories
Html

Text Formatting

To format html text several elements are used. Now day we can do this by css style. But you can still use html element for formatting. Text Formatting types: <pre> Element:<pre>The quick brown fox jumps over the lazy dog</pre> <del> ElementThe quick brown fox <del>jumps</del> over the lazy dog <sup> Element<p> The quick brown fox […]

Categories
Html

Div and span elements in HTML

For special formatting,  div and span elements are used. You need to add styles in css for proper formatting or looks and feel. The difference between <div> and <span> is <div> is displayed as a block and <span> is displayed as inline text. Example of div and span elements: The <div>quick brown</div> fox jumps over […]

Categories
Html

Links in HTML

To create any links in HTML internal or external <a> element is used. Clicking on this link user goes to another page or another external url. Normal links looks like: <a href=”http://www.example.com”>Click here</a> You can parameters too: <a href=”http://www.example.com?param1=100&param2=200″>Click here</a> Note to remember that parameters are separated by (&) after each parameter value. To open […]

Categories
Html

HTML Lists

In html two different lists of elements are present i.e. unordered list and ordered list. Unordered lists: This lists enclosed with <ul> element and are bullet lists. <ul> <li>List 1</li> <li>List 2</li> <li>List 3</li> </ul> You can also change the type of bullet i.e. <ul type=”square”><li>…</li></ul> <ul type=”circle”><li>…</li></ul> <ul type=”disc”><li>…</li></ul> Ordered lists: These are used […]

Categories
Html

HTML Document Structure

Here you will see how the basic html document structure looks like. The page includes a doctype declaration with a html, head, title and body element. Doctype tells the browser what version oh html is using in the document.For latest version html5 it is written as <!DOCTYPE html> Read Also: HTML Forms The other elements […]

Categories
Html

HTML Forms

By using html forms we get input data from the user. For example registration form, contact us feedback etc. Html forms are enclosed between form element like below:<form></form> There are numerous form fields that can be use in forms: -Text field-Text area-Checkbox-Radio buttons-Select box-File field-Button-Image button-Submit button GET and POST:Form method can be two types […]

Categories
Html

HTML Entities

In many different language HTML language is used. So it contains different types of symbols or entities which are not english alphabet. These entities starts with ampersand character and finish with semicolor character. For e.g. &quot; Here is a list of entities examples: &quot; “ &apos; ‘ &amp; & &lt; < &gt; > &pound; £ […]

Categories
Html

Element Structure of HTML

HTML documents consists of multiple element structure which includes start tag, attribute, body element, end tag etc. Element Structure: The main tag of HTML is <html> and </html> which is start tag and end tag.The content element is written between two tags i.e. body tag.For example, <p>Hello there!</p> Few HTML elements have no body i.e. […]

Categories
Html

The URLs

URLs or Uniform Resource Locator is location of html document web. It consists of three parts i.e. Protocol, Domain and Resource path.For e.g. http://www.namasteui.com/index.php where http is protocol, www.namasteui.com is domain and index.php is resource path. It also has a query string i.e.http://www.namasteui.com/index.php?value=1&page=3So the query string for the above url is: ?value=1&page=3 which is a […]