-
Notifications
You must be signed in to change notification settings - Fork 0
001_HTML
JenDiamond edited this page Jul 12, 2022
·
2 revisions
CAT - Add Whatever you want to this document...
Tutorials:
- What is HTML?
Answer: HTML is the abbreviation for Hypertext Markup Language. It is the typical documents’ markup language for developing web pages to display on the web browser. The extensions used to save HTML pages are.html
and.htm
- What is a Tag in HTML?
Answer: In an HTML page, tags used are to place the content and format the pages. They always defined between (<) and (>) symbols. For example,<h1>text</h1>
. An opening tag must be preceded with a closing tag and indicated with a ‘/’ forward slash. A tag instructs the browser to format the HTML. Tags have many uses, such as changing the appearance of text, displaying a graphic, or linking another page. - If you want to display some HTML data in a table in tabular format, which HTML tags will you use?
Answer:
<table>
For defining a table.
<tr>
For defining a row in a table.
<td>
For defining a cell in a table.
<th>
For defining a header cell in a table.
<tbody>
For grouping the body’s content in a table.
<col>
For specifying the column properties for each column of the table. - What are Attributes in HTML?
Answer: An additional attribute is given to each tag to alter the behavior of the tag. Attributes are defined directly after the tag name, inside the angular brackets. They appear in opening tags and can never appear in closing tags.
For example: You can define an attribute for the tag, such as a text field, checkbox, radio button, or many more ways. - What is an Anchor tag in HTML?
Answer: An anchor tag is used to link two sections, web pages, or website templates in HTML. Its format is:<a href=”#” target=”link”></a>
Wherehref
is an attribute of the anchor tag used to identify the sections in a document, the ‘link’ is defined in the target attribute, which is to be linked. - What are Lists in HTML?
Answer: HTML lists are used to group a set of related items in lists. It is defined with an
<li>
tag. Some commonly used HTML lists:
Ordered List<ol>
Unordered List<ul>
- What are Forms in HTML?
Answer: Forms are used to collect the user information when they are filled, and details are provided to save into the database.<form
- What is the Use of Comments in HTML and how do you write one?
Answer: Comments are used in an HTML document to make important notes and help developers mention any modification to be incorporated afterward. They are not displayed in the browser when the code is executed. You use wrap the text like this:
<!-- text -->
to make a comment in HTML.