Have you ever wondered if there is a language that both Humans and machines understand very well? We have markup languages for this very reason. Markup languages, unlike other programming languages, are both human and machine-friendly. They contain standard words in a syntactical manner that are easily readable.
It was developed by Tim Berners to create electronic or web pages. Each page is connected to another through hyperlinks. Everything that one sees on the web is developed using HTML. HTML allows the embedding of images and texts on web pages.
It forms the basis of web development projects giving them structure and basic design. HTML consists of tags and attributes. Here, p denotes a paragraph tag, and the attribute text-align aligns the text as per requirement.
HTML are case insensitive. If the codes are written syntactically, no errors arise, and the machine understands it within no time. It is widely used to transfer data. As this is a markup language, it is easily readable by humans as well as machines. XML is hardware-independent. Closing tags are optional. Nesting Must be properly done. Not much valuable. XML Extensible Markup Language is a language that enables a user to define a representation of data or data structure where values are assigned in each field in the structure.
XML language provides a platform to define markup elements and generate customized markup language. The XML document includes data as strings and text which is surrounded by text markup. The fundamental unit in the XML is known as an element. XML is well-formed and valid markup language.
Here well-formed specifies that the XML parser could not pass the code if it is filled with syntax, punctuation, grammar errors. Additionally, it is only valid until it is well-formed and valid means that the element structure and the markup must match with a standard set of rules.
XML document involves two parts — prolog and body. The prolog part of the XML consist of administrative metadata such as XML declaration, optional processing instruction, Document type declaration and comments. Leave a comment. Cancel reply Your email address will not be published. Comment Name Email Website. Related Articles. Our Trending Software Engineering Courses.
Accelerate Your Career with upGrad. Our Popular Software Engineering Courses. Register for a Demo Course. Talk to our Counselor to find a best course suitable to your Career Growth. Programs Data Science Management Technology. Is a standard markup language that defines other markup languages. Is not a presentation language nor a programming language. Tags are defined as per the need of the programmer. XML is flexible as tags can be defined when needed.
Showcases the design of a web page in the way it is displayed on client-side. Enables transportation of data from database and related applications.
0コメント