This document provides an introduction to HTML (Hypertext Markup Language) and web technologies. It covers the basics of HTML, including common tags like <h1>, <p>, <img>, and lists. It also discusses HTML versions and new features in HTML5 like audio, video, the canvas element and forms. The document is part of a course on web technologies and covers HTML, CSS, Bootstrap, React and more across several units.
Web development Training in Ambala ! Batra Computer Centrejatin batra
Â
Batra Computer Centre is An ISO certified 9001:2008 training Centre in Ambala.
We Provide Best Web Development Training in Ambala. BATRA COMPUTER CENTRE provides best training in C, C++, S.E.O, Web Designing, Web Development and So many other courses are available.
Web development Training in Ambala ! Batra Computer Centrejatin batra
Â
Batra Computer Centre is An ISO certified 9001:2008 training Centre in Ambala.
We Provide Best Web Development Training in Ambala. BATRA COMPUTER CENTRE provides best training in C, C++, S.E.O, Web Designing, Web Development and So many other courses are available.
Lecture 2 HTML part 1.pptxLecture 10 CSS part 2.pptxvvvvvvvvvvvvvvZahouAmel1
Â
Lecture 10 CSS part 2.pptxvvvvvvvvvvvvvvLecture 10 CSS part 2.pptxvvvvvvvvvvvvvvLecture 10 CSS part 2.pptxvvvvvvvvvvvvvvLecture 10 CSS part 2.pptxvvvvvvvvvvvvvvLecture 10 CSS part 2.pptxvvvvvvvvvvvvvvLecture 10 CSS part 2.pptxvvvvvvvvvvvvvvLecture 10 CSS part 2.pptxvvvvvvvvvvvvvvLecture 10 CSS part 2.pptxvvvvvvvvvvvvvvLecture 10 CSS part 2.pptxvvvvvvvvvvvvvvLecture 10 CSS part 2.pptxvvvvvvvvvvvvvvLecture 10 CSS part 2.pptxvvvvvvvvvvvvvvLecture 10 CSS part 2.pptxvvvvvvvvvvvvvvLecture 10 CSS part 2.pptxvvvvvvvvvvvvvvLecture 10 CSS part 2.pptxvvvvvvvvvvvvvvLecture 10 CSS part 2.pptxvvvvvvvvvvvvvvLecture 10 CSS part 2.pptxvvvvvvvvvvvvvvLecture 10 CSS part 2.pptxvvvvvvvvvvvvvvLecture 10 CSS part 2.pptxvvvvvvvvvvvvvvLecture 10 CSS part 2.pptxvvvvvvvvvvvvvvLecture 10 CSS part 2.pptxvvvvvvvvvvvvvvLecture 10 CSS part 2.pptxvvvvvvvvvvvvvvLecture 10 CSS part 2.pptxvvvvvvvvvvvvvvLecture 10 CSS part 2.pptxvvvvvvvvvvvvvvLecture 10 CSS part 2.pptxvvvvvvvvvvvvvvLecture 10 CSS part 2.pptxvvvvvvvvvvvvvvLecture 10 CSS part 2.pptxvvvvvvvvvvvvvvLecture 10 CSS part 2.pptxvvvvvvvvvvvvvvLecture 10 CSS part 2.pptxvvvvvvvvvvvvvvLecture 10 CSS part 2.pptxvvvvvvvvvvvvvvLecture 10 CSS part 2.pptxvvvvvvvvvvvvvvLecture 10 CSS part 2.pptxvvvvvvvvvvvvvvLecture 10 CSS part 2.pptxvvvvvvvvvvvvvvLecture 10 CSS part 2.pptxvvvvvvvvvvvvvvLecture 10 CSS part 2.pptxvvvvvvvvvvvvvvLecture 10 CSS part 2.pptxvvvvvvvvvvvvvvLecture 10 CSS part 2.pptxvvvvvvvvvvvvvvLecture 10 CSS part 2.pptxvvvvvvvvvvvvvvLecture 10 CSS part 2.pptxvvvvvvvvvvvvvvLecture 10 CSS part 2.pptxvvvvvvvvvvvvvvLecture 10 CSS part 2.pptxvvvvvvvvvvvvvvLecture 10 CSS part 2.pptxvvvvvvvvvvvvvvLecture 10 CSS part 2.pptxvvvvvvvvvvvvvvLecture 10 CSS part 2.pptxvvvvvvvvvvvvvvLecture 10 CSS part 2.pptxvvvvvvvvvvvvvvLecture 10 CSS part 2.pptxvvvvvvvvvvvvvvLecture 10 CSS part 2.pptxvvvvvvvvvvvvvvLecture 10 CSS part 2.pptxvvvvvvvvvvvvvv
Today’s designers when asked about HTML5 do hesitate to answer because of the lack of knowledge about HTML5.A Free Ebook On HTML 5 Step by Step Guide..
DSC Charusat brings out a "Learning React" Series workshop for you all. So the first workshop of the series is on 19th Sept,20 (Saturday) and it will cover Basics of HTML, CSS and JS with ES6
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...James Anderson
Â
Effective Application Security in Software Delivery lifecycle using Deployment Firewall and DBOM
The modern software delivery process (or the CI/CD process) includes many tools, distributed teams, open-source code, and cloud platforms. Constant focus on speed to release software to market, along with the traditional slow and manual security checks has caused gaps in continuous security as an important piece in the software supply chain. Today organizations feel more susceptible to external and internal cyber threats due to the vast attack surface in their applications supply chain and the lack of end-to-end governance and risk management.
The software team must secure its software delivery process to avoid vulnerability and security breaches. This needs to be achieved with existing tool chains and without extensive rework of the delivery processes. This talk will present strategies and techniques for providing visibility into the true risk of the existing vulnerabilities, preventing the introduction of security issues in the software, resolving vulnerabilities in production environments quickly, and capturing the deployment bill of materials (DBOM).
Speakers:
Bob Boule
Robert Boule is a technology enthusiast with PASSION for technology and making things work along with a knack for helping others understand how things work. He comes with around 20 years of solution engineering experience in application security, software continuous delivery, and SaaS platforms. He is known for his dynamic presentations in CI/CD and application security integrated in software delivery lifecycle.
Gopinath Rebala
Gopinath Rebala is the CTO of OpsMx, where he has overall responsibility for the machine learning and data processing architectures for Secure Software Delivery. Gopi also has a strong connection with our customers, leading design and architecture for strategic implementations. Gopi is a frequent speaker and well-known leader in continuous delivery and integrating security into software delivery.
Lecture 2 HTML part 1.pptxLecture 10 CSS part 2.pptxvvvvvvvvvvvvvvZahouAmel1
Â
Lecture 10 CSS part 2.pptxvvvvvvvvvvvvvvLecture 10 CSS part 2.pptxvvvvvvvvvvvvvvLecture 10 CSS part 2.pptxvvvvvvvvvvvvvvLecture 10 CSS part 2.pptxvvvvvvvvvvvvvvLecture 10 CSS part 2.pptxvvvvvvvvvvvvvvLecture 10 CSS part 2.pptxvvvvvvvvvvvvvvLecture 10 CSS part 2.pptxvvvvvvvvvvvvvvLecture 10 CSS part 2.pptxvvvvvvvvvvvvvvLecture 10 CSS part 2.pptxvvvvvvvvvvvvvvLecture 10 CSS part 2.pptxvvvvvvvvvvvvvvLecture 10 CSS part 2.pptxvvvvvvvvvvvvvvLecture 10 CSS part 2.pptxvvvvvvvvvvvvvvLecture 10 CSS part 2.pptxvvvvvvvvvvvvvvLecture 10 CSS part 2.pptxvvvvvvvvvvvvvvLecture 10 CSS part 2.pptxvvvvvvvvvvvvvvLecture 10 CSS part 2.pptxvvvvvvvvvvvvvvLecture 10 CSS part 2.pptxvvvvvvvvvvvvvvLecture 10 CSS part 2.pptxvvvvvvvvvvvvvvLecture 10 CSS part 2.pptxvvvvvvvvvvvvvvLecture 10 CSS part 2.pptxvvvvvvvvvvvvvvLecture 10 CSS part 2.pptxvvvvvvvvvvvvvvLecture 10 CSS part 2.pptxvvvvvvvvvvvvvvLecture 10 CSS part 2.pptxvvvvvvvvvvvvvvLecture 10 CSS part 2.pptxvvvvvvvvvvvvvvLecture 10 CSS part 2.pptxvvvvvvvvvvvvvvLecture 10 CSS part 2.pptxvvvvvvvvvvvvvvLecture 10 CSS part 2.pptxvvvvvvvvvvvvvvLecture 10 CSS part 2.pptxvvvvvvvvvvvvvvLecture 10 CSS part 2.pptxvvvvvvvvvvvvvvLecture 10 CSS part 2.pptxvvvvvvvvvvvvvvLecture 10 CSS part 2.pptxvvvvvvvvvvvvvvLecture 10 CSS part 2.pptxvvvvvvvvvvvvvvLecture 10 CSS part 2.pptxvvvvvvvvvvvvvvLecture 10 CSS part 2.pptxvvvvvvvvvvvvvvLecture 10 CSS part 2.pptxvvvvvvvvvvvvvvLecture 10 CSS part 2.pptxvvvvvvvvvvvvvvLecture 10 CSS part 2.pptxvvvvvvvvvvvvvvLecture 10 CSS part 2.pptxvvvvvvvvvvvvvvLecture 10 CSS part 2.pptxvvvvvvvvvvvvvvLecture 10 CSS part 2.pptxvvvvvvvvvvvvvvLecture 10 CSS part 2.pptxvvvvvvvvvvvvvvLecture 10 CSS part 2.pptxvvvvvvvvvvvvvvLecture 10 CSS part 2.pptxvvvvvvvvvvvvvvLecture 10 CSS part 2.pptxvvvvvvvvvvvvvvLecture 10 CSS part 2.pptxvvvvvvvvvvvvvvLecture 10 CSS part 2.pptxvvvvvvvvvvvvvvLecture 10 CSS part 2.pptxvvvvvvvvvvvvvv
Today’s designers when asked about HTML5 do hesitate to answer because of the lack of knowledge about HTML5.A Free Ebook On HTML 5 Step by Step Guide..
DSC Charusat brings out a "Learning React" Series workshop for you all. So the first workshop of the series is on 19th Sept,20 (Saturday) and it will cover Basics of HTML, CSS and JS with ES6
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...James Anderson
Â
Effective Application Security in Software Delivery lifecycle using Deployment Firewall and DBOM
The modern software delivery process (or the CI/CD process) includes many tools, distributed teams, open-source code, and cloud platforms. Constant focus on speed to release software to market, along with the traditional slow and manual security checks has caused gaps in continuous security as an important piece in the software supply chain. Today organizations feel more susceptible to external and internal cyber threats due to the vast attack surface in their applications supply chain and the lack of end-to-end governance and risk management.
The software team must secure its software delivery process to avoid vulnerability and security breaches. This needs to be achieved with existing tool chains and without extensive rework of the delivery processes. This talk will present strategies and techniques for providing visibility into the true risk of the existing vulnerabilities, preventing the introduction of security issues in the software, resolving vulnerabilities in production environments quickly, and capturing the deployment bill of materials (DBOM).
Speakers:
Bob Boule
Robert Boule is a technology enthusiast with PASSION for technology and making things work along with a knack for helping others understand how things work. He comes with around 20 years of solution engineering experience in application security, software continuous delivery, and SaaS platforms. He is known for his dynamic presentations in CI/CD and application security integrated in software delivery lifecycle.
Gopinath Rebala
Gopinath Rebala is the CTO of OpsMx, where he has overall responsibility for the machine learning and data processing architectures for Secure Software Delivery. Gopi also has a strong connection with our customers, leading design and architecture for strategic implementations. Gopi is a frequent speaker and well-known leader in continuous delivery and integrating security into software delivery.
GraphRAG is All You need? LLM & Knowledge GraphGuy Korland
Â
Guy Korland, CEO and Co-founder of FalkorDB, will review two articles on the integration of language models with knowledge graphs.
1. Unifying Large Language Models and Knowledge Graphs: A Roadmap.
https://arxiv.org/abs/2306.08302
2. Microsoft Research's GraphRAG paper and a review paper on various uses of knowledge graphs:
https://www.microsoft.com/en-us/research/blog/graphrag-unlocking-llm-discovery-on-narrative-private-data/
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024Albert Hoitingh
Â
In this session I delve into the encryption technology used in Microsoft 365 and Microsoft Purview. Including the concepts of Customer Key and Double Key Encryption.
Securing your Kubernetes cluster_ a step-by-step guide to success !KatiaHIMEUR1
Â
Today, after several years of existence, an extremely active community and an ultra-dynamic ecosystem, Kubernetes has established itself as the de facto standard in container orchestration. Thanks to a wide range of managed services, it has never been so easy to set up a ready-to-use Kubernetes cluster.
However, this ease of use means that the subject of security in Kubernetes is often left for later, or even neglected. This exposes companies to significant risks.
In this talk, I'll show you step-by-step how to secure your Kubernetes cluster for greater peace of mind and reliability.
Epistemic Interaction - tuning interfaces to provide information for AI supportAlan Dix
Â
Paper presented at SYNERGY workshop at AVI 2024, Genoa, Italy. 3rd June 2024
https://alandix.com/academic/papers/synergy2024-epistemic/
As machine learning integrates deeper into human-computer interactions, the concept of epistemic interaction emerges, aiming to refine these interactions to enhance system adaptability. This approach encourages minor, intentional adjustments in user behaviour to enrich the data available for system learning. This paper introduces epistemic interaction within the context of human-system communication, illustrating how deliberate interaction design can improve system understanding and adaptation. Through concrete examples, we demonstrate the potential of epistemic interaction to significantly advance human-computer interaction by leveraging intuitive human communication strategies to inform system design and functionality, offering a novel pathway for enriching user-system engagements.
The Metaverse and AI: how can decision-makers harness the Metaverse for their...Jen Stirrup
Â
The Metaverse is popularized in science fiction, and now it is becoming closer to being a part of our daily lives through the use of social media and shopping companies. How can businesses survive in a world where Artificial Intelligence is becoming the present as well as the future of technology, and how does the Metaverse fit into business strategy when futurist ideas are developing into reality at accelerated rates? How do we do this when our data isn't up to scratch? How can we move towards success with our data so we are set up for the Metaverse when it arrives?
How can you help your company evolve, adapt, and succeed using Artificial Intelligence and the Metaverse to stay ahead of the competition? What are the potential issues, complications, and benefits that these technologies could bring to us and our organizations? In this session, Jen Stirrup will explain how to start thinking about these technologies as an organisation.
UiPath Test Automation using UiPath Test Suite series, part 4DianaGray10
Â
Welcome to UiPath Test Automation using UiPath Test Suite series part 4. In this session, we will cover Test Manager overview along with SAP heatmap.
The UiPath Test Manager overview with SAP heatmap webinar offers a concise yet comprehensive exploration of the role of a Test Manager within SAP environments, coupled with the utilization of heatmaps for effective testing strategies.
Participants will gain insights into the responsibilities, challenges, and best practices associated with test management in SAP projects. Additionally, the webinar delves into the significance of heatmaps as a visual aid for identifying testing priorities, areas of risk, and resource allocation within SAP landscapes. Through this session, attendees can expect to enhance their understanding of test management principles while learning practical approaches to optimize testing processes in SAP environments using heatmap visualization techniques
What will you get from this session?
1. Insights into SAP testing best practices
2. Heatmap utilization for testing
3. Optimization of testing processes
4. Demo
Topics covered:
Execution from the test manager
Orchestrator execution result
Defect reporting
SAP heatmap example with demo
Speaker:
Deepak Rai, Automation Practice Lead, Boundaryless Group and UiPath MVP
PHP Frameworks: I want to break free (IPC Berlin 2024)Ralf Eggert
Â
In this presentation, we examine the challenges and limitations of relying too heavily on PHP frameworks in web development. We discuss the history of PHP and its frameworks to understand how this dependence has evolved. The focus will be on providing concrete tips and strategies to reduce reliance on these frameworks, based on real-world examples and practical considerations. The goal is to equip developers with the skills and knowledge to create more flexible and future-proof web applications. We'll explore the importance of maintaining autonomy in a rapidly changing tech landscape and how to make informed decisions in PHP development.
This talk is aimed at encouraging a more independent approach to using PHP frameworks, moving towards a more flexible and future-proof approach to PHP development.
Climate Impact of Software Testing at Nordic Testing DaysKari Kakkonen
Â
My slides at Nordic Testing Days 6.6.2024
Climate impact / sustainability of software testing discussed on the talk. ICT and testing must carry their part of global responsibility to help with the climat warming. We can minimize the carbon footprint but we can also have a carbon handprint, a positive impact on the climate. Quality characteristics can be added with sustainability, and then measured continuously. Test environments can be used less, and in smaller scale and on demand. Test techniques can be used in optimizing or minimizing number of tests. Test automation can be used to speed up testing.
Essentials of Automations: The Art of Triggers and Actions in FMESafe Software
Â
In this second installment of our Essentials of Automations webinar series, we’ll explore the landscape of triggers and actions, guiding you through the nuances of authoring and adapting workspaces for seamless automations. Gain an understanding of the full spectrum of triggers and actions available in FME, empowering you to enhance your workspaces for efficient automation.
We’ll kick things off by showcasing the most commonly used event-based triggers, introducing you to various automation workflows like manual triggers, schedules, directory watchers, and more. Plus, see how these elements play out in real scenarios.
Whether you’re tweaking your current setup or building from the ground up, this session will arm you with the tools and insights needed to transform your FME usage into a powerhouse of productivity. Join us to discover effective strategies that simplify complex processes, enhancing your productivity and transforming your data management practices with FME. Let’s turn complexity into clarity and make your workspaces work wonders!
Enhancing Performance with Globus and the Science DMZGlobus
Â
ESnet has led the way in helping national facilities—and many other institutions in the research community—configure Science DMZs and troubleshoot network issues to maximize data transfer performance. In this talk we will present a summary of approaches and tips for getting the most out of your network infrastructure using Globus Connect Server.
In his public lecture, Christian Timmerer provides insights into the fascinating history of video streaming, starting from its humble beginnings before YouTube to the groundbreaking technologies that now dominate platforms like Netflix and ORF ON. Timmerer also presents provocative contributions of his own that have significantly influenced the industry. He concludes by looking at future challenges and invites the audience to join in a discussion.
Generative AI Deep Dive: Advancing from Proof of Concept to ProductionAggregage
Â
Join Maher Hanafi, VP of Engineering at Betterworks, in this new session where he'll share a practical framework to transform Gen AI prototypes into impactful products! He'll delve into the complexities of data collection and management, model selection and optimization, and ensuring security, scalability, and responsible use.
2. CAP756: WEB TECHNOLOGIES
INTRODUCTION TO WEB TECHNOLOGIES
UNIT 1: HTML
UNIT II: CSS
UNIT III: BOOTSTRAP
UNIT IV: BASIC OF REACT, FUNCTIONAL PROGRAMMING WITH JAVASCRIPT
UNIT V: PURE REACT, REACT WITH JSX
UNIT VI: PROPS, STATE, AND THE COMPONENT TREE, REACT ROUTER AND SERVER
2
LOVELY PROFESSIONAL UNIVERSITY
3. HTML
Introduction
â—¦ HTML is the standard markup language for web pages and web applications.
â—¦ With HTML you can create your Own Website.
â—¦ HTML stands for HYPERTEXT MARKUP LANGUAGE.
â—¦ This markup tells a web browser how to display the text, images and other form of multimedia on a webpage.
â—¦ HTML elements are represented by tags
â—¦ Container Tag/ Pair Tag: The first tag in a pair is the start tag, the second tag is the end tag. The end tag is written
like the start tag, with a forward slash before the tag name.
â—¦ Start and end tags are also called opening tags and closing tags. For ex <b> and </b>
â—¦ Empty Tag: Only opening tag is used. For ex <br> or <hr>
3
LOVELY PROFESSIONAL UNIVERSITY
4. What do I need to create HTML?
Computer
Text or HTML editor: For ex, HTML editors are Dreamweaver, SeaMonkey, Coffee Cup, TextPad etc.
The text editors are include Notepad(for windows), Pico(for Linux), or Simpletext/ text Edit/TexT.
Web Browser. For Ex Internet Explorer of Firefox
HTML VERSIONS
â—¦ HTML 1991
â—¦ HTML 2.0 1995
â—¦ HTML 3.2 1997
â—¦ HTML 4.01 1999
â—¦ XHTML 2000
â—¦ HTML 5 2014
4
LOVELY PROFESSIONAL UNIVERSITY
5. HTML 5
HTML is a markup language used for structuring and presenting content on the World Wide Web.
The most interesting new API’s in HTML 5 are:
HTML Geolocation (Provides web applications with access to geographical location data about the user’s
device.)
Drag and Drop (Supports dragging and dropping items within and between browser windows.)
Local Storage
Application Cache (Provides programs with secure access to the device’s file system.)
Web Workers (Allows JavaScript to execute scripts in the background.)
Server Sent Events (Allows the server to push data to the browser without the browser needing to request it.)
Microdata (This lets you create your own vocabularies beyond HTML5 and extend your web pages with
custom semantics.)
Audio & Video- You can embed audio or video on your webpages without resorting to third party plugins
Canvas- This supports two dimensional drawing surface that you can program with java script
5
LOVELY PROFESSIONAL UNIVERSITY
6. New Features
A number of new elements and attributes that can help you in building modern websites.
New semantic Elements- These are like <header>, <footer>, and <section>.
Forms 2.0- Implements to HTML web forms where new attributes have been introduced for <input> tag.
Persistent Local Storage- to achieve without resorting to third-party plugins.
WebSocket – A next-generation bidirectional communication technology for web applications.
6
LOVELY PROFESSIONAL UNIVERSITY
7. Question 1
What does HTML stand for?
A) Hyperlinks and Text Markup Language
B) Home Tool Markup Language
C) Hyper Text Markup Language
D) Home Text Markup Language
7
LOVELY PROFESSIONAL UNIVERSITY
8. A Simple HTML Document
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<h1>My First Heading</h1>
<p>My first paragraph.</p>
</body>
</html>
8
LOVELY PROFESSIONAL UNIVERSITY
9. Example Explained (Basic tags)
The <!DOCTYPE html> declaration defines that this document is an HTML5 document
The <html> element is the root element of an HTML page
The <head> element contains meta information about the HTML page
The <title> element specifies a title for the HTML page (which is shown in the browser's title bar or in the page's
tab)
The <body> element defines the document's body, and is a container for all the visible contents, such as headings,
paragraphs, images, hyperlinks, tables, lists, etc.
The <h1> element defines a large heading
The <p> element defines a paragraph
9
LOVELY PROFESSIONAL UNIVERSITY
10. Formatting tags
<acronym> Not supported in HTML5. Use <abbr> instead. Defines an acronym
<abbr> Defines an abbreviation or an acronym
<address> Defines contact information for the author/owner of a document/article
<b> Defines bold text
<bdi> Isolates a part of text that might be formatted in a different direction from other
text outside it
<bdo> Overrides the current text direction
<big> Not supported in HTML5. Use CSS instead. Defines big text
<blockquote> Defines a section that is quoted from another source
<cite> Defines the title of a work
<code> Defines a piece of computer code
LOVELY PROFESSIONAL UNIVERSITY 10
11. Forms and Input tags
<form> Defines an HTML form for user input
<input> Defines an input control
<textarea> Defines a multiline input control (text area)
<button> Defines a clickable button
<select> Defines a drop-down list
<optgroup> Defines a group of related options in a drop-down list
<option> Defines an option in a drop-down list
<label> Defines a label for an <input> element
<fieldset> Groups related elements in a form
<output> Defines the result of a calculation
LOVELY PROFESSIONAL UNIVERSITY 11
12. Image tags
<img> Defines an image
<map> Defines a client-side image map
<area> Defines an area inside an image map
<canvas> Used to draw graphics, on the fly, via scripting (usually JavaScript)
<figcaption> Defines a caption for a <figure> element
<figure> Specifies self-contained content
<picture> Defines a container for multiple image resources
<svg> Defines a container for SVG graphics
LOVELY PROFESSIONAL UNIVERSITY 12
13. Question 2
Who is making the Web standards?
A)Mozilla
B)The world Wide Web Consortium
C)Google
D)Microsoft
13
LOVELY PROFESSIONAL UNIVERSITY
14. What is an HTML Element?
An HTML element is defined by a start tag, some content, and an end tag:
<tagname>Content goes here...</tagname>
The HTML element is everything from the start tag to the end tag:
<h1>My First Heading</h1>
<p>My first paragraph.</p>
14
Start tag Element content End tag
<h1> My First Heading </h1>
<p> My first paragraph. </p>
<br> none none
LOVELY PROFESSIONAL UNIVERSITY
16. Question 3
Choose the correct HTML element for the largest heading
A)<h1>
B)<h6>
C)<heading>
D)<head>
16
LOVELY PROFESSIONAL UNIVERSITY
17. Question 4
What is the correct HTML element for inserting a line break?
A)<break>
B)<br>
C)<Ib>
D)<breake>
17
LOVELY PROFESSIONAL UNIVERSITY
18. HTML Images
Images can improve the design and the appearance of a web page.
Example Program 1
<!DOCTYPE html>
<html>
<body>
<h2>HTML Image</h2>
<img src="pic_trulli.jpg" alt="Trulli" width="500" height="333">
</body>
</html>
LOVELY PROFESSIONAL UNIVERSITY 18
19. Example Program 2
<!DOCTYPE html>
<html>
<body>
<h2>HTML Image</h2>
<img src="img_girl.jpg" alt="Girl in a jacket" width="500" height="600">
</body>
</html>
LOVELY PROFESSIONAL UNIVERSITY 19
20. HTML Images Syntax
• The HTML <img> tag is used to embed an image in a web page.
•Images are not technically inserted into a web page; images are linked to web pages. The <img>
tag creates a holding space for the referenced image.
•The <img> tag is empty, it contains attributes only, and does not have a closing tag.
•The <img> tag has two required attributes:
•src - Specifies the path to the image
•alt - Specifies an alternate text for the image
• Syntax
• <img src="url" alt="alternatetext">
LOVELY PROFESSIONAL UNIVERSITY 20
21. The Image Attribute
 The src Attribute (The required src attribute specifies the path (URL) to the image.)
