Html tags list with examples6/30/2023 ![]() ![]() ![]() Ul tag is used to define the unordered list in the file. You can define the height and width of the image using other attributes inside it and thus, can customize image according to yourself. If you wish to put any image in the HTML files, you can do the same using img tag. It also might contain javascript and plugin files to make the webpages interactive. ![]() It usually contains the scripting statement inside it or may direct towards any other using src attribute. When you want to define the client-side script inside your file, you use script tag. All it does is to add spacing in the paragraph and ensure that the line following it appears in the new line. It is the line break command which is used to break the lines inside the file. The syntax for this tag is:Ībove example has one row with two columns. Content inside is equivalent of one cell. It is used to define the content which should be passed in the table row. It can contain any content inside itself. It contains at least one or element into it. Even this tag is void until tags which pass the content are passed into it. Above example has 3 rows(one header and other two are values). In the above example, we have tbody tag (Note: there is no ). Used within the table tags and is used to show actual table data (it’s used after “” tag (if any). It is another one of the table tags which is used to group the body content of the table in a file. It represents the top row of table which provides the heading for the columns. It is another one of the table tags which is used to group the header content of the table in a file. There are many other tags which are passed along with it to provide the layout. It is the table tag which is declared as Īlthough this tag won’t make any difference unless some content is passed into it. It consists of “href” attribute which is very important as the destination is passed into this attribute. In this tag, you can pass a link of page or website where you will like to direct the viewer. It is basically used to group the inline content of the file. ![]() It is used to wrap the entire text in the file. This is usually used for styling the content in the file. It often acts as a container for the other elements or tags in the file. The div tag, also known as the division tag, is used to define the division of the content in the file. One thing to remember is this comes after the head tag.Īn example to use it is: this is the body So the content which you want should be visible to people, has to be incorporated into body tag. Only text can be written inside this tag.Īnything which you see on the website is written under this tag. It does not include any other tag inside it. The title tag also comes under the head tag. This tag is used when you want to give a title to your content. It is used to describe the content on the website. It is the tag which does not contain any text but encompasses all the other tags. Once you open the HTML tag, the head tag should be the first thing to come. It is declared using syntax (for HTML5): It is declared before the HTML tag as it is the instruction to the website which says that the document ahead is HTML type. If you are creating an HTML file you have to use incorporate all your content inside HTML tag. HTML is the building block for websites and there are some tags we must know to get started. ![]()
0 Comments
Leave a Reply. |