br (HTML5)

Specifies a hard line break in the text.

Properties & Events

KeyDescriptionAvailability
classCSS class assigned to the element.
chrome 1.0safari 1.0Firefox 1.0ie 1.0opera 1.0
clearSpecifies how the text flows with regards to any surrounding elements.
chrome 1.0safari 1.0Firefox 1.0ie 4.0opera 7.0
idUnique identifier for the element.
chrome 1.0safari 1.0Firefox 1.0ie 1.0opera 1.0
styleInline style for the element.
chrome 1.0safari 1.0Firefox 1.0ie 1.0opera 1.0
titleShort text description for the element.
chrome 1.0safari 1.0Firefox 1.0ie 1.0opera 1.0

Examples having uses of: 'br'

2 votes
15k views

JavaScript Prompt Object

Prompt box used for taking input from user. If you click on ok button then it return input value else it return null
3 votes
14k views

CSS Animation

CSS3 animations make it possible to animate transitions from one CSS style configuration to another. Animations consist of two components: A style describing the animation and a set of keyframes that indicate the start and end states of the animation's CSS style, as well as possible intermediate waypoints along the way.
1 votes
13k views

CSS Linear Gradient

The CSS linear-gradient function creates an effect which represents a linear gradient of colors on the element. The Top to Bottom gradient effects the element from top to bottom and the left to right gradient effects the element from left to right.
0 votes
12k views

CSS Transition

CSS3 transitions are effects that let an element gradually change from one style to another. To do this, you must specify the effect and the duration.
2 votes
11k views

jQuery - Get CSS information

Using the css property we can get the simple CSS property value of an attribute.
4 votes
11k views

CSS Rounded Corners

The CSS3 border-radius property allows web developers to easily utilise rounder corners in their design elements, without the need for corner images or the use of multiple div tags or JavaScript.
4 votes
10k views

HTML Attributes

HTML attributes provide additional information about HTML elements. Some HTML elements does not require attributes but other needs it to work correctly. The link address is specified in the href attribute for the <a> tag.
0 votes
10k views

CSS Dimension with pixel

The dimension property of the CSS allows us to manage the height and width of the HTML elements.
1 votes
10k views

jQuery Selectors Basics

jQuery selectors allows us to select HTML elements and manipute them as a group or as a single object. In jQuery it's common that selectors start with dollar sign and parentheses. Syntax:- $.(selector).methodName();
0 votes
10k views

JavaScript Click and Mouse Events

Javascript Events are the actions which are detected by the javascript when they are fired.
0 votes
8k views

Javascript Guidelines

There are some guidelines which must be remembered while coding in javascript. 1) Javascript is case-sensitive language. 2) JavaScript ignores extra white spaces. 3) You can break the line of code.
3 votes
2k views

HTML Br

This empty HTML element forces a line break.
0 votes
2k views

HTML Expires

Use the meta tag to make the cache for your web page expire. If you are looking for a way to stop Google from caching your site, the Meta Expires tag will not do this for you. To stop Google to caching your site use following meta tag: <meta http-equiv="cache-control" content="no-cache">
1 votes
2k views

Empty elements

HTML elements with no content are called empty elements. <br/> is an empty element without a closing tag (the <br/> tag defines a line break). Tip: In XHTML, all elements must be closed. Adding a slash inside the start tag, like <br />, is the proper way of closing empty elements in XHTML (and XML).
0 votes
2k views

JavaScript onselect Event

Triggers whenever you Select/Highlight some text within textbox or textarea.
1 votes
2k views

HTML5 wbr

The Word Break Opportunity (<wbr></wbr>) specifies where in a text it would be ok to add a line-break. Tip: When a word is too long, or you are afraid that the browser will break your lines at the wrong place, you can use the <wbr> element to add word break opportunities.
0 votes
2k views

HTML5 Keygen

The HTML <keygen> tag is used for generating a key pair. When the control's form is submitted, the private key is stored in the local keystore, and the public key is packaged and sent to the server.
1 votes
2k views

Html Input Form

Example form using <legend> and <fieldset> to make the form layout fancy.
2 votes
2k views

HTML Input

This HTML element specifies an input control for a form. The type of input is set by the type attribute and can be a variety of different types. (See Advanced HTML for more information about the different input types)
0 votes
2k views

My second page

A basic web page with some text, paragraph, bold text and line breaks.
1 votes
1k views

HTML Href

Href (Hypertext Reference) is an HTML attribute of an anchor (link) tag that requires a valid URL in order to properly direct a user to a different location on current webpage or external webpage.
0 votes
1k views

HTML Radio buttons and Checkboxes

Form containing two radio buttons and two checkboxes. Note: The name attribute is used to group the radio buttons and checkboxes into groups.
0 votes
1k views

CSS Animation with time frames

This animation allows to add time to animation effect.
2 votes
1k views

jQuery Slide

The jQuery slideUp and slideDown methods gradually change the height of the selected elements.
0 votes
1k views

JavaScript window Object

Create a new window and move new browser window.
0 votes
1k views

HTML Text Format

Examples of text-specific code that you can create by using HTML formatting tags.
0 votes
1k views

jQuery Mouse Event

jQuery mouse events are events that have to do with actions of the mouse. These can be a click, double-click, mouse down and more. Mouse events can be used in two different ways.
1 votes
1k views

jQuery Browser Detection

jQuery.browser contains flags for the useragent, read from navigator.userAgent. We recommend against using this property; please try to use feature detection instead (see jQuery.support). jQuery.browser may be moved to a plugin in a future release of jQuery.
0 votes
1k views

JQuery Syntax

With jQuery you select (query) HTML elements and perform "actions" on them. The jQuery syntax is tailor made for selecting HTML elements and perform some action on the element(s) or attributes to element(s)
1 votes
1k views

JavaScript onfocus Event

JavaScript event that triggers when object gets focus.
0 votes
1k views

JavaScript function with arguments

A function can take arguments whenever it is called. When arguments are passed on calling of function, the fuction is called 'function with arguments'. When a funtion does not take any argument function is called 'function without argument'. A function can return a value using the keyword 'return'.
0 votes
1k views

JavaScript iframe height

The Frame and Iframe represents html frame and iframe respectively.This DOM object has all the properties that a HTML element has. We can change these properties using javascript.
0 votes
1k views

CSS enabled & disabled

These are used to apply the properties on the elements that are either enable or disable.
0 votes
1k views

jQuery Animate Properties

jQuery animate also support different properties and multiple unit types within one animation.
0 votes
1k views

JavaScript Loop with break and continue

Javascript provides us the facility to break a loop in middle and also to continue the loop without executing the whole body of the loop.There are two keywords that provides these facilities: 1) break 2) continue
0 votes
1k views

CSS Dimension with percentage

This property allows us to define the height and width of the HTML elements in the percentage.
1 votes
1k views

jQuery Selectors Types

jQuery selectors allow you to select and manipulate HTML elements as a group or as a single element.