Is It Necessary To Learn Html First Instead Xhtml

Discussion in 'HTML & Website Design' started by diam26, Aug 28, 2008.

  1. #1
    Dear Fellows please help me to know as follows:

    1.Is it necessary to learn Html 4.0 first or we just learn XHTML?

    2.What is difference between HTML or XHTML and XML. Is XHTML and XML is same?

    3.Is it possible that we can make a simple web site without using or learning CSS just using XHTML?

    4.In the CSS how we use the style in one page or even one paragraph two different style is that possible. I am confused so much.If supose we use one style in Paragraph No.1 and we want to use different style in Paragraph No.4 and again want to use the same style which we used in Paragraph No.1
    Is Css made just for one style? I mean supose we want to use different fonts and different sizes in all different Paragraph is that possible? since using CSS style only we can see same type of font and same size and same color while using simple HTML we can easily mantain font sizes,color,type so what is the use to use CSS. I know in some cases CSS is good use. Please clear me actualyl what purpose CSS is usefull or what is the benefits of Css ?


    5.Is it necessary to use tables to locate certain images,graphics, or text to
    to certain location? or How we can Locate images exactly where we want.?

    6. If there are three colomn section on the Page so do we have to write html for starting with first colomn and finish it first?

    Please explain me in detail so I am able to clear my cofusen, clear the understand.

    thanks.
     
    diam26, Aug 28, 2008 IP
  2. jamesicus

    jamesicus Peon

    Messages:
    477
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I would start off with HTML 4.01 -- less typing: simpler DOCTYPES and no need to worry about closing tags or escaping character expressions, etc.

    There is one great advantage in using XHTML versus HTML -- the well-formedness requirements make for better structured Markup for those who do not normally employ that principle when composing HTML pages. However, there is no advantage whatsoever in using valid XHTML 1.0 served as text/html versus well structured, well formed and valid HTML 4.01.

    Of course, XHTML should be served as Content (MIME) Type application/xhtml+xml -- otherwise it is just really HTML using XHTML syntax --check this reference for an explanation.

    James
     
    jamesicus, Aug 28, 2008 IP
  3. Spencer Fry

    Spencer Fry Peon

    Messages:
    15
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I'd just jump right into XHTML. The only real difference is the syntax, but it's no more complicated than HTML. If you plan to learn XHTML eventually then you might as well just learn the syntax from the get go.
     
    Spencer Fry, Aug 28, 2008 IP
  4. Mathue

    Mathue Peon

    Messages:
    9
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Yea, I would go for xhtml as well,there isn't that big of a difference. I believe learning it would be about the same time.
     
    Mathue, Aug 28, 2008 IP
  5. sjlogan88

    sjlogan88 Peon

    Messages:
    74
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I would just start with xhtml as you will have to learn it sooner rather than later.
     
    sjlogan88, Aug 28, 2008 IP
  6. RectangleMan

    RectangleMan Notable Member

    Messages:
    2,825
    Likes Received:
    132
    Best Answers:
    0
    Trophy Points:
    210
    #6
    I also would go for XHTML...it's not that much more complicated than html but it has more tags.
     
    RectangleMan, Aug 28, 2008 IP
  7. samamir

    samamir Peon

    Messages:
    33
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    I think there is no need to read html 4.01 first... you could directly start xhtml

    by the way xhtml is good in comparison to simple html because it does support lates browsers too.
     
    samamir, Aug 28, 2008 IP
  8. blueparukia

    blueparukia Well-Known Member

    Messages:
    1,564
    Likes Received:
    71
    Best Answers:
    7
    Trophy Points:
    160
    #8
    Not true. It has the same amount of tags, or less - I don't know if depreciated tags are in the xHTML Transitional doctype.
     
    blueparukia, Aug 29, 2008 IP
  9. sslshopper

    sslshopper Member

    Messages:
    58
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    48
    #9
    I'm surprised how long HTML has stayed in the game. XHTML has many advantages, especially cleaner markup. I would recommend that beginners start learning XHTML to build good habits and then learn about the differences in HTML.
     
    sslshopper, Aug 29, 2008 IP
  10. diam26

    diam26 Peon

    Messages:
    151
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #10
    I am still confused. what I understand is there are the same 99.99% but I still don't know what is major difference except closing tags?, that is nothing. is there are extra tags in XHtml? Every where it is writen only about closing tags but I can't see any other difference.
     
    diam26, Aug 29, 2008 IP
  11. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #11
    XHTML also is case sensitive, where html is not. <P> or <p> is valid html. <P> is not valid xhtml. All element names and attributes are only lower case in xhtml.

    There is no advantage to one or the other as long as you must support all major browsers. Syntactically correct html is just as "clean" as syntactically correct xhtml.

    XHTML has the advantage only if you can serve the pages to a user set guaranteed not to use IE. (Even Lynx, a text only browser groks xhtml). In my case, I do author/maintain an IE-free LAN website that takes advantage of the xml capabilities of serving xhtml as application/xhtml+xml.

    I you're just starting, learn to use html properly and forget xhtml. MSFT's obdurate refusal to support this nearly 10 year old standard has effectively killed it in its present form. Get your html4 down pat, 'cause html5 and xhtml5 are around the bend. (I suspect, from traffic on the whatwg mail list that IE will lag as much as ever. Look for Opera, Webkit/KHTML {Safari} and Gecko {Firefox} to be ready to roll when the RC is published.)

    cheers,

    gary
     
    kk5st, Aug 29, 2008 IP
  12. jamesicus

    jamesicus Peon

    Messages:
    477
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    0
    #12
    Quite right. For more information check the Google Code Blog Interview with Ian Hickson on X/HTML 5. Be sure to check the full writeup link.

    James
     
    jamesicus, Aug 29, 2008 IP