Pages

Tuesday, 4 August 2015

Primary Tags in HTML

There are few tags that are regularly used by us in our websites.. They are:
<a> This tag is also called as ANCHOR tag.This tag is used to define a hyperlink, in other words it is used to create a link between the pages.
<body> This tag is also called BODY tag.This tag is used to define the content of the page.
<br> This tag is used for line breaks, in other it is used to give a line space between two sentences or words.
<button> This tag is used to create a button for our page which is clickable and action oriented button.
<div> This tag is used to divide a page into rows and columns.
<footer> This tag is used to define a footer for the document or section.
<head> This tag is used to define information about html document or page.
<header> This tag is used to define a header for the document or section.
<html> This tag defines root of an html document and also used for initialization of html document or page.
<form> This tag is used to define a form.
<input> This tag is used to define input elements and controls like textbox, checkbox, text fields etc.
<label> This tag defines label for an input element.
<link> This tag is used to link the documents with external sources, in other words it used mostly to link stylesheets.
<li> This tag is used to create list items.
<nav> This tag is used to create navigation links in a document or page.
<ol> This tag is used to create ordered lists.
<option> This tag is used to define an option in a drop-down list.
<p> This tag is used to define paragraphs.
<script> This tag is used to create client-side scripts.
<select> This tag is used to define drop-down lists.
<span> This tag is used to define a section in a document.
<style> This tag is used to define style of a html document.
<table> This tag is used to define a table.
<tbody> This is tag groups the body content of a table.
<td> This tag defines cell in a table or in other words it is used to define table data.
<tfoot> This tag defines footer content in a table.
<th> This tag defines the table header.
<thead> This tag defines header content in a table.
<tr> This tag defines a row in a table.
<ul> This tag is used to define unordered list.

First Paragraph in HTML

Welcome Back again..

We are now going to write our first paragraph in html..

The tag used for defining a paragraph is <p>

Let's start our Code

<!DOCTYPE html>
<html>
<head>
<title>writing Paragraph</title>
</head>

<body>

<p>This is my first Paragraph</p>

</body>
</html>

Output: 

This is my first Paragraph


By default small size is assigned to paragraph, but we can define our own size by using stylesheet which we will learn it further..

To be Continued....

Hello World using HTML

Welcome to HTML section...

First off all What is HTML? the answer is simple.. go through below..



What is HTML?

HTML is a markup language for describing web documents (web pages).
  • HTML stands for Hyper Text Markup Language
  • A markup language is a set of markup tags
  • HTML documents are described by HTML tags
  • Each HTML tag describes different document content.
Here's a wonderful Hello World! Example:

<!DOCTYPE html>
<html>
<head>
<title>Hello world app</title>
</head>
<body>

<h1>Hello World!</h1>

</body>
</html>


Output:
Hello World! 
         
Here.. Html is started by specifying it's type of document as html.Head section is completely used for linking of Stylesheets, Providing titles for the pages, linking the Javascript files, defining the character set of the text used in the pages.. etc..

Body tag is used to represent the content of the page. There are 6 heading tags used in html, they are in the descending order. <h1><h2><h3>,h4><h5><h6>..


Remember in Html the opening tag will always be like this <> and closing tag will always be like this </>


To  Be Continued...