The alt Attribute (The required alt attribute provides an alternate text for an image, if the
user for some reason cannot view it)
 Image Size - Width and Height (You can use the style attribute to specify the width and
height of an image.)
 we suggest using the style attribute. It prevents styles sheets from changing the size of
images:
LOVELY PROFESSIONAL UNIVERSITY 21
22. Example program
<!DOCTYPE html>
<html>
<head>
<style>
/* This style sets the width of all images to 100%: */
img {
width: 100%;
}
</style>
</head>
<body>
<h2>Width/Height Attributes or Style?</h2>
<p>The first image uses the width attribute (set to 128 pixels), but the style in the head section overrides it, and sets the width to 100%.</p>
<img src="html5.gif" alt="HTML5 Icon" width="128" height="128">
<p>The second image uses the style attribute to set the width to 128 pixels, this will not be overridden by the style in the head section:</p>
<img src="html5.gif" alt="HTML5 Icon" style="width:128px;height:128px;">
</body>
</html>
LOVELY PROFESSIONAL UNIVERSITY 22
24. Question
If the image cannot be displayed then _______ specifies an alternate text for an image.
 A) caption attribute
 B) value attribute
 C) alt attribute
 D) text attribute
LOVELY PROFESSIONAL UNIVERSITY 24
25. Question
The ______ tag defines an image in an HTML page.
A) <pic>
B) <image>
C) <imge>
D) <img>
LOVELY PROFESSIONAL UNIVERSITY 25
26. Question
Which of the following pair of attribute is required for img tag ?
A) src and a
B) img and alt
C) img and src
D) src and alt
LOVELY PROFESSIONAL UNIVERSITY 26
27. Images in Another Folder
 If you have your images in a sub-folder, you must include the folder name in the src attribute:
 Example
 <img src="/images/html5.gif" alt="HTML5
