Paragraph HTML is an markup language to create a webpage. In webpages we also need paragraphs. You all are familiar with word paragraph. To create a paragraph we use <p>..........</p> tag. Syntax: <html> <body> <p> This is an example paragraph </p> </body> </html> Attributes of <p> tag We can use all inline css attributes in paragraph tag to decorate and also id & class to target in CSS file or in internal CSS. Don't worry if you are getting trouble in understanding what are Inline CSS, Internal CSS, or CSS file, we will study them in very easy language and in deep soon. Let's first see a syntax with id & classes <html> <body> <p id="firstpara" class="firstpara"> This is an example paragraph </p> </body> </html> Here what we did we just given an id and an class to target specific paragraph in Cascading Style Sheet(CSS) Click here to learn about CSS Click he...
Comments
Post a Comment