Introduction to HTML
What is HTML?
HTML, or HyperText Markup Language, is the standard markup language for documents designed to be displayed in a web browser. It describes the structure of a web page semantically and originally included cues for the appearance of the document.
Purpose and Key Features of HTML
- Structure Web Content: HTML uses a system of tags and attributes to define the different parts of a web page, such as headings, paragraphs, lists, links, images, and tables.
- Hyperlinking: The 'HyperText' aspect refers to the ability to link to other documents or resources, forming the basis of the World Wide Web.
- Platform Independent: HTML documents can be viewed on any operating system with a web browser.
- Foundation of Web Pages: Virtually every web page on the internet is built using HTML.
Basic HTML Structure
An HTML document is composed of nested elements, each defined by tags.
| Component | Description | Example |
|---|---|---|
<!DOCTYPE html> | Declaration defining document type and version (HTML5). | <!DOCTYPE html> |
<html> | The root element of an HTML page. | <html lang="en"> |
<head> | Contains meta-information about the HTML document (e.g., title, character set, stylesheets). | <head><title>My Page</title></head> |
<title> | Sets the title of the document, appearing in the browser tab. | <title>Pharmacy Info</title> |
<body> | Contains all the visible content of the web page. | <body>...</body> |
<h1> to <h6> | Heading tags, with <h1> being the most important. | <h2>Drug Categories</h2> |
<p> | Defines a paragraph of text. | <p>This is a paragraph.</p> |
<a> | Anchor tag for creating hyperlinks. | <a href="url">Link Text</a> |
<img> | Embeds an image into the document. | <img src="drug.jpg" alt="Drug Image"> |
<ul>, <ol>, <li> | Unordered list, ordered list, and list item. | <ul><li>Item 1</li></ul> |
Introduction to XML
What is XML?
XML, or eXtensible Markup Language, is a markup language much like HTML, but designed to store and transport data, not to display data. XML tags are not predefined; they must be defined by the user.
Purpose and Key Features of XML
- Data Storage and Transport: XML is excellent for exchanging structured data between different applications and systems. It acts as a common format for data transfer.
- Self-Descriptive: The tags in XML are meaningful and describe the data they contain, making the data human-readable and understandable without external schema (though schemas are often used).
- Extensible: Users can define their own tags and document structure, making it highly flexible for various data types.
- Platform Independent: XML data can be processed on any platform and by any programming language.
XML vs. HTML
| Feature | HTML | XML |
|---|---|---|
| Purpose | Display data and define its appearance. | Store and transport data. |
| Tags | Predefined tags (e.g., <p>, <h1>, <a>). | User-defined tags (e.g., <drug>, <dosage>). |
| Case Sensitivity | Generally case-insensitive (though best practice is lowercase). | Case-sensitive. |
| Error Handling | More lenient with errors. | Strict error handling (well-formed documents). |
| Focus | How data looks. | What data is. |
Introduction to CSS
What is CSS?
CSS, or Cascading Style Sheets, is a stylesheet language used for describing the presentation of a document written in HTML (or XML). It controls the layout, colors, fonts, and overall visual appearance of web pages.
Purpose and Key Features of CSS
- Separate Content from Presentation: CSS allows designers to separate the content (HTML) from its visual presentation. This improves content accessibility, provides more flexibility and control in the specification of presentation characteristics, and reduces complexity in the structural content.
- Consistent Styling: Apply consistent styles across multiple web pages from a single stylesheet.
- Faster Page Load: By linking an external CSS file, the browser can cache the stylesheet, leading to faster loading times for subsequent pages.
- Responsive Design: CSS is fundamental for creating web pages that adapt their layout to different screen sizes and devices.
Types of CSS
| Type | Description | Usage | Pros & Cons |
|---|---|---|---|
| Inline CSS | Styles applied directly to an HTML element using the style attribute. | <p style="color:blue; font-size:14px;">Text</p> | Pro: Quick fix, specific to one element. Con: Not reusable, mixes content & style. |
| Internal/Embedded CSS | Styles defined within a <style> tag in the <head> section of an HTML document. | <head><style>p { color:red; }</style></head> | Pro: Styles apply to a single page. Con: Not reusable across multiple pages. |
| External CSS | Styles defined in a separate .css file and linked to the HTML document. | <head><link rel="stylesheet" href="styles.css"></head> | Pro: Reusable across multiple pages, clean separation. Con: Requires an extra HTTP request. |
Basic CSS Syntax
A CSS rule consists of a selector and a declaration block.
- Selector: Points to the HTML element you want to style (e.g.,
p,h1,.class,#id). - Declaration: Contains one or more declarations separated by semicolons, each including a property and a value (e.g.,
color: blue;).
p {
color: blue; /* Property: color, Value: blue */
font-size: 16px;
}Introduction to Programming Languages
What are Programming Languages?
A programming language is a formal language comprising a set of instructions that produce various kinds of output. Programming languages are used to implement algorithms and control the behavior of a machine, typically a computer.
Categories of Programming Languages
| Category | Description | Examples (Web Context) |
|---|---|---|
| High-Level Languages | Closer to human language, easier to read, write, and maintain. Requires a compiler or interpreter. | Python, Java, JavaScript, PHP, C# |
| Low-Level Languages | Closer to machine code, offer direct memory management, faster execution, but harder to program. | Assembly Language, Machine Code |
Programming Paradigms (Conceptual Types)
- Procedural Programming: Organizes code into procedures or functions that perform specific tasks. Focuses on step-by-step instructions. (e.g., C, Pascal)
- Object-Oriented Programming (OOP): Organizes code around objects, which are instances of classes. Emphasizes data and the methods that operate on that data. (e.g., Java, Python, C#, PHP, JavaScript)
- Functional Programming: Focuses on pure functions, avoiding shared state and mutable data. (e.g., Haskell, Lisp, also supported in Python, JavaScript)
- Scripting Languages: Often interpreted rather than compiled, designed for automating tasks or enhancing web pages. (e.g., JavaScript, Python, PHP, Ruby)
Relevance in Web Technologies (Examples)
- JavaScript: Essential for front-end (client-side) web development, enabling interactive and dynamic web pages. Also used for back-end (server-side) with Node.js.
- Python: Versatile language used for web development (Django, Flask), data science, AI, and scripting.
- PHP: Popular server-side scripting language for web development, especially for dynamic content and database interaction (e.g., WordPress).
- Java: Used for large-scale enterprise web applications (Spring, Jakarta EE).
Introduction to Web Servers
What are Web Servers?
A web server is a computer program that stores web content (HTML documents, images, stylesheets, scripts) and delivers web pages to clients (web browsers) upon request. It uses the Hypertext Transfer Protocol (HTTP) to communicate.
How Web Servers Work (Request-Response Cycle)
- Client Request: A user types a URL into their web browser (client). The browser translates this into an HTTP request and sends it over the internet to the web server hosting that URL.
- DNS Resolution: The Domain Name System (DNS) translates the human-readable URL (e.g.,
www.example.com) into an IP address that the computer can understand. - Request Processing: The web server receives the HTTP request, locates the requested resource (e.g., an HTML file, an image), and processes it.
- Response Delivery: The web server sends an HTTP response back to the client, which includes the requested resource (e.g., the HTML page) and an HTTP status code (e.g., 200 OK, 404 Not Found).
- Client Rendering: The web browser receives the response and renders the web page for the user to view.
Common Web Server Software
| Server | Description | Key Features |
|---|---|---|
| Apache HTTP Server | Most widely used open-source web server. Highly customizable and cross-platform. | Module-based, robust, mature, large community. |
| Nginx (Engine-X) | High-performance web server, also acts as a reverse proxy, load balancer, and HTTP cache. Known for handling many concurrent connections efficiently. | Asynchronous architecture, low memory footprint, excellent for high-traffic sites. |
| Microsoft IIS (Internet Information Services) | Microsoft's proprietary web server, integrated with Windows Server. | Tight integration with Windows OS and .NET technologies, good for enterprise environments. |
| LiteSpeed Web Server | High-performance Apache drop-in replacement. | Faster, more scalable, good for WordPress/cPannel hosting. |
Introduction to Server Products
Beyond basic web servers, a variety of server products are deployed to provide comprehensive backend services, supporting the complex operations of modern web applications.
Types of Server Products
| Product Type | Description | Examples/Key Technologies |
|---|---|---|
| Application Servers | Run the business logic and dynamic content generation for web applications. They provide an environment for running server-side code (e.g., Java servlets, JSP, Python scripts). | Apache Tomcat (for Java), JBoss/WildFly (for Java EE), Node.js runtime (for JavaScript), Gunicorn/uWSGI (for Python web apps). |
| Database Servers | Host and manage databases, allowing data storage, retrieval, and manipulation. Crucial for dynamic web content. | MySQL, PostgreSQL, MongoDB, Microsoft SQL Server (covered in detail later). |
| Operating Systems (Server Editions) | Provide the foundational software platform on which all other server products run. Optimized for stability, security, and networking. | Linux (e.g., Ubuntu Server, CentOS), Windows Server. |
| Mail Servers | Handle the sending, receiving, and storing of email messages. | Exim, Postfix, Microsoft Exchange Server. |
| FTP Servers | Facilitate file transfer between clients and servers over the File Transfer Protocol. | vsftpd, FileZilla Server. |
| Caching Servers | Store frequently accessed data temporarily to reduce database load and speed up response times. | Memcached, Redis. |
Introduction to Databases
What are Databases?
A database is an organized collection of structured information, or data, typically stored electronically in a computer system. It is designed for efficient storage, retrieval, modification, and management of data.
Purpose and Importance of Databases
- Data Storage: Provides a systematic way to store vast amounts of data.
- Data Retrieval: Allows quick and efficient access to specific data through queries.
- Data Integrity: Ensures data is accurate, consistent, and reliable.
- Data Security: Provides mechanisms to control access and protect sensitive information.
- Data Sharing: Facilitates concurrent access to data by multiple users or applications.
Database Management System (DBMS)
Examples: MySQL, PostgreSQL, Oracle Database, Microsoft SQL Server, MongoDB, MS Access.
Types of Databases (Primary Classification)
| Type | Description | Structure | Examples | Use Cases |
|---|---|---|---|---|
| Relational Databases (SQL) | Data stored in tables with predefined schemas. Data is organized into rows (records) and columns (fields), and relationships are defined between tables using keys. | Tables (relations), rows (tuples), columns (attributes). Uses SQL for querying. | MySQL, PostgreSQL, Oracle, MS SQL Server, MS Access. | Transactional systems, financial records, inventory management. |
| Non-Relational Databases (NoSQL) | Designed to handle large volumes of unstructured, semi-structured, and rapidly changing data. Offer flexible schemas and horizontal scalability. | Diverse models: key-value, document, column-family, graph. | MongoDB (Document), Cassandra (Column-Family), Redis (Key-Value), Neo4j (Graph). | Big data, real-time web applications, content management, social networks. |
Key Database Concepts
- Table (Relation): A collection of related data entries organized into rows and columns.
- Record (Row/Tuple): A single entry in a table, representing a complete set of data for an entity.
- Field (Column/Attribute): A single piece of data for all records in a table (e.g., 'Drug Name', 'Dosage').
- Primary Key: A column (or set of columns) in a table that uniquely identifies each record.
- Foreign Key: A column (or set of columns) in one table that refers to the primary key in another table, establishing a relationship.
MySQL
What is MySQL?
MySQL is an open-source Relational Database Management System (RDBMS). It is one of the most popular databases for web applications and is a core component of the LAMP (Linux, Apache, MySQL, PHP/Python/Perl) stack.
Key Features of MySQL
- Open Source: Freely available and can be modified.
- Reliability & Scalability: Known for its stability and ability to handle large databases and high traffic.
- Platform Compatibility: Runs on various operating systems including Windows, Linux, macOS, and many others.
- SQL Standard: Uses Structured Query Language (SQL) for database management, a standardized language for defining and manipulating data.
- Security: Robust security features including user access control and data encryption.
- Connectivity: Supports various programming interfaces (APIs) for integration with different programming languages.
Basic SQL Commands in MySQL
SQL is used to interact with MySQL databases. Here are fundamental commands:
| Command Type | Command | Description | Example (Pharmacy Context) |
|---|---|---|---|
| Data Definition Language (DDL) | CREATE DATABASE | Creates a new database. | CREATE DATABASE PharmacyDB; |
CREATE TABLE | Creates a new table within a database. | CREATE TABLE Drugs (DrugID INT PRIMARY KEY, Name VARCHAR(255), Dosage VARCHAR(50)); | |
| Data Manipulation Language (DML) | INSERT INTO | Adds new records (rows) to a table. | INSERT INTO Drugs (DrugID, Name, Dosage) VALUES (1, 'Paracetamol', '500mg'); |
SELECT | Retrieves data from one or more tables. | SELECT Name, Dosage FROM Drugs WHERE DrugID = 1; | |
UPDATE | Modifies existing records in a table. | UPDATE Drugs SET Dosage = '650mg' WHERE Name = 'Paracetamol'; | |
DELETE FROM | Removes records from a table. | DELETE FROM Drugs WHERE DrugID = 1; |
MS Access
What is MS Access?
Microsoft Access is a Relational Database Management System (RDBMS) from Microsoft. It combines the relational Microsoft Jet Database Engine with a graphical user interface (GUI) and software development tools, making it suitable for small-scale applications and personal use.
Key Features of MS Access
- GUI-Based: Provides an intuitive graphical interface for creating, managing, and querying databases without extensive coding.
- Integrated Environment: Integrates database engine, development tools, and user interface into a single application.
- Rapid Application Development (RAD): Easy to create forms, reports, and queries quickly.
- SQL Support: Uses a variant of SQL called Access SQL for querying data, although users often interact through the GUI.
- Desktop-Oriented: Primarily designed for single-user or small multi-user environments. Data is often stored in a single
.accdbor.mdbfile. - Part of Microsoft Office Suite: Integrates well with other Microsoft Office applications like Excel and Word.
Components of MS Access
| Component | Description | Purpose |
|---|---|---|
| Tables | Stores data in rows (records) and columns (fields), similar to other RDBMS. | Fundamental data storage. |
| Queries | Used to retrieve, manipulate, and analyze data from one or more tables. Can be used to ask specific questions about the data. | Data extraction and analysis. |
| Forms | Graphical interfaces for entering, viewing, and editing data in a user-friendly manner. | User input and data display. |
| Reports | Formatted output of data from tables or queries, suitable for printing or presentation. | Data summarization and presentation. |
| Macros | Simplified sets of actions that automate common tasks (e.g., opening a form, running a report). | Task automation. |
| Modules | Visual Basic for Applications (VBA) code used for more complex custom functionalities beyond what macros can provide. | Advanced customization and programming. |
MS Access vs. MySQL (Comparison)
| Feature | MS Access | MySQL |
|---|---|---|
| Purpose/Scale | Desktop database, small to medium applications, single-user/small workgroups. | Server-side database, large-scale web applications, multi-user, high traffic. |
| Interface | GUI-centric, built-in forms/reports. | Command-line or external GUI tools (e.g., MySQL Workbench). |
| Deployment | File-based (.accdb/.mdb), local installation. | Client-server architecture, installed on a dedicated server. |
| Cost | Proprietary (part of MS Office suite). | Open-source (free for most uses). |
| Programming | VBA for advanced features. | SQL for core operations, extensive API support for various languages. |
| Concurrency | Limited multi-user support, prone to issues with many concurrent writes. | Designed for high concurrency, robust locking mechanisms. |
Pharmacy Drug Database
What is a Pharmacy Drug Database?
A Pharmacy Drug Database is a specialized, structured collection of comprehensive information about pharmaceutical products, designed to support various functions within the pharmacy and healthcare sectors.
Key Information Stored in a Pharmacy Drug Database
- Drug Identification:
- Generic Name: (e.g., Paracetamol, Amoxicillin)
- Brand Names: (e.g., Tylenol, Amoxil)
- Drug Codes: NDC (National Drug Code), RxNorm ID, WHO ATC code.
- Chemical Structure/Formula
- Dosage and Administration:
- Dosage Forms: (e.g., tablet, capsule, injection, syrup)
- Strengths: (e.g., 500mg, 250mg/5mL)
- Routes of Administration: (e.g., oral, intravenous, topical)
- Recommended Dosage: (for various age groups, conditions)
- Pharmacology:
- Mechanism of Action
- Pharmacokinetics: (Absorption, Distribution, Metabolism, Excretion)
- Pharmacodynamics
- Clinical Information:
- Indications: (Conditions the drug treats)
- Contraindications: (Situations where the drug should not be used)
- Adverse Drug Reactions (ADRs)/Side Effects
- Drug Interactions: (with other drugs, food, diseases)
- Warnings and Precautions
- Pregnancy and Lactation Categories
- Supply Chain & Regulatory:
- Manufacturer Information
- Packaging Details
- Pricing Information
- Availability
- Regulatory Status
Applications and Importance in Pharmacy
- Prescribing & Dispensing: Provides accurate drug information, helps prevent medication errors (e.g., wrong dose, drug-drug interactions).
- Clinical Decision Support Systems (CDSS): Alerts prescribers to potential problems (allergies, contraindications) at the point of care.
- Inventory Management: Tracks drug stock, expiry dates, and ordering.
- Patient Education: Provides pharmacists with information to counsel patients effectively.
- Research & Development: Data for drug discovery, clinical trials, and epidemiological studies.
- Drug Information Services: Foundation for drug information centers.
- Regulatory Compliance: Ensures adherence to national and international drug regulations.
Examples of Pharmacy Drug Database Providers/Standards
- RxNorm: A standardized nomenclature for clinical drugs produced by the National Library of Medicine (NLM).
- DrugBank: A comprehensive, free-to-access online database containing information on drugs and drug targets.
- Medispan: A commercial drug database widely used in healthcare IT systems for drug information and clinical decision support.
- First Databank (FDB): Another leading provider of drug information and clinical decision support solutions.
Upgrade to Success Pass (₹30) to unlock downloads and printing.