Icon" style="width:128px;height:128px;">
 Images on Another Server/Website
Some web sites point to an image on another server.
To point to an image on another server, you must specify an absolute
(full) URL in the src attribute:
Example
<img src="https://www.html.com/images/html_green.jpg" alt=“html.com">
LOVELY PROFESSIONAL UNIVERSITY 27
28. Common Image Formats
Here are the most common image file types, which are supported in all
browsers (Chrome, Edge, Firefox, Safari, Opera):
LOVELY PROFESSIONAL UNIVERSITY 28
Abbreviation File Format File Extension
APNG Animated Portable Network
Graphics
.apng
GIF Graphics Interchange Format .gif
ICO Microsoft Icon .ico, .cur
JPEG Joint Photographic Expert Group
image
.jpg, .jpeg, .jfif, .pjpeg, .pjp
PNG Portable Network Graphics .png
SVG Scalable Vector Graphics .svg
29. HTML Background Images
 To add a background image on an HTML element, use the HTML style attribute and the CSS
background-image property:
 Example: <div style="background-image: url('img_girl.jpg');">
 Specify the background image in the <style> element:
 Example: <style>
div {
background-image: url('img_girl.jpg’);
}
</style>
LOVELY PROFESSIONAL UNIVERSITY 29
30. Background Cover
 If you want the background image to cover the entire element, you can set the background-size
property to cover.
 To make sure the entire element is always covered, set the background-attachment property to fixed:
This way, the background image will cover the entire element, with no stretching (the image will keep
its original proportions):
 Example: <style>
body {
background-image: url('img_girl.jpg');
background-repeat: no-repeat;
background-attachment: fixed;
background-size: cover;
}
</style>
LOVELY PROFESSIONAL UNIVERSITY 30
31. Question
For specifying height and width of an image which attributes is used in image tag?
A) alt attribute
B) Height and width attribute
C) Style tag
D) Both A and C
LOVELY PROFESSIONAL UNIVERSITY 31
32. Question
When should you use path along with file name of picture in IMG tag?
A) path is optional and not necessary
B) when the location of image file and html file are different
C) when image file and html file both are on same location
D) path is always necessary when inserting image
LOVELY PROFESSIONAL UNIVERSITY 32
33. HTML Lists
HTML Lists are used to specify lists of information. All lists may contain one or more list
elements. There are three different types of HTML lists:
1.Ordered List or Numbered List (ol)
2.Unordered List or Bulleted List (ul)
3.Description List or Definition List (dl)
**We can create a list inside another list, which will be termed as nested List.**
LOVELY PROFESSIONAL UNIVERSITY 33
34. HTML Ordered List or Numbered List
In the ordered HTML lists, all the list items are marked with numbers by default. It is
known as numbered list also. The ordered list starts with <ol> tag and the list items start
with <li> tag.
Example Program: <html>
<body>
<ol>
<li>Aries</li>
<li>Bingo</li>
<li>Leo</li>
<li>Oracle</li>
</ol>
</body>
</html>
LOVELY PROFESSIONAL UNIVERSITY 34
35. HTML Unordered List or Bulleted List
In HTML Unordered list, all the list items are marked with bullets. It is also known as
bulleted list also. The Unordered list starts with <ul> tag and list items start with the <li>
tag.
<ul>
<li>Aries</li>
<li>Bingo</li>
<li>Leo</li>
<li>Oracle</li>
</ul>
LOVELY PROFESSIONAL UNIVERSITY 35
36. HTML Description List or Definition
List
 HTML Description list is also a list style which is supported by HTML and XHTML. It is
