Introduction to HTML programming
Free

HTML Blocks
To define block in web page we uses two tag-
1. <div> tag :
Defines a section in a document (block-level)
2. <span> tag :
Defines a section in a document (inline)
HTML <div> Tag :
- The <div> tag defines a division or a section in an HTML document.
- The <div> tag is used to group block-elements to format them with CSS.
Syntax :
<div> ...... </div>
Example :
<!DOCTYPE html> <html> <body> <div style="background-color:red"> <p>Welcome</p> <p>Webclasses.in</p> </div> </body> </html>
Click On Image For Zoom View
HTML <span> tag :
This tag is used for changing style in particular section or a letter or paragraph in web page.
Syntax :
<span>..... </span>
Example :
<!DOCTYPE html> <html> <body> <p>Wel<span style="color:blue">come</span></p> <p>Web<span style="color:red">classes</span>.in</p> </body> </html>
Click On Image For Zoom View
Prev
HTML iframe Tag
Next
Html div tag
Introduction to html programming lessons. You will learn how to create a website using html code.you will also learn how to create basic html programs.
Course Features
- Lectures 30
- Quizzes 0
- Duration 50 hours
- Skill level All levels
- Language English
- Students 1
- Certificate No
- Assessments Self