Code
Execute
<!DOCTYPE html> <html> <head> <title>Wikitechy div tag</title> </head> <body> <h2>Wikitechy HTML div tag.</h2> <div style="color: red"> <h2>This is a heading in a div element.</h2> <p> This is a paragraph in a div element.</p> </div> </body> </html>
Result