Monday, April 6, 2015

HTML5 Tags - br , hr , comment , link ,image

<br>
  • Used to break the lines.(breaks the line and starts text at a new line).
  • Insert a single line break.
  • Is an empty tag / standalone tag. (because it only has start tag)
  • If we used multiple <br> tag insert multiple line breaks.








<hr>

  • Used to define a thematic change in the content.
  • Used to separate content in the HTML page.
  • Is an empty tag / standalone tag. (because it only has start tag)





<!--   -->

  • Called as comment tag.
  • Used to insert comments in the source code.
  • Comments are not displayed in the browser.
  • Used comments to explain your code.It is help you, when you want to edit the source at later ,then you can easily find the place.




<link>

  • Used to link to external style sheet.(a link between a document and an external resource)
  • Is an empty element.
  • Contains only attributes.
  • <link> element goes only head section.
  • Can appear any number of times.
There we want both html and css files.









<img>

  • Used to define an image in HTML page.
  • Required  attributes :-
    • src
    • alt
    • width
    • heigth
First you must save an image file where you save the HTML file as ,











No comments:

Post a Comment