LEC-019 Attribute are used in HTML to add extra information to an element. For example, the `href` attribute is used in the `<a>` element to specify the URL of the page that the link points to. Some of the most commonly used HTML attributes are:
- `src`: This attribute is used in the `<img>` element to specify the URL of the image that should be displayed.
- `alt`: This attribute is used in the `<img>` element to specify alternate text for the image if it cannot be displayed.
- `width` and `height`: These attributes are used in the `<img>` element to specify the size of the image.
- `href`: This attribute is used in the `<a>` element to specify the URL of the page that the link points to.
- `action`: This attribute is used in the `<form>` element to specify the URL of the page that the form data should be submitted to.
- `method`: This attribute is used in the `<form>` element to specify the method that should be used to submit the form data (e.g. "get" or "post").
- `target`: This attribute is used in the `<a>` element to specify where the linked page should be opened (e.g. "_blank" for a new tab).
- `style`: This attribute is used in most elements to specify CSS styles for the element.
These are just a few of the most commonly used HTML attributes, there are many more available for different elements and purposes.
## 2 types of CSS
There are two main types of CSS: internal and external. Internal CSS is used within the `<head>` section of a HTML document, and it is used to apply styles to a single page. External CSS is used in a separate file that is linked to the HTML document, and it is used to apply styles to multiple pages.
## 3 types of CSS
There are three main types of CSS: inline, internal, and external.
1. inline: CSS is used within the `<body>` section of a HTML documents, and it is used to apply styles to a single element. For example: `<p style="color: red;">text</p>.
2. internal: CSS is used within the `<head>` section of a HTML document, and it is used to apply styles to a single page. For example: `<style>body{color: red; }</style>`.
3. external: CSS is used within a separate file that is linked to the HTML document, and it is used to apply styles to multiple pages. For example: `<link rel="stylesheet" href="style.css">` .
## Reader
There are two main types of CSS: internal and external. Internal CSS is used within the `<head>` section of a HTML document, and it is used to apply styles to a single page. External CSS is used in a separate file that is linked to the HTML document, and it is used to apply styles to multiple pages.
## 2 types of CSS
There are two main types of CSS: internal and external. Internal CSS is used within the `<head>` section of a HTML document, and it is used to apply styles to a single page. External CSS is used in a separate file that is linked to the HTML document, and it is used to apply styles to multiple pages.
## 2 types of CSS
There are two main types of CSS: internal and external. Internal CSS is used within the `<head>` section of a HTML document, and it is used to apply styles to a single page. External CSS is used in a separate file that is linked to the HTML document, and it is used to apply styles to multiple pages.
## 2 types of CSS
There are two main types of CSS: internal and external. Internal CSS is used within the `<head>` section of a HTML document, and it is used to apply styles to a single page. External CSS is used in a separate file that is linked to the HTML document, and it is used to apply styles to multiple pages.
## 2 types of CSS
There are two main types of CSS: internal and external. Internal CSS is used within the `<head>` section of a HTML document, and it is used to apply styles to a single page. External CSS is used in a separate file that is linked to the HTML document, and it is was used to apply styles to multiple pages.
## 2 types of CSS
There are two main types of CSS: internal and external. Internal CSS is used within the `<head>` section of a HTML document, and it is used to apply styles to a single page. External CSS is used in a separate file that is linked to the HTML document, and it is used to apply styles to multiple pages.
## 2 types of CSS
There are two main types of CSS: internal and external. Internal CSS is used within the `<head>` section of a HTML document, and it is used to apply styles to a single page. External CSS is used in a separate file that is linked to the HTML document, and it is used to apply styles to multiple pages.
## 2 types of CSS
There are two main types of CSS: internal and external. Internal CSS is used within the `<head〉` section of a HTML document, and it is used to apply styles to a single page. External CSS is used in a separate file that is linked to the HTML document, and it is used to apply styles to multiple pages.
## 2 types of CSS
There are two main types of CSS: internal and external. Internal CSS is used within the `<head>` section of a HTML document, and it is used to apply styles to a single page. External CSS is used in a separate file that is linked to the HTML document, and it is used to apply styles to multiple pages.
## 2 types of CSS
There are two main types of CSS: internal and external. Internal CSS is used within the `<head>` section of a HTML document, and it is used to apply styles to a single page. External CSS is used in a separate file that is linked to the HTML document, and it is used to apply styles to multiple pages.
## 2 types of CSS
There are two main types of CSS: internal and external. Internal CSS is used within the `<head>` section of a HTML document, and it is used to apply styles to a single page. External CSS is used in a separate file that is linked to the HTML document, and it is used to apply styles to multiple pages.
## 2 types of CSS
There are two main types of CSS: internal and external. Internal CSS is used within the `<head>` section of a HTML document, and it is used to apply styles to a single page. External CSS is used in a separate file that is linked to the HTML document, and it is used to apply styles to multiple pages.
## 2 types of CSS
There are two main types of CSS: internal and external. Internal CSS is used within the `<head>` section of a HTML document, and it is used to apply styles to a single page. External CSS is used in a separate file that is linked to the HTML document, and it is used to apply styles to multiple pages.
## 2 types of CSS
There are two main types of CSS: internal and external. Internal CSS is used within the `<head>` section of a HTML document, and it is used to apply styles to a single page. External CSS is used in a separate file that is linked to the HTML document, and it is used to apply styles to multiple pages.
## 2 types of CSS
There are two main types of CSS: internal and external. Internal CSS is used within the `<head>` section of a HTML document, and it is used to apply styles到 a single page. External CSS is used in a separate file that is linked to the HTML document, and it is used to apply styles to multiple pages.
## 2 types of CSS
There are two main types of CSS: internal and external. Internal CSS is used within the `<head>` section of a HTML document, and it is used to apply styles to a single page. External CSS is used in a separate file that is linked to the HTML document, and it is used to apply styles to multiple pages.
## 2 types of CSS
There are two main types of CSS: internal and external. Internal CSS is used within the `<head>` section of a HTML document, and it is used to apply styles to a single page. External CSS is used in a separate file that is linked to the HTML document, and it is used to apply styles to multiple pages.
## 2 types of CSS
There are two main types of CSS: internal and external. Internal CSS is used within the `<head>` section of a HTML document, and it is used to apply styles to a single page. External CSS is used in a separate file that is linked to the HTML document, and it is used to apply styles to multiple pages.
## 2 types of CSS
There are two main types of CSS: internal and
2008年11月26日