Chapter 24: Void Elements
Not all HTML tags are of the same structure. While most elements require an opening tag, a closing tag, andcontents, some elements – known as void elements – only require…
Guides and updates from the DigitalHubZ team.
Not all HTML tags are of the same structure. While most elements require an opening tag, a closing tag, andcontents, some elements – known as void elements – only require…
Attribute Description Global Attributes that are available to any HTML5 element. For comprehensive documentation of theseattributes see: MDN Global attributes name A string representing the name of an output. As…
Attributes Description for Reference to the target ID Element. I.e: for=”surname” form HTML5, [Obsolete] Reference to the form containing the Target Element. Label elements are expected within a <form> Element.…
Basic Navigation Bar Navigation bars are essentially a list of links, so the ul and li elements are used to encase navigation links. HTML5 Navigation Bar To make a navigation…
Nav Element The <nav> element is primarily intended to be used for sections that contain main navigation blocks for the website, this can include links to other parts of the…
The div element in HTML is a container element that encapsulates other elements and can be used to group andseparate parts of a webpage. A div by itself does not…
Attribute Description accept-charset Specifies the character encodings that are to be used for the form submission. action Specifies where to send the form-data when a form is submitted. autocomplete Specifies…
Parameter Details class Indicates the Class of the input id ndicates the ID of the input type Identifies the type of input control to display. Acceptable values are hidden, text,…
Tag/Attribute Value <img> Below are the image map-specific attributes to use with <img>. Regular <img> attributes apply. usemap The name of the map with a hash symbol prepended to it.…
Parameters Details src Specifies the URL of the image srcset Images to use in different situations (e.g., high-resolution displays, small monitors, etc) sizes Image sizes between breakpoints crossorigin How the…
CSS provides styles to HTML elements on the page. Inline styling involves usage of the style attribute in tags, and is highly discouraged. Internal stylesheets use the <style> tag and…
Attribute Details src Specifies the path to a JavaScript file. Either a relative or absolute URL. type Specifies the MIME type. This attribute is required in HTML4, but optional in…