What is html tag with example?
next → ← prev Show
HTML tags are like keywords which defines that how web browser will format and display the content. With the help of tags, a web browser can distinguish between an HTML content and a simple content. HTML tags contain three main parts: opening tag, content and closing tag. But some HTML tags are unclosed tags. When a web browser reads an HTML document, browser reads it from top to bottom and left to right. HTML tags are used to create HTML documents and render their properties. Each HTML tags have different properties. An HTML file must have some essential tags so that web browser can differentiate between a simple text and HTML text. You can use as many tags you want as per your code requirement.
SyntaxHTML Tag ExamplesNote: HTML Tags are always written in lowercase letters. The basic HTML tags are given below:Paragraph Tag
|
Tag name | Description |
---|---|
This tag is used to apply comment in an HTML document. | |
This tag is used to specify the version of HTML | |
A | |
It is termed as anchor tag and it creates a hyperlink or link. | |
It defines an abbreviation for a phrase or longer word. | |
It defines acronym for a word. (Not supported in HTML5) | |
It defines the author's contact information of the HTML article | |
It defines an embedded Java applet. (Not supported in HTML5) | |
It defines the area of an image map. | |
It defines the self-contained content. | |
It defines content aside from main content. Mainly represented as sidebar. | |
It is used to embed sound content in HTML document. | |
B | |
It is used to make a text bold. | |
This tag defines the base URL for all relative URL within the document. | |
This tag is used to set default font, size and color for all elements of document. (Not supported in HTML5) | |
This tag is used to provide isolation for that part of text which may be formatted in different directions from its surrounding text. | |
It is used to override the current text direction. | |
This tag is used to make font size one level larger than its surrounding content. (Not supported in HTML5) | |
It is used to define a content which is taken from another source. | |
It is used to define the body section of an HTML document. | |
It is used to apply single line break. | |
It is used to represent a clickable button | |
C | |
It is used to provide a graphics space within a web document. | |
It is used to define a caption for a table. | |
It is used to align the content in center. (Not supported in HTML5) | |
It is used to define the title of the work, book, website, etc. | |
| It is used to display a part of programming code in an HTML document. |
It defines a column within a table which represent common properties of columns and used with the | |
It is used to define group of columns in a table. | |
D | |
It is used to link the content with the machine-readable translation. | |
It is used to provide a predefined list for input option. | |
It is used to provide definition/description of a term in description list. | |
It defines a text which has been deleted from the document. | |
It defines additional details which user can either view or hide. | |
It is used to indicate a term which is defined within a sentence/phrase. | |
It defines a dialog box or other interactive components. | |
It is used as container for directory list of files. (Not supported in HTML5) | |
It defines a division or section within HTML document. | |
It is sued to define a description list. | |
It is used to define a term in description list. | |
E | |
It is used to emphasis the content applied within this element. | |
It is used as embedded container for external file/application/media, etc. | |
F | |
It is used to group related elements/labels within a web form. | |
It is used to add a caption or explanation for the | |
It is used to define the self-contained content, and s mostly refer as single unit. | |
It defines the font, size, color, and face for the content. (Not supported in HTML5) | |
It defines the footer section of a webpage. | |
It is used to define an HTML form. | |
It defines a particular area of webpage which can contain another HTML file. (Not supported in HTML5) | |
It defines group of Frames. (Not supported in HTML5) | |
H | |
to | It defines headings for an HTML document from level 1 to level 6. |
It defines the head section of an HTML document. | |
It defines the header of a section or webpage. | |
It is used to apply thematic break between paragraph-level elements. | |
It represents root of an HTML document. | |
I | |
It is used to represent a text in some different voice. | |
It defines an inline frame which can embed other content. | |
It represents the main content of an HTML document. | |
It defines an image map with active areas. | |
It represents a highlighted text. | |
It is used to insert the scrolling text or an image either horizontally or vertically. (Not supported in HTML5) | |
It is used for creating a menu list of commands. | |
It defines metadata of an HTML document. | |
It defines scalar measurement with known range or fractional value. | |
N | |
It represents section of page to represent navigation links. | |
It provides alternate content to represent in browser which does not support the elements. (Not supported in HTML5) | |
It provides an alternative content if a script type is not supported in browser. | |
O | |
It is used to embed an object in HTML file. | |
It defines an ordered list of items. | |
It is used to group the options of a drop-down list. | |
It is used to define options or items in a drop-down list. | |
It is used as container element which can show result of a calculation. | |
P | |
| It represents a paragraph in an HTML document. |
It defines parameter for an | |
It defines more than one source element and one image element. | |
It defines preformatted text in an HTML document. | |
It defines the progress of a task within HTML document. | |
Q | |
It defines short inline quotation. | |
R | |
It defines an alternative content if browser does not supports ruby annotations. | |
It defines explanations and pronunciations in ruby annotations. | |
It is used to represent ruby annotations. | |
S | |
It render text which is no longer correct or relevant. | |
It is used to represent sample output of a computer program. | |
Bài Viết Liên QuanQuảng CáoCó thể bạn quan tâmCách sửa lỗi trong speakers properties ko hiện enhancement năm 20241 tháng trước . bởi MilitaryTracingToplist được quan tâm#1
Top 7 sự tích hồ gươm - ngữ văn lớp 6 20235 tháng trước#2
Top 7 gdcd 6 bài 1 kết nối tri thức 20235 tháng trước#3
Top 7 ý nghĩa của xây dựng gia đình văn hóa 20235 tháng trước#4
Top 6 mẫu hợp đồng mượn đất làm nhà xưởng 20235 tháng trước#5
Top 3 tổng tài biến thái tôi yêu anh tập 27 20235 tháng trước#6
Top 6 kết thực phim mỹ nhân vô lệ 20235 tháng trước#7
#8
Top 8 đề tài và chủ de của tác phẩm tắt đèn 20235 tháng trước#9
Top 5 tiểu sử của thầy thích pháp hòa 20235 tháng trướcQuảng cáoXem NhiềuBánh rau câu sinh nhật chứa bao nhiêu calo năm 20241 tuần trướcTự học tiếng anh như thế nào hiệu quả năm 20241 tuần trướcTuổi đinh mão xây nhà năm nào tốt năm 20241 tuần trướcBài tập tìm hằng số cân bằng hoá 11 năm 20243 ngày trướcKhoán chi đến sản phẩm cuối cùng là gì năm 20241 tuần trướcHọ tiếng nhật của bạn là gì năm 20241 tuần trướcBăn khoăn có nghĩa là gì năm 20244 ngày trướcTìm hiểu chung về văn bản nghị luận năm 20241 ngày trướcAnh bộ đội cụ hồ gốc bỉ là gì năm 20241 ngày trướcQuảng cáoChúng tôiTrợ giúpBản quyền © 2021 Học Tốt Inc.
|