also known as definition list where entries are listed like a dictionary or encyclopedia.
 The definition list is very appropriate when you want to present glossary, list of terms or
other name-value list.
 The HTML definition list contains following three tags:
1.<dl> tag defines the start of the list.
2.<dt> tag defines a term.
3.<dd> tag defines the term definition (description).
LOVELY PROFESSIONAL UNIVERSITY 36
37. Example Program
<dl>
<dt>Aries</dt>
<dd>-One of the 12 horoscope sign.</dd>
<dt>Bingo</dt>
<dd>-One of my evening snacks</dd>
<dt>Leo</dt>
<dd>-It is also an one of the 12 horoscope sign.</dd>
<dt>Oracle</dt>
<dd>-It is a multinational technology corporation.</dd>
</dl>
LOVELY PROFESSIONAL UNIVERSITY 37
38. Question
For arranging your list items in same way as they were arranged in dictionary which tag you will
use?
A) <ul>
B) <ol>
C) <li>
D) <dl>
LOVELY PROFESSIONAL UNIVERSITY 38
39. Question
An ordered list in HTML document starts with a
A) <ul > tag
B) <ol> tag
C) <li> tag
D) None of the above
LOVELY PROFESSIONAL UNIVERSITY 39
40. HTML Block and Inline Elements
 Every HTML element has a default display value, depending on what type of
