Monday 24 September 2012

LISTS

Basic type of lists:

1.Ordered list

2.Unordered list

An ordered list:

  1. The first list item
  2. The second list item
  3. The third list item

An unordered list:

  • List item
  • List item
  • List item

Friday 21 September 2012

HTML Images

The <img> tag and the src attribute

In HTML, images are defined with the <img> tag. 
The <img> tag is empty, which means that it contains attributes only, and has no closing tag.
To display an image on a page, you need to use the src attribute. Src stands for "source". The value of the src attribute is the URL of the image you want to display.

The alt attribute:

The required alt attribute specifies an alternate text for an image, if the image cannot be displayed.
The value of the alt attribute is an author-defined text: 

<img src="url" alt="some_text"/>

Set height and width

The height and width attributes are used to specify the height and width of an image.
The attribute values are specified in pixels by default:

<img src="yo.jpg" alt="Techo yo" width="304" height="228">


Align attribute:

 Align attribute can be used with images. eg. align="bottom"


Thursday 20 September 2012

Head Element


The HTML <head> Element

The <head> element is a container for all the head elements. Elements inside <head> can include scripts, instruct the browser where to find style sheets, provide meta information, and more.
The following tags can be added to the head section: <title>, <base>, <link>, <meta>, <script>, and <style>.

The HTML <title> Element

The <title> tag defines the title of the document.
The title element is required in all HTML/XHTML documents.
The title element:
  • defines a title in the browser toolbar
  • provides a title for the page when it is added to favorites
  • displays a title for the page in search-engine results

Monday 17 September 2012

HTML Links

You must have observed a webpage is fully loaded with links that connect to other pages and websites.
So, how do we do this?


HTML Hyperlinks (Links)

A hyperlink (or link) is a word, group of words, or image that you can click on to jump to a new document or a new section within the current document.
When you move the cursor over a link in a Web page, the arrow will turn into a little hand.
Links are specified in HTML using the <a> tag.
The <a> tag can be used in two ways:
  1. To create a link to another document, by using the href attribute
  2. To create a bookmark inside a document, by using the name attribute

Sunday 16 September 2012

My Story

Have you ever thought of building the next BIG THING to facebook or google on the web?
I have! And that is why I'm here, learning(and helping you learn) web development stuff. 
What actually made me aim for it is the history of the facebook. It has been quite sometime since I saw 'The Social Network' (immediately after which I got the urge) and I'v just started putting in effort to make my dream come true. I've watched the movie 12 times now and I'm definitely not bored yet. Mark Zukerberg is such an inspiration!
I recommend all o' u to read this at least once..If you've not seen the movie.: http://en.wikipedia.org/wiki/History_of_Facebook

GET MOTIVATED..GET TO WORK! :)
      

The Million dollar website

Recently, I came across this post while surfing the web and it was truly motivating. That is why I decided to share it on the blog. :)

CLICK HERE:

Building a million dollar website

Styling in HTML

Inline Styles

An inline style can be used if a unique style is to be applied to one single occurrence of an element.
To use inline styles, use the style attribute in the relevant tag. The style attribute can contain any CSS property. The example below shows how to change the text color and the left margin of a paragraph:

<p style="color:blue;margin-left:20px;">This is a paragraph.</p>

HTML Style Example - Font, Color and Size

The font-family, color, and font-size properties defines the font, color, and size of the text in an element:

<!DOCTYPE html>
<html>

<body>
<h1 style="font-family:verdana;">A heading</h1>
<p style="font-family:arial;color:red;font-size:20px;">A paragraph.</p>
</body>

</html>



HTML Style Example - Text Alignment

The text-align property specifies the horizontal alignment of text in an element:


<!DOCTYPE html>
<html>

<body>
<h1 style="text-align:center;">Center-aligned heading</h1>
<p>This is a paragraph.</p>
</body>

</html>



CSS style sheets can also be used..which we'll see later in the CSS tutorial!


Saturday 15 September 2012

HTML text formatting


Text formatting refers to the act of making text on the web page appear as desired. eg., making text italics, bold etc.

<!DOCTYPE html>
<html>
<body>

<p><b>This text is bold</b></p>
<p><strong>This text is strong</strong></p>
<p><big>This text is big</big></p>
<p><em>This text is emphasized</em></p>
<p><i>This text is italic</i></p>
<p><small>This text is small</small></p>
<p>This is<sub> subscript</sub> and <sup>superscript</sup></p>

</body>
</html>

This is how the output will appear:

This text is bold
This text is strong
This text is big
This text is emphasized
This text is italic
This text is small
This is subscript and superscript

  • Pre-formatted text can be displayed using the tag <pre> </pre>. Text inside these tabs appear as such (with the same style) in the webpage.
  • Abbreviation tag:
    The <abbr title="World Health Organization">WHO</abbr> was founded in 1948.
    on moving the cursor over WHO on the browser, u'll see the abbreviation appear.

  • Quotation:

<blockquote>
This is a long quotation. This is a long quotation. This is a long quotation. This is a long quotation. This is a long quotation.
</blockquote>

<p><b>Note:</b> The browser inserts white space before and after a blockquote element. It also inserts margins.</p>

A short quotation:
<q>This is a short quotation</q>

<p><b>Note:</b> The browser inserts quotation marks around the short quotation.</p>

Output:

A long quotation:
This is a long quotation. This is a long quotation. This is a long quotation. This is a long quotation. This is a long quotation.
Note: The browser inserts white space before and after a blockquote element. It also inserts margins.
A short quotation: This is a short quotationNote: The browser inserts quotation marks around the short quotation.

Friday 14 September 2012

Link and Image basics in HTML


HTML Links

HTML links are defined with the <a> tag.

Example:
<a href="http://www.techoyo.blogspot.com">This is a link</a>

HTML Images

HTML images are defined with the <img> tag.

Example:
<img src="w3schools.jpg" width="104" height="142" />

Note: The filename and the size of the image are provided as attributes.
You give the path of the image in "quotes".



We'll learn more about these tags as we go deeper..sometime later. :)


How to make your HTML code work?

This is how you execute a HTML code:

  • Open a text document (eg. using notepad)
  • Type your code.
  • File -> Save As -> Save the file as "filename.html". (not .txt)
  • Open the file using your browser.
  • Your first web page is ready! :)

Getting started with HTML

This is how a basic html code looks:

<!DOCTYPE html>
<html>
<body>

<h1>My First Heading</h1>

<p>My first paragraph.</p>

</body>
</html>

Things between the <html> and </html> tags constitute the instructions to the browser.
Items within the <body> and </body> define the appearance of a webpage.
<h1>Is the heading tag</h1>
<p>contains a paragraph</p>.

OUTPUT:
<p>tag 

Thursday 13 September 2012

The Basics

web developer is a programmer who specializes in, or is specifically engaged in, the development of World Wide Web applications, or distributed network applications that are run over HTTP from a web server to a web browser.

Modern web applications often contain three or more tiers, and depending on the size of the team a developer works on, he or she may specialize in one or more of these tiers - or may take a more interdisciplinary role. For example, in a two person team, one developer may focus on the technologies sent to theclient such as HTMLJavaScriptCSS, and on the server-side frameworks (such as PerlPythonRubyPHPJavaASP.NET.NET MVC) used to deliver content and scripts to the client. Meanwhile the other developer might focus on the interaction between server-side frameworks, the web server, and adatabase system. Further, depending on the size of their organization, the aforementioned developers might work closely with a content creator/copy writer, marketing advisor, web designerweb producerproject managersoftware architect, or database administrator - or they may be responsible for such tasks as web design and project management themselves.