|
Answer» To build a project, we need to use different kinds of html TAGS to make it successful. In the same way, I have also used many different html tags in my different projects. Some of them are: - <p>: Paragraph is a block level tag used to create paragraphs in html project. It TAKES the whole area both in the left and in the right as it’s a block level tag.
- <span>: Span is an inline text element. It has styling by default. So if we write something inside the span element styling is done by default.
- <strong>: To display anything in bold we can use <strong> tag.
- <h1>Header: There are different levels of headers used to build a project like <h1>,<h2>,<h3>,<h4>,<h5> etc.
- <div>: It’s actually a container element. It does not have any styling by default and also its a block level element.
- <i>: Through this <i> tag we can display anything in italics in the HTML project.
- <br>: It is used to give a line break in the code. As in HTML space does not display break. So to give a break we need to use the tag <br>.
- <ul>: In HTML, we can display a list both in order as well as unordered way. When the list is not in order, we use the tag <ul>.
- <ol>: Through the above statement we have come to know that to display something in an unordered way we use the tag <ul>. In the same way, to make an ordered list we use <ol> in HTML.
- <li>: It is used for listing the items inside the <ul> and <ol> tags. For each list items separate <li> is used which is denoted by any symbol or numbers.
- <table>: For building a table inside the project we use the tag <table>. We generally write related data inside a table.
- <tr>: Table row is used to create table rows in <table> tag.
- <td>: Table cells are defined through table data which in turn is also inside the table element.
- <tbody>: It is an optional element inside a table tag. Generally used to group all the rows which are not in <thead> tag.
- <section>: Section is like div tag which is used to create a specific section in the HTML project.
- <nav>: Through <nav> tag we can create navigation link of the page. This helps the user to navigate through the page.
- <img>: To display image in the page we use the <img> tag. Image tag also requires <src> source tag as well as < alt> tag to display any image in the page.
- <video>: We can also embed video in our html page with the help of <video> tag. We can embed any kind of video like a music video or a game video etc. through this tag.
- <audio>: We can embed sound files in our web page through this <audio> tag.
- <form>: For building a form in the web page the <form> tag is used. Inside the form tag, you can create checkbox, radio button, text fields, etc. In the end, a form contains a submit button so that the user can input the REQUIRED data and submit it.
- <input>: It is used inside a form to take input from the user. With the TYPE attribute, it takes different forms like text, radio, checkbox, password, date, number. It is one of the most common tags used on the web.
- <textarea>: It is also used inside a form to take input from the user. It is like <input type=“text”> but it is generally used for multiline inputs. It is useful when you want to take more input from the user.
- <label>: It is associated with the <input> tag and used with it. Although not required and we can use simple text with <input> also. But, it is programmatically associated with <input> tag and also used by screen readers.
- <select>: It is the DROPDOWN, which we find in almost any form. There can be many items in a select tag.
- <option>: It is used with the select tag to define the individual items inside it.
|