Data HTML

HTML <data> Tag To provide a machine-readable version of the specified content, the HTML <data> tag is used. The data is displayed in a special format. It is useful both for getting a machine-readable value for data processors and for displaying a human-readable value on a browser. Syntax: <data value=”1″>content</data> Example: <!DOCTYPE html> <html> <body> … Read more

Col HTML

HTML <col> Tag In an HTML table, we can define common column properties for each column within <colgroup> element using the HTML <col> tag. Instead of applying individual style rules for each column cell, it allows to application of common style rules for each column cell. There is no need for an end tag for … Read more

Code HTML

HTML <code> Tag The HTML <code> tag is a phrase tag. It is used to specify a piece of computer code. It displays the contents in the browser’s default monospace font (the fixed-width font). HTML Phrase Tags: Tag Uses <em> To display an emphasized text. <strong> To display an important text. <dfn> To specify a … Read more

Center HTML

HTML <center> Tag The HTML <center> tag is not supported in HTML5. It is a block-level element, and thus both block-level and inline contents are included within it. It displays the content in the middle of the page. After being deprecated in HTML 4, it has been obsolete in HTML5. The CSS property text-align: center; … Read more

Canvas HTML

HTML <canvas> Tag To draw graphics on a web page, the HTML 5 <canvas> tag is used which is a low-level, procedural model. Using a scripting language like JavaScript, it draws graphics and provides HTML with a bitmapped surface to work with. It acts as a container for graphics. A scripting language is needed to … Read more

Button HTML

HTML <button> Tag To create a clickable button, the <button> tag is used. It is usually required within an HTML form. Contents like text or images can be placed within the <button> tag. The “type” attribute needs to be specified for a <button> tag because, for the <button> tag, different browsers can have different default … Read more

BR HTML

HTML <br> Tag To break a line in a paragraph, the HTML <br> tag is used. It is especially useful for poems or addresses where the line break is necessary. Being an empty tag, it does not need a closing tag. The HTML <br> tag is not meant to be used for the margin between … Read more