PDF Google Drive Downloader v1.1


Báo lỗi sự cố

Nội dung text Unit 2 Web Development Tools – HTML and CSS.pdf


IT-ITES THEO-PRACTICAL NOTES & WORK BOOK LEVEL-2 CLASS-10TH LO-1:-Create a First Webpage Using HTML SHORT QUESTION ANSWER 1. HTML Scripting for Web Page Q1: What is HTML scripting? A: HTML scripting refers to using languages like JavaScript within HTML to make web pages interactive and dynamic. Q2: Which tag is used to add scripts in an HTML document? A: The In this example, JavaScript is used to show an alert when the user clicks a button. This interaction is not possible with plain HTML. 🔹 2. HTML Tags and Attributes
IT-ITES THEO-PRACTICAL NOTES & WORK BOOK LEVEL-2 CLASS-10TH Q: What are HTML tags and attributes? Explain the difference with examples. A: HTML tags are predefined codes used to define the structure and layout of a web page. They usually come in pairs: an opening tag and a closing tag, like

and

. Tags define what kind of content is inside them, such as headings, paragraphs, images, or links. Attributes, on the other hand, provide additional information about the HTML elements. They are written inside the opening tag and follow the name="value" format. Example: html CopyEdit Visit Example  Here, is an HTML tag that creates a hyperlink.  href="https://www.example.com" is an attribute specifying the link’s destination. So, tags define elements, and attributes modify their behavior or appearance. 🔹 3. HTML Tags vs Elements Q: Differentiate between HTML tags and HTML elements with suitable examples. A: An HTML tag is a code enclosed in angle brackets, used to mark the start or end of an element. There are two types: opening tags (like

) and closing tags (like

). Tags tell the browser what to display. An HTML element includes the opening tag, content, and closing tag. It is a complete unit that defines a structure or section of a webpage. Example: html CopyEdit

This is a paragraph.

is the opening tag. 

is the closing tag.  The entire line including tags and content is an element. Key Difference:  A tag is a part of the element.  An element is the full structure made up of the tags and content.

Tài liệu liên quan

x
Báo cáo lỗi download
Nội dung báo cáo



Chất lượng file Download bị lỗi:
Họ tên:
Email:
Bình luận
Trong quá trình tải gặp lỗi, sự cố,.. hoặc có thắc mắc gì vui lòng để lại bình luận dưới đây. Xin cảm ơn.