230 likes | 405 Views
VaaYaa Edu provides training in [url=http://www.vaayaaedu.com]ASP.NET Certification Course[/url], PHP, HTML, SEO, SEM, Android, Javascript,Joomla, website Design, css, and more..
E N D
HTML (Hyper Tax Markup Language AND CSS(Cascading Style Sheet) Command Innovative Technologies Command Innovative Technologies
Introduction of HTML • Short for Hyper Text Markup Language, the authoring language used to create documents on the World Wide Web. • Hyper Text is the method by which you move around on the web — by clicking on special text called hyperlinks which bring you to the next page. The fact that it is hyper just means it is not linear — i.e. you can go to any place on the Internet whenever you want by clicking on links — there is no set order to do things in. • Markup is what HTML tags do to the text inside them. They mark it as a certain type of text (italicised text, bold text for example). Command Innovative Technologies Command Innovative Technologies
What is HTML Tags ? • HTML markup tags are usually called HTML tags • HTML tags are keywords surrounded by angle brackets like <html> • HTML tags normally come in pairs like <b> and </b> • The first tag in a pair is the start tag, the second tag is the end tag • Start and end tags are also called opening tags and closing tags Command Innovative Technologies Command Innovative Technologies
Attribute Example • HTML links are defined with the <a> tag. The link address is specified in the href attribute: • <a href="http://www.google.com">This is a link</a> Command Innovative Technologies Command Innovative Technologies
Your First HTML Example <html> <head> <title>First Program</title> </head> <body> <!-- The main part of your web page. --> </body> </html> Command Innovative Technologies Command Innovative Technologies
Explanation <html>Tag : The root element that specifies that the content of the document is HTML. The html element must contain the head and the body elements. <head> Tag : The header of an HTML document where information about the document is placed. You must use the title element within the head element and meta, style, script, link can also be used. Command Innovative Technologies Command Innovative Technologies
Continue <body> Tag : • The main body of an HTML document where all of the content is placed. You must use this element and it should be used just once. It must start immediately after the closing head tag and end directly before the closing html tag. <title> Tag : • Defines the title of a page. You must have a title element to produce a valid document and it must be placed within the head element. Command Innovative Technologies Command Innovative Technologies
Html body Tag Attributes • alink - Use styles instead. Specifies the color of an active link in a document • background - Use styles instead. Specifies a background image for a document • bgcolor - Specifies the background color of a document • link - Specifies the default color of unvisited links in a document • text - Specifies the color of the text in a document • vlink - Specifies the color of the visited links in a document Command Innovative Technologies Command Innovative Technologies
Example <html> <head> <title>H1 To H6 Example</title> <body bgcolor="pink"> <font color="green"><h1>VaaYaaEdutech.com</font></h1> <font color="white"><h2> VaaYaaEdutech.com </font></h2> <font color="orange"><h3> VaaYaaEdutech.com </font></h3> <font color="purple"><h4> VaaYaaEdutech.com </font></h4> <font color="red"><h5> VaaYaaEdutech.com </font></h5> <font color="black"><h6> VaaYaaEdutech.com </font></h6> </body> </html> Command Innovative Technologies Command Innovative Technologies
<sub> Tag • Use for to subscript the value. • Example <html> <head> <title>Subscript example</title> <body bgcolor="pink"> <p>VaaYaa <sub>Edu.com</sub></p> </body></html> Command Innovative Technologies Command Innovative Technologies
Out put Command Innovative Technologies Command Innovative Technologies
<sup> Tag • Use for to supperscript the value. • Example <html> <head> <title>Supperscript example</title> <body bgcolor="pink"> <h1><p>H<sup>2</h1></sup></p> </body> </html> Command Innovative Technologies Command Innovative Technologies
<br> Tag • A line break. The <br> tag is an empty tag which means that it has no end tag. • Example <html> <head> <title>pre tag</title> </head> <body bgcolor=pink> <p><h1>My name is xyz<br /> and I am Indian</h1></p> </body></html> Command Innovative Technologies Command Innovative Technologies
<br> Tag • A line break. • <html> • <head> • <title>pre tag</title> • </head> • <body bgcolor=pink> • <p><h1>My name is xyz<br /> • and I am Indian</h1></p> • </body></html> Command Innovative Technologies Command Innovative Technologies
Introduction of CSS • What is the full form of CSS? Cascading Style Sheet • Why we use CSS? • We use CSS to control the style and layout of multiple Web pages all at once. • HTML was never intended to contain tags for formatting a document. • HTML was intended to define the content of a document, like: • <h1>This is a heading</h1> • <p>This is a paragraph.</p> Command Innovative Technologies Command Innovative Technologies
Continue… • What is CSS? • CSS stands for Cascading Style Sheets • Styles define how to display HTML elements • External Style Sheets can save a lot of work • External Style Sheets are stored in CSS files • How to write comment ? • A CSS comment begins with "/*", and ends with "*/", like this: /*This is a comment*/p{text-align:center;/*This is another comment*/color:black;font-family:arial;} Command Innovative Technologies Command Innovative Technologies
CSS Styling Background-color : transparent(default),inherit Background-position : left top,leftcenter,leftbottom,right top ,right center, right bottom,center top ,center ,center bottom Background-size : • Specifies the size of the background images • % Command Innovative Technologies Command Innovative Technologies
<html> <head> <style type="text/css"> body { background-image:url("Blue hills.jpg"); background-color:pink; background-repeat:no-repeat; background-attachment:fixed; background-position:center; } </style> </head> <body> </body> </html> Command Innovative Technologies Command Innovative Technologies
Margin • margin:25px 50px 75px 100px; • top margin is 25px • right margin is 50px • bottom margin is 75px • left margin is 100px • margin:25px 50px 75px; • top margin is 25px • right and left margins are 50px • bottom margin is 75px • margin:25px 50px; • top and bottom margins are 25px • right and left margins are 50px • margin:25px; • all four margins are 25px Command Innovative Technologies Command Innovative Technologies
VaaYaaEdu • VaaYaaEducation – Training And Placement,A/1/A, 3rd Floor, VaaYaa Lobby,Chinubhai Tower, Next to H K College,Ashram Road, Income Tax,Gujarat, Ahmedabad- 380009 • Call Us Now: +919586979730 • vaayaaedu@gmail.com
VaaYaaEdutech – Training And Placement,A/1/A, 3rd Floor, VaaYaa Lobby,Chinubhai Tower, Next to H K College,Ashram Road, Income Tax,Gujarat, Ahmedabad- 380009 • Call Us Now: +919586979730 • vaayaaedu@gmail.com
VaaYaaEdutech – Training And Placement,A/1/A, 3rd Floor, VaaYaa Lobby,Chinubhai Tower, Next to H K College,Ashram Road, Income Tax,Gujarat, Ahmedabad- 380009 • Call Us Now: +919586979730 • vaayaaedu@gmail.com
VaaYaaEdutech – Training And Placement,A/1/A, 3rd Floor, VaaYaa Lobby,Chinubhai Tower, Next to H K College,Ashram Road, Income Tax,Gujarat, Ahmedabad- 380009 • Call Us Now: +919586979730 • vaayaaedu@gmail.com