January 16, 2025

Introduction to HTML

Introduction to HTML

HTML (Hypertext Markup Language) is the standard markup language used for creating and structuring web pages. It forms the foundation of the World Wide Web and is essential for building websites and web applications. HTML uses a set of markup tags to define the structure and content of a webpage, allowing browsers to interpret and display the information correctly.

Here’s a brief introduction to HTML:

  1. HTML Document Structure: An HTML document consists of a set of elements enclosed within opening and closing tags. The basic structure of an HTML document includes the DOCTYPE declaration, the opening and closing HTML tags, and the head and body sections.
  2. Tags and Elements: HTML tags define the elements within a webpage. They are written as opening tags enclosed in angle brackets (<>) and closing tags preceded by a forward slash (/) and enclosed in angle brackets. Elements can contain text, other elements, or both.
  3. Head Section: The head section of an HTML document contains metadata about the webpage, such as the title, character encoding, linked stylesheets, scripts, and other information that doesn’t appear directly on the page.
  4. Body Section: The body section contains the visible content of the webpage, including text, images, links, tables, forms, and other elements. This is where the main content of the webpage is defined.
  5. Text Formatting: HTML provides various tags to format text, such as headings (h1 to h6), paragraphs (p), bold (strong), italic (em), underline (u), lists (ul, ol, li), and more. These tags help structure and style the content.
  6. Links and URLs: HTML allows you to create hyperlinks to link different webpages or external resources. The anchor tag (<a>) is used to define a link, and the href attribute specifies the URL of the target page or resource.
  7. Images: HTML enables you to include images in webpages using the img tag. The src attribute is used to specify the image file URL, and you can provide alternative text using the alt attribute for accessibility purposes.
  8. Tables: HTML tables allow you to organize data into rows and columns. The table tag () defines the table structure, and the tr (table row) and td (table data) tags define the rows and cells, respectively.
  9. Forms: HTML forms are used to collect user input, such as text, checkboxes, radio buttons, dropdown menus, and buttons. The form tag () encapsulates the form elements, and the action attribute specifies the URL where the form data is sent.
  10. Semantic HTML: HTML5 introduced semantic elements that provide meaning and structure to the content, making it more accessible and search engine-friendly. Examples include header, nav, main, article, section, aside, footer, and more.

Suggested readings:

First Year B Pharm Notes, Syllabus, Books, PDF Subjectwise/Topicwise

F Y B Pharm Sem-IF Y B Pharm Sem-II
BP101T Human Anatomy and Physiology I TheoryBP201T Human Anatomy and Physiology II – Theory
BP102T Pharmaceutical Analysis I TheoryBP202T Pharmaceutical Organic Chemistry I Theory
BP103T Pharmaceutics I TheoryBP203T Biochemistry – Theory
BP104T Pharmaceutical Inorganic Chemistry TheoryBP204T Pathophysiology – Theory
BP105T Communication skills TheoryBP205T Computer Applications in Pharmacy Theory
BP106RBT Remedial BiologyBP206T Environmental sciences – Theory
BP106RMT Remedial Mathematics TheoryBP207P Human Anatomy and Physiology II Practical
BP107P Human Anatomy and Physiology PracticalBP208P Pharmaceutical Organic Chemistry I Practical
BP108P Pharmaceutical Analysis I PracticalBP209P Biochemistry Practical
BP109P Pharmaceutics I PracticalBP210P Computer Applications in Pharmacy Practical
BP110P Pharmaceutical Inorganic Chemistry Practical
BP111P Communication skills Practical
BP112RBP Remedial Biology Practical