PARAGRAPH TAG
- paragraph tag is used to display some text
- <!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>FIRST HEADING</title>
</head><body> <h1>my first heading</h1> <p>my first paragraph</p></body></html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>FIRST HEADING</title>
</head>
<body>
<h1>my first heading</h1>
<p>my first paragraph</p>
</body>
</html>
OUTPUT
browser does not display the HTML tags, but uses them to determine how to display the document:
TAGS
- BR TAG:this tag is used to break some line of the paragraph*
- we can use br tag in every tag when needed
- br tag has only an opening tag
- because it is just used to break a line
- not to write a paragraph or content in a tag
- we use a br tag after using space then writ a br tag
<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title></head><body> <h1>my first heading <br>my first heading</h1> <p>my first paragraph <br>my first paragraph</p> </body></html>
browser does not display the HTML tags, but uses them to determine how to display the document:
TAGS
- BR TAG:this tag is used to break some line of the paragraph*
- we can use br tag in every tag when needed
- br tag has only an opening tag
- because it is just used to break a line
- not to write a paragraph or content in a tag
- we use a br tag after using space then writ a br tag
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<h1>my first heading <br>my first heading</h1>
<p>my first paragraph <br>my first paragraph</p>
</body>
</html>
output
my first heading
my first heading
my first paragraph
my first paragraph
my first paragraph
my first paragraph
- b tag is simply used to bold something
<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title></head><body> <h1>my first <b>heading</b></h1> <p>my first <b>heading</b></p> </body></html>OUTPUT
- b tag is simply used to bold something
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<h1>my first <b>heading</b></h1>
<p>my first <b>heading</b></p>
</body>
</html>
OUTPUT
my first heading
my first heading
*the end*
my first heading
*the end*
No comments:
Post a Comment