Thursday, October 31, 2024

lecture#4

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>

OUTPUT 


browser does not display the HTML tags, but uses them to determine how to display the document:

TAGS

  1. BR TAG:this tag is used to break some line of the paragraph*
  2. we can use br tag in every tag when needed
  3. br tag has only an opening tag
  4. because it is just used to break a line
  5. not to write a paragraph or content in a tag
  6. 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


  1. 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*

No comments:

Post a Comment