HTML-Blocks

Some HTML elements such as <div> create HTML Block. You can define other HTML element inside it.

One advantage of block level elment is - you can define style of whole black in css.


HTML Block Syntax

Attributes are provided with start tag of HTML element.

Start tag Element content End tag
<div> Define a block/section </div>
<span> Span is used to define a block of text.  It is a inline element. </span>
     
     

 


Sample Code

 

 

 






Attributes    Blocks    Color-Values    Colornames    Colors    Comments    CSS    Editors-for-writing-html    Elements    Entities    Formatting-in-HTML    Forms    Head    Headings    HTML-Reference    IFrames    Image    Javascript    Layouts    Links    Options for building websites    Paragraphs    pointers and questions    Symbol-for-Mathmatics    Symbol-for-Punctuations    Symbols    Tables    Whats-new-in-HTML5   

Advertisement

Topics