Showing posts with label HTML Introduction. Show all posts
Showing posts with label HTML Introduction. Show all posts

CSS3 Box Shadow


In CSS3 "box-shadow"property used to display shadow to a box in the webpage.By giving values seprated by whitespace for box-shadow property you can apply styles to image or a box.


Syntax:

Here we have a syntax with example:
h-shadow      :     Required value which shows the horizontal shadow. Negative values also acceptable if it is needed.

v-shadow      :     Required value which shows the vertical shadow. Negative values also acceptable if it is needed.

blur               :      Optional value which is used to give the blur distance.

spread           :      Optional value which is used to give th size of the shadow. Negative values are allowed when it is needed.

color             :      Optional value which used to provide color to the shadow. Default value is black. You can use hex-decimal format or the name of the color or the RGB number to the value.


For cross-browser compability you can use example code as follows: -


Example 1 - shows a shadow to the left top by 5px.
#ex1{
-moz-box-shadow: -5px -5px #222;
-webkit-box-shadow: -5px -5px #222;
box-shadow: -5px -5px #222;
}

Example 2 - shows the same shadow with blur distance of 5px.
#ex2{
-moz-box-shadow: -5px -5px 5px #222;
-webkit-box-shadow: -5px -5px 5px #222;
box-shadow: -5px -5px 5px #222;
}

Example 3 - shows the same shadow with spread distance of 5px.
#ex3{
-moz-box-shadow: -5px -5px 0 5px #222;
-webkit-box-shadow: -5px -5px 0 5px#222;
box-shadow: -5px -5px 0 5px #222;
}

Example 4 - Shows the same shadow with no h-shadow and v-shadow only with blur and spread distance of 5px.
#ex4{
-moz-box-shadow: 0 0 5px 5px #222;
-webkit-box-shadow: 0 0 5px 5px#222;
box-shadow: 0 0 5px 5px #222;
}

HTML Introduction

HTML


History of HTML

                     Internet communication had been limited to plain text, using technologies such as email, FTP (File Transfer Protocol), and Usenet-based discussion boards. Later Tim Berners-Lee, physicist at CERN (the European Organization for Nuclear Research), devised a way in the late 1980s for scientists to share documents over the Internet.HTML is derived from SGML, which is a complex syntax for marking up or binding of content (text or graphics) in documents; as of HTML 5, HTML no longer attempts to adhere to SGML syntax.

What is HTML?

              HTML - Hyper Text Markup Language. 
The word "Hyper" refers making text hyper level and to display in website. "Markup" means something slightly different and highlighting text: a language with specific syntax that instructs a Web browser how to display a page.

                    HTML uses a pre-defined set of elements to define content types to display text. Elements contain one or more "tags" that contain or express content. Tags are enclosed by angle brackets, and the closing tag begins with a forward slash.

The following example shows basic structure of HTML:

HTML Sections:

                     HTML contains two important sections : 
                                1. head section - contains title tag and other external file links.
                                2. body section - contains all html tags that holds contents to display in webpage.

<!doctype> definition

                         The <!DOCTYPE> declaration helps the browser to display a web page correctly. There are different document types on the web.All cases are acceptable :
                 <!DOCTYPE html>
                 <!DOCTYPE HTML>
                 <!doctype html>
                 <!Doctype Html>

<!DOCTYPE> declarations

              HTML 5 - <!DOCTYPE html>

             HTML 4.01 - <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

            XHTML 1.0 - <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">      

HTML Versions

Version
Year
HTML
1991
HTML 2.0
1995
HTML 3.2
1997
HTML 4.01
1999
XHTML
2000
HTML5
2014