Monday 20 February 2017

Attributes- left, right or center.

This attribute lets you place text or picture to the left, right or center.
for example-
As you can see, we can use different alignments shown in the coding. (don't use HTMLADDAS.in in coding)
Result-


Note- Side of the margin without this attribute the browser will take the default as left.




Basic concept- tags, elements.

Tag-
Tags are codes that specify links to other document as well as how the webpages display. Each tag is given a specifies instruction enclosed by angle braces"< >".
The text is written as-
 <command tag> - operating tag.
 </command tag> -closing tag.
Elements-
The words between (< >) these to angle brackets are called elements. These are the coded command within HTML. Elements tell the browsers how to display the web page.
for ex- <hr>, <br>.
<hr> tells browser to display a horizontal rule(line).
<br> tells the browser to skip a line.
Note-
HTML tags are not case sensitive that means you either use lower case or upper case, HTML tags will be the same.
E.g. - <hr> or <HR>.
HTML Structure-
All HTML documents are debited into two main parts-
(a) Head  (b) Body
It goes something like this-you must have the HTML tag<html>, head tag<head>, body tag<body> in every HTML files.