Your SlideShare is downloading. ×
0
Html
Html
Html
Html
Html
Html
Html
Html
Html
Html
Html
Html
Html
Html
Html
Html
Html
Html
Html
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Html

3,065

Published on

Published in: Technology
0 Comments
5 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
3,065
On Slideshare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
154
Comments
0
Likes
5
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. Hyper Text Markup Language
  • 2. INTRODUCTION TO HTML <ul><li>HTML, stands for HyperText Markup Language, is the predominant markup language for web pages. </li></ul><ul><li>It provides a means to create structured documents by denoting structural semantics for text such as headings, paragraphs, lists, links, quotes, and other items. </li></ul><ul><li>It allows images and objects to be embedded and can be used to create interactive forms. </li></ul><ul><li>It can load scripts in languages such as JavaScript which affect the behavior of HTML webpages. </li></ul>
  • 3. Html tags <ul><li>HTML uses markup tags to describe web pages </li></ul><ul><li>HTML tags are keywords surrounded by angle brackets like <html> </li></ul><ul><li>HTML tags normally come in pairs like <b> and </b> </li></ul><ul><li>The first tag in a pair is the start tag, the second tag is the end tag </li></ul><ul><li>Start and end tags are also called opening tags and closing tags </li></ul><ul><li>The html tags should be enclosed inside <html> .....</html> </li></ul>
  • 4. <head> tag <ul><li>The head element contains general information, also called meta-information, about a document. </li></ul><ul><li>It starts and ends with <head>...</head> </li></ul>
  • 5. <ul><li><title>....</title> </li></ul><ul><li>The <title> tag defines the title of the document. </li></ul><ul><li>The title element: </li></ul><ul><li>defines a title in the browser toolbar </li></ul><ul><li>provides a title for the page when it is added to favorites </li></ul><ul><li>displays a title for the page in search-engine results </li></ul><title> tag
  • 6. <body> tag <ul><li>The body element defines the document's body. </li></ul><ul><li>The body element contains all the contents of an HTML document, such as text, hyperlinks, images, tables, lists, etc </li></ul>
  • 7. Standard attributes for <body>tag <ul><li>Attribute Description </li></ul><ul><li>class Specifies a classname for an element </li></ul><ul><li>dir Specifies the text direction for the content in an element </li></ul><ul><li>id Specifies a unique id for an element </li></ul><ul><li>lang Specifies a language code for the content in an element </li></ul><ul><li>style Specifies an inline style for an element </li></ul><ul><li>title Specifies extra information about an element </li></ul><ul><li>xml:lang Specifies a language code for the content in an element, in XHTML documents </li></ul>
  • 8. Event Attributes for <body> tag <ul><li>Attribute Description </li></ul><ul><li>onclick Script to be run on a mouse click </li></ul><ul><li>ondblclick Script to be run on a mouse double- click </li></ul><ul><li>onload Script to be run when a document load </li></ul><ul><li>onmousedown Script to be run when mouse button is pressed </li></ul><ul><li>onmousemove Script to be run when mouse pointer moves </li></ul><ul><li>onkeypress Script to be run when a key is pressed and released </li></ul><ul><li>onkeyup Script to be run when a key is released </li></ul>
  • 9. . ..continued <ul><li>onmouseout Script to be run when mouse pointer moves out of an element </li></ul><ul><li>onmouseover Script to be run when mouse pointer moves over an element </li></ul><ul><li>onmouseup Script to be run when mouse button is released </li></ul><ul><li>onkeydown Script to be run when a key is pressed </li></ul>
  • 10. Formatting tags <ul><li><tt> <i> <b> <big> <small> Tags </li></ul><ul><li><tt>Teletype text</tt> </li></ul><ul><li><i>Italic text</i> - Renders the text as italic text </li></ul><ul><li><b>Bold text</b> - Renders as bold text </li></ul><ul><li><big>Big text</big> - Renders as bigger text </li></ul><ul><li><small>Small text</small> - Renders as smaller text </li></ul>
  • 11. <font> tag <ul><li>The <font> tag specifies the font face, font size, and font color of text. </li></ul><ul><li>The attributes are color,face and size </li></ul><ul><li>Color - specifies the color of the text </li></ul><ul><li>Face - specifies the font style </li></ul><ul><li>Size - specifies the size of the text. </li></ul><ul><li>Examples:- </li></ul><ul><li><font size=&quot;3&quot; color=&quot;red&quot;>text </font> </li></ul><ul><li><font size=&quot;2&quot; color=&quot;blue&quot;>text </font> </li></ul><ul><li><font face=&quot;verdana&quot; color=&quot;green&quot;>text </font> </li></ul>
  • 12. <p> tag(paragragh) <ul><li>The <p> tag defines a paragraph. </li></ul><ul><li>The element automatically creates some space before and after itself. </li></ul><ul><li>Attribute Value </li></ul><ul><li>align left </li></ul><ul><li>right </li></ul><ul><li>Cente </li></ul><ul><li>justify </li></ul><ul><li><p> some text in a paragraph. </p> </li></ul>
  • 13. Heading tag <ul><li>The <h1> to <h6> tags are used to define HTML headings. </li></ul><ul><li><h1> defines the largest heading and <h6> defines the smallest heading. </li></ul><ul><li>The six different HTML headings: </li></ul><ul><li><h1>This is heading 1</h1> </li></ul><ul><li><h2>This is heading 2</h2> </li></ul><ul><li><h3>This is heading 3</h3> </li></ul><ul><li><h4>This is heading 4</h4> </li></ul><ul><li><h5>This is heading 5</h5> </li></ul><ul><li><h6>This is heading 6</h6> </li></ul>
  • 14. <img> <ul><li>The <img> tag embeds an image in an HTML page. </li></ul><ul><li>Images are not technically inserted into an HTML page, images are linked to HTML pages. </li></ul><ul><li>The <img> tag creates a holding space for the referenced image. </li></ul><ul><li>The <img> tag has two required attributes: </li></ul><ul><li>src - specifies an url for the image </li></ul><ul><li>alt – specifies the alternate text for an image </li></ul><ul><li><img src=&quot;angry.gif&quot; alt=&quot;Angry face&quot; /> </li></ul>
  • 15. <hr> tag <ul><li>The <hr> tag creates a horizontal line in an HTML page. </li></ul><ul><li>The hr element can be used to separate content in an HTML page. </li></ul><ul><li>Attribute Description </li></ul><ul><li>align - Specifies the alignment of a hr element </li></ul><ul><li>noshade - Specifies that a hr element should render in one solid color (noshaded), instead of a shaded </li></ul><ul><li>size - Specifies the height of a hr element </li></ul><ul><li>width - Specifies the width of a hr element </li></ul><ul><li><p> some text1 </p> <hr /> <p> some text2 </p> </li></ul>
  • 16. <link> tag <ul><li>The <link> tag defines the relationship between a document and an external resource. </li></ul><ul><li>The <link> tag is most used to link to style sheets. </li></ul><ul><li>The element must be embedded in the head section, and it can appear any number of times. </li></ul><ul><li>Attributes Description </li></ul><ul><li>charset Specifies the character encoding of the linked document </li></ul><ul><li>href Specifies the location of the linked document </li></ul><ul><li>hreflang Specifies the language of the text in the linked document </li></ul>
  • 17. <ul><li>media Specifies on what device the linked document will be displayed </li></ul><ul><li>rel Specifies the relationship between the current document and the linked document </li></ul><ul><li>rev Specifies the relationship between the linked document and the current document </li></ul><ul><li>target Specifies where the linked document is to be loaded </li></ul><ul><li>type Specifies the MIME type of the linked document </li></ul><ul><li><head> <link rel=&quot;stylesheet&quot; type=&quot;text/css&quot;href=&quot;theme.css&quot; /> </head> </li></ul>...continued
  • 18. <label> tag <ul><li>The <label> tag defines a label for an input element. </li></ul><ul><li>The label element does not render as anything special for the user. </li></ul><ul><li>However, it provides a usability improvement for mouse users, because if the user clicks on the text within the label element, it toggles the control. </li></ul><ul><li>The for attribute of the <label> tag should be equal to the id attribute of the related element to bind them together. </li></ul><ul><li>for - Specifies which form element a label is bound to </li></ul><ul><li><form> <label for=&quot;male&quot;>Male</label> <input type=&quot;radio&quot; name=&quot;sex&quot; id=&quot;male&quot; /> <br /> <label for=&quot;female&quot;>Female</label> <input type=&quot;radio&quot; name=&quot;sex&quot; id=&quot;female&quot; /> </form> </li></ul>
  • 19. <object> tag <ul><li>The <object> tag is used to include objects such as images, audio, videos, Java applets, ActiveX, PDF, and Flash. </li></ul><ul><li>The object element was intended to replace the img and applet elements. However, because of bugs and a lack of browser support this has not happened. </li></ul><ul><li>The object support in browsers depend on the object type. Unfortunately, the major browsers use different codes to load the same object type. </li></ul><ul><li>Luckily, the object element provides a solution. If the object element is not displayed, the code between the <object> and </object> tags will be executed. This way we can have several nested object elements (one for each browser). </li></ul>

×