Text and DIVs

Headings

Headings There are six level of heading in HTML from <h1> to <h6>. They create a hierarchy of information, and are used to create headings for sections within the document. The <h1> represent the bigger size and<h6> represent the smaller size of text.

Paragraphs

Paragraphs Paragraphs are used to represent a block of text or a single line of text. Each paragraph is displayed on a new line, only a single whitespace is recognized between two words and Multiple white spaces are collapsed into a single one.

Breaks

Breaks Here, you will see different ways to introduce line breaks in between text blocks. Breaks: Element <br> The break element <br> is used to introduce breaks in between text. Subsequent texts appear on a new line. It is mostly used for writing poems, address, tablelist.     Word Break Opportunity: Element <wbr> Word Break opportunity (<wbr>) element …

Breaks Read More »

HTML Div Element

HTML Div Element Div element is used to create structure and give meaning to HTML elements. Different types of Div element There are two types of Div element named as Block and Inline: BLOCK: This Block level element appear as a block i.e they appear on the new line every time forcing line breaks. Eg: <h1>, …

HTML Div Element Read More »

Extra Elements

Extra Elements HTML5 Editable Text: contenteditable Attribute A new addition to HTML5 is attribute contenteditable, it allows users to edit the text(contents) on the page. To allow this feature set contenteditable=”true”, to disable this feature set contenteditable=”false” and if no setting is provided then it inherits the property settings from its parents.     HTML5 Element details Element The …

Extra Elements Read More »

Scroll to Top