Friday 9 June 2017

HTML Related Questions....

  1. IF i use one id selector in twice element what happen code is working and not.

The text editor lets me use the exact same ID tag more than once and when I give specific attributes to that particular ID tag in the CSS file, all the elements with that one ID change. Doesn't this make the functionality of ID exactly the same as the functionality of class? 

 2.  Does a hyperlink apply only to text?

No. The hyperlinks can be applied to both text as well as the images.
- It means that even the images can become clickable links with a capability to take the visitor to the next page.
- This can be done simply by using <a href> tag. 

3. What are empty HTML elements?

HTML elements with no content are called empty elements. ex- <br/>

 

4. What is difference between HTML and XHTML?

html and Xhtml difference:-

1. HTML is application of Standard Generalized Markup Language(SGML) whereas XML is application of Extensible Markup Language(XML).
2. HTML is a static Web Page whereas XHTML is dynamic Web Page.
3. HTML allows programmer to perform changes in the tags and use attribute minimization whereas XHTML when user need a new markup tag then user can define it in this.

4. HTML is about displaying information whereas XHTML is about describing the information.

 

 

No comments:

Post a Comment