Html

1. What is HTML?

 HTML stands for HyperText . It is the dominant markup language for creating websites and anything that can be viewed in a . If you want to get some extra bonus points, you can learn the history of HTML and throw in some obscure facts.

2. What is the difference between HTML elements and tags?

 HTML elements communicate to the browser how to render text. When surrounded by angular brackets <> they form HTML tags. For the most part, tags come in pairs and surround text.

3. What is “Semantic HTML?”

 Semantic HTML is a coding style where the tags embody what the text is meant to convey. In Semantic HTML, tags like for bold, and for italic should not be used, reason being they just represent formatting, and provide no indication of meaning or structure. Thesemantically correct thing to do is use and . These tags will have the same bold and italic effects, while demonstrating meaning and structure (emphasis in this case).

4. What does DOCTYPE mean?

 The term DOCTYPE tells the browser which type of HTML is used on a webpage. In turn, the browsers use DOCTYPE to determine how to render a page. Failing to use DOCTYPE or using a wrong DOCTYPE may load your page in Quirks Mode. See example:  .

5. What’s the difference between standards mode and quirks mode?

 Quirks Mode is a default and may be different from browser to browser, which may result to a lack of consistency in appearance from browser to browser. 6. What are the limitations when serving XHTML pages?  Perhaps the biggest issue is the poor browser support XHTML currently enjoys. and a number of other user agents cannot parse XHTML as XML. Thus, it is not the extensible language it was promised to be. There are many other issues. Take your pick.

7. How many HTML tags are should be used for the most simple of web pages?

 8 total. 4 pairs of tags.    Simplest page ever!    Doesn’t get simpler than this.  

8. How do you make comments without text being picked up by the browser?

 Comments are used to explain and clarify code or to prevent code from being recognized by the browser. Comments start with “*“. 

9. What is the difference between linking to an image, a website, and an email address?

 To link an image, use tags. You need specify the image in quotes using the source attribute, src in the opening tag. For hyperlinking, the anchor tag, , is used and the link is specified in the href attribute. Text to be hyperlinked should be placed between the anchor tags. Little known fact: href stands for “hypertext reference.” When linking to an email, thehref specification will be “mailto:[email protected].” See examples below:   SkilledupEmail Me

10. My hyperlink or image is not displaying correctly, what is wrong with it?  It could be any number of things, but the most common mistakes are leaving out a tag bracket or quote missing for href, src, or alt text may be the issue. You should also verify the link itself.

11. What is the syntax difference between a bulleted list and numbered list?

 Bulleted lists use the

    tag, which stands for “unordered,” whereas
      is used to create an ordered list.

      12. What is the difference between

      and ?

       A

      is a generic container element for grouping and styling, whereas a creates divisions within a and should be used within the tag. The use of and are no longer popular and are now being replaced with the more flexible