ScholarQuill logoScholarQuillUniversity Notes
  • Notes
  • Past Papers
  • Blogs
  • Todo
Login
ScholarQuill logoScholarQuillUniversity Notes
Login
NotesPast PapersBlogsTodo
More
SubjectsDiscussionCGPA CalculatorGPA CalculatorStudent PortalCourse Outline
About
About usPrivacy PolicyReportContact
Notes
Past Papers
Blogs
Todo
Analytics
    Current Subject
    🧩
    Web Technologies
    COMP3144
    Progress0 / 38 topics
    Topics
    1. Introduction to Web Applications2. TCP/IP Application Services3. Web Servers: Basic Operation4. Web Servers: Virtual Hosting5. Web Servers: Chunked Transfers6. Web Servers: Caching Support7. Web Servers: Extensibility8. SGML9. HTML510. CSS311. XML Languages and Applications: Core XML12. XML Languages and Applications: XHTML13. XML Languages and Applications: XHTML MP14. Web Service: SOAP15. Web Service: REST16. Web Service: WML17. Web Service: XSL18. Web Services: Operations19. Web Services: Processing HTTP Requests20. Web Services: Processing HTTP Responses21. Web Services: Cookie Coordination22. Web Services: Privacy and P3P23. Web Services: Complex HTTP Interactions24. Web Services: Dynamic Content Delivery25. Server Configuration26. Server Security27. Web Browsers Architecture and Processes28. Active Browser Pages: JavaScript29. Active Browser Pages: DHTML30. Active Browser Pages: AJAX31. JSON32. Approaches to Web Application Development33. Programming in Any Scripting Language34. Search Technologies35. Search Engine Optimization36. XML Query Language37. Semantic Web38. Future Web Application Framework
    COMP3144›Web Service: WML
    Web TechnologiesTopic 16 of 38

    Web Service: WML

    8 minread
    1,370words
    Intermediatelevel

    Web Service: WML (Wireless Markup Language)

    WML (Wireless Markup Language) is a lightweight markup language designed specifically for mobile devices, especially early mobile phones with limited processing power, small screens, and slow network connections. It is an XML-based language used to define the content and structure of web pages that can be displayed on mobile devices, primarily for use in WAP (Wireless Application Protocol) applications. WML was a key part of the WAP standard, which was designed to bring internet services to mobile devices long before the modern mobile web (HTML5, JavaScript, etc.) existed.

    Key Characteristics of WML

    1. Optimized for Mobile Devices: WML was designed to accommodate the technical limitations of early mobile devices, including small screens, limited processing power, and slower data transmission speeds compared to desktop internet connections.

    2. XML-Based: WML is based on XML (Extensible Markup Language), which allows it to define elements and structure in a machine-readable way. This also makes WML extensible and adaptable to various mobile device capabilities.

    3. WAP-Compatible: WML was the markup language used for creating content that could be viewed through WAP browsers, which were common on mobile phones in the late 1990s and early 2000s. It allowed users to access basic services such as news, weather, email, and limited e-commerce on mobile phones.

    4. Minimalist and Lightweight: Given the constraints of mobile devices at the time, WML was designed to be extremely lightweight and minimal, with a focus on providing simple text-based content and interactive forms rather than rich multimedia or complex layouts.

    5. Interactivity: WML supports basic interactivity, such as links and forms, which allowed users to navigate between different WML documents (pages) and interact with content on their mobile devices.

    Structure of WML

    WML documents are typically composed of a series of cards (similar to pages in a website), which are grouped together in a deck. A WML deck represents a collection of cards that belong to a particular application or service.

    1. Deck

    A WML deck contains a sequence of cards. It is analogous to a web page or a sequence of web pages. A deck is usually the top-level container for the content.

    <wml>
        <card id="card1" title="Welcome">
            <p>Welcome to the WML application</p>
        </card>
        <card id="card2" title="More Info">
            <p>Here is some additional information</p>
        </card>
    </wml>
    

    2. Card

    A card in WML is a container for content, similar to a webpage in HTML. Each card has an ID, a title (usually displayed at the top of the card), and content (usually text, links, or forms). Cards allow users to navigate between different pages within a WML document.

    <card id="card1" title="Home">
        <p>Welcome to my site</p>
    </card>
    

    3. Element Tags in WML

    Some of the important tags used in WML are:

    • <wml>: The root element that contains all other WML elements.
    • <card>: Defines a page or a screen on the mobile device.
    • <p>: Paragraph tag, used to display simple text.
    • <a>: Anchor tag, used to define hyperlinks for navigation.
    • <do>: A tag used to define user actions, such as a form submission or a navigation link.
    • <input>: Used to create input fields within forms, allowing users to enter data.
    • <select>: Used to create dropdown menus in forms.

    Example of WML Code

    Here is a basic example of a WML document:

    <wml>
        <card id="card1" title="Welcome">
            <p>Welcome to WML-based mobile web page!</p>
            <p><a href="card2">Next</a></p>
        </card>
    
        <card id="card2" title="Second Page">
            <p>This is the second page of content.</p>
            <p><a href="card1">Back</a></p>
        </card>
    </wml>
    
    • This WML document contains two cards: one displaying a welcome message and a link to the second card, and the second displaying a message with a link back to the first card.
    • The <a> tag in WML is used to define navigation between cards within the WML document.

    Features of WML

    1. Basic Text Display: WML was designed to show simple text content, often with minimal formatting. It supports basic HTML-like tags like paragraphs (<p>), links (<a>), and lists.

    2. Navigation: WML includes basic navigation mechanisms between cards using <a> (anchor tags) for links and <do> for actions like form submissions.

    3. Forms: WML supports basic form functionality through the <input> tag, allowing users to input text or select from predefined options (via <select>). Form data could be submitted to a server for processing.

    4. Event Handling: WML supports actions triggered by user interaction, such as clicking a link or submitting a form. These events are defined within <do> tags.

    5. Minimal Design: WML's layout is minimalistic due to the constraints of mobile devices. It does not support advanced layout or multimedia features that modern web technologies like HTML5 or CSS3 provide.

    Example of WML with Form

    Here's an example of a simple WML form that allows a user to input data:

    <wml>
        <card id="card1" title="Enter Your Name">
            <p>Please enter your name:</p>
            <do type="accept" label="Submit">
                <input name="name" type="text"/>
            </do>
        </card>
    </wml>
    

    In this example:

    • The user is asked to enter their name in a text field.
    • The do element is used to trigger the form submission when the user clicks the "Submit" button.

    Advantages of WML

    1. Low Bandwidth Usage: Since mobile devices at the time had limited data plans and slow network speeds, WML was optimized for low bandwidth usage, offering a way to view simple content with minimal data transmission.
    2. Support for Early Mobile Browsers: WML was specifically designed to support the limited capabilities of early mobile browsers that were based on the WAP protocol.
    3. Simple Navigation: WML allows for easy navigation between different screens or "cards," making it well-suited for basic mobile applications and content delivery.
    4. Optimized for Small Screens: WML's simple structure and minimalistic design made it suitable for mobile devices with small screens and limited rendering power.

    Disadvantages of WML

    1. Limited Functionality: WML’s capabilities are very basic, and it does not support complex layouts, multimedia content (such as images or videos), or modern web features such as JavaScript.
    2. Obsolescence: WML has largely been replaced by modern web technologies, such as HTML5, CSS3, and JavaScript, which offer richer functionality and better user experiences on mobile devices.
    3. Limited Browser Support: WML was primarily supported by WAP browsers, which have become obsolete as smartphones with full web browsers (supporting HTML, CSS, and JavaScript) have become widespread.
    4. No Rich Media Support: WML is primarily text-based, making it unsuitable for applications requiring images, videos, or other rich media content that modern web browsers handle with ease.

    WML vs. HTML

    • Design Focus: WML was designed for very basic and simple mobile content, while HTML supports richer, more complex layouts and interactive content.
    • Compatibility: HTML is now the standard for web browsers on mobile devices, whereas WML was used primarily in the early days of mobile internet, before the widespread adoption of smartphones with full browsers.
    • Multimedia: HTML supports multimedia content (images, audio, video), while WML only supported text and very simple interactive forms.

    Conclusion

    WML was a key technology for enabling mobile web access in the early days of mobile internet, allowing users to access text-based content and simple services via mobile phones. However, with the advent of more powerful mobile devices and the widespread adoption of HTML5 and modern mobile web technologies, WML has become obsolete. Today, mobile web development uses standard web technologies (HTML, CSS, JavaScript) that are supported across all devices, providing richer and more dynamic user experiences.

    Previous topic 15
    Web Service: REST
    Next topic 17
    Web Service: XSL

    Past Papers

    Open this section to load past papers

    Click on Show Past Papers to see past papers.
    On This Page
      Reading Stats
      Est. reading time8 min
      Word count1,370
      Code examples0
      DifficultyIntermediate