473,405 Members | 2,310 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Why isn't pure XML+CSS more common?

Being as I am new to web development, this is probably a really stupid question, but if I'm going to be styling my web pages with CSS anyway then what's the point of using a presentational markup language (like HTML) to contain my content as opposed to a puely descriptive markup language (like XML)?
Dec 15 '20 #1
3 2530
dev7060
636 Expert 512MB
Being as I am new to web development, this is probably a really stupid question, but if I'm going to be styling my web pages with CSS anyway then what's the point of using a presentational markup language (like HTML) to contain my content as opposed to a puely descriptive markup language (like XML)?
HTML has predefined tags that a browser recognizes to display the data. In XML, the tags are invented/defined by the author. XML is eXtensible and is used to transfer the data.
Dec 15 '20 #2
Dormilich
8,658 Expert Mod 8TB
Another point is that XML is not forgiving. If you make one small syntax error then all blows up in a YSoD.
Dec 16 '20 #3
SwissProgrammer
220 128KB
I think that HTML with CSS is easier to use and edit and it is probably not used so much because many people have a tendency to try to use the latest advertised. That does not mean that the latest is the best or even as effective and stable as the previous.

HTML with CSS is solid. I like it more than XML, even though each have their own situations of need. I do use XML (see [X]). Nothing against it, but I use it for special needs. Common web pages with most of what is seen and done on the internet these days = HTML with CSS (and javascript and server side scripts) is best.

Rarely XML might be needed, but even then I tend to try to do the same with HTML and CSS and javascripts.

Further,

If you are using dynamic web pages [X] and if you are using server side scripts [X], meaning that your web pages are adaptable to the viewer and/or change due to some or other conditions, and meaning that your server writes the pages automatically, then I would very much suggest that you use HTML with CSS instead of XML. For the server-side website deployments you might like to use server-side java-scrips [X].


In answer to "Why isn't pure XML+CSS more common?" I think that most people do not understand the power of "HTML+CSS+javascript+server applications" as compared to the limits of "XML+CSS". I think that many people are lazy or that many web developers have little idea of what they are doing.

But, they might just simply be far smarter than I am and I might not know what I am doing.

You, (not someone else) just you, should study and learn HTML, CSS, XML, javascript, server-side concepts. You do not have to learn them intensely, just learn about them.


Thank you for asking.
Dec 16 '20 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

11
by: santosh | last post by:
Hello, I was going through the Marshal Cline's C++ FAQ-Lite. I have a doubt regarding section 33.10. Here he is declaring a pure virtual destructor in the base class. And again defining...
10
by: Martin Vorbrodt | last post by:
Example code in one of my books intrigues me: class B { public: B* Clone() const { B* p = DoClone(); assert(typeid(*p) == typeid(*this)); return p; }
8
by: Ted Miller | last post by:
Hi folks, I'm looking at moving a large base of C++ code to .Net under tight time constraints. The code runs in mission-critical environments, and I am extremely concerned about the loader lock...
10
by: John Goche | last post by:
Hello, page 202 of Symbian OS Explained by Jo Stichbury states "All virtual functions, public, protected or private, should be exported" then page 203 states "In the rare cases where a...
5
by: =?Utf-8?B?U2hhcm9u?= | last post by:
I have a class that is writen in unmanaged pure native C++. This class files (h and cpp) are inserted to a managed C++ (VC++ 2005, C++/CLI) DLL compoenet. This DLL compoenet is used in a C#...
3
by: keith | last post by:
Dear mentors and gurus, I noticed at the end of section 22.4 of the 'FAQ-Lite' it says "Note that it is possible to provide a definition for a pure virtual function, but this usually confuses...
6
by: Miguel Guedes | last post by:
Hello, I recently read an interview with Bjarne Stroustrup in which he says that pure abstract classes should *not* contain any data. However, I have found that at times situations are when it...
12
by: betabrain.honshu | last post by:
Hi Folks, for those of you who are familiar with the micropledge.com project, here is a good opportunity to spend or earn something: http://micropledge.com/projects/pysalsa20 I know that the...
15
by: Anna Smidt | last post by:
Sorry, I have a question again: I am trying to debug/ release a CLR application (that uses the FrameWork). No when I try to compile it, it stops in this line in -------mmintrin.h-------- ...
7
by: Tonni Tielens | last post by:
I'm trying to create a pure virtual class describing an interface. Normally, when I do this I make the destructor pure virtual so that, even if there are no members in the class, it cannot be...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.