Computer scienceBackendDjangoTemplates

Django template inheritance

Creating a block

Report a typo

Assuming you already have an HTML template ready called layout.html.

  • Within your HTML title tag, define a block tag with the name of title;
  • Within your HTML body tag, define a block tag with the name of content;
Write HTML and CSS code
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>Genius blog</title>
</head>
<body>
</body>
</html>





Completed 0 of 2
Create a block tag with the name: title.
Create a block tag with the name: content.
___

Create a free account to access the full topic