element it is.
 Block-level Elements
 Always starts on a new line.
 Always takes up the full width available (stretches out to the left and right as far
as it can).
 Element has a top and a bottom margin, whereas an inline element does not.
 Example <div>Hello World</div>
Inline Elements
 An inline element does not start on a new line.
 An inline element only takes up as much width as necessary.
 This is a <span> element inside a paragraph.
Example : <span>Hello World</span>
LOVELY PROFESSIONAL UNIVERSITY 40
41. The <div> Element
The <div> element is often used as a container for other HTML elements.
The <div> element has no required attributes, but style, class and id are common.
When used together with CSS, the <div> element can be used to style blocks of content:
Example : <div style="background-
color:black;color:white;padding:20px;">
<h2>London</h2>
<p>London is the capital city of England. It is the most populous
city in the United Kingdom, with a metropolitan area of over 13 million
inhabitants.</p>
</div>
LOVELY PROFESSIONAL UNIVERSITY 41
42. The <span> Element
The <span> element is an inline container used to mark up a part of a text, or a part of a
document.
The <span> element has no required attributes, but style, class and id are common.
When used together with CSS, the <span> element can be used to style parts of the text:
 Example :<p>My mother has <span style="color:blue;font-
weight:bold">blue</span> eyes and my father
has <span style="color:darkolivegreen;font-weight:bold">dark
green</span> eyes.</p>
LOVELY PROFESSIONAL UNIVERSITY 42
43. Question
Which element we want to center a block of content or position a content block on the
page?
A. strong element
B. div element
C. span element
D. table element
LOVELY PROFESSIONAL UNIVERSITY 43
44. Question
There is one difference between div and span.
A. a div is a block-level element whereas a span is
B. a span is an inline element whereas a div is a b
C. a div is a low-level element whereas a span is a
D. a div is a high-level element whereas a span is
LOVELY PROFESSIONAL UNIVERSITY 44
45. Question
HTML provides a ……. tag to creating online form for the purpose of collecting
information from user.
A. <form>
B. <div>
C. <frame>
D. None of the above
LOVELY PROFESSIONAL UNIVERSITY 45
46. HTML Tables
 HTML tables allow web developers to arrange data into rows and columns.
 Define an HTML Table
 Each table row is defined with a <tr> tag. Each table header is defined with
a <th> tag. Each table data/cell is defined with a <td> tag.
 The text in <th> elements are bold and centered.
 The text in <td> elements are regular and left-aligned.
LOVELY PROFESSIONAL UNIVERSITY 46
BY default
47. A simple HTML table:
<table style="width:100%">
<tr>
<th>Firstname</th>
<th>Lastname</th>
<th>Age</th>
</tr>
<tr>
<td>Jill</td>
<td>Smith</td>
<td>50</td>
</tr>
<tr>
<td>Eve</td>
<td>Jackson</td>
<td>94</td>
</tr>
</table>
LOVELY PROFESSIONAL UNIVERSITY 47
48. HTML Forms
 An HTML form is used to collect user input. The user input is most often sent
to a server for processing.
 Example design:
LOVELY PROFESSIONAL UNIVERSITY 48
49. The <input> Element
 The HTML <input> element is the most used form element.
 An <input> element can be displayed in many ways, depending on the type attribute.
Type Description
<input type="text"> Displays a single-line text input field
<input type="radio"> Displays a radio button (for selecting one of many choices)
<input type="checkbox"> Displays a checkbox (for selecting zero or more of many choices)
<input type="submit"> Displays a submit button (for submitting the form)
<input type="button"> Displays a clickable button
LOVELY PROFESSIONAL UNIVERSITY 49
50. Radio Buttons
<html>
<body>
<h2>Radio Buttons</h2>
<p>Choose your favorite Web language:</p>
<form>
<input type="radio" id="html" name="fav_language" value="HTML">
<label for="html">HTML</label><br>
<input type="radio" id="css" name="fav_language" value="CSS">
<label for="css">CSS</label><br>
<input type="radio" id="javascript" name="fav_language" value="JavaScript">
<label for="javascript">JavaScript</label>
</form>
</body>
</html>
LOVELY PROFESSIONAL UNIVERSITY 50
51. What will be the code for this output?
LOVELY PROFESSIONAL UNIVERSITY 51
52. Question
Which one of the following can be used to define the spacing between the cells of a table?
A. border-spacing
B. spacing
C. cell-spacing
D. table-spacing
LOVELY PROFESSIONAL UNIVERSITY 52
53. Question
Choose the incorrect option.
A. radio button allows to choose only one option from the given options.
B. default option can be chosen using attribute "selected" in radio button
C. default option can be chosen using attribute "checked" in radio button
D. checkbox allows to choose one or more than one options from the given
LOVELY PROFESSIONAL UNIVERSITY 53