HomeSelenium

HTML for Selenium (Part 12) – Adding Paragraphs in the Web Page

HTML for Selenium (Part 12) – Adding Paragraphs in the Web Page

<<Previous Post                            << Complete Tutorial>>                              Next Post>>

In the previous posts, we have understood the below HTML basics:

  • HTML Structure
  • > Also understand the previous posts on HTML in this tutorial for understanding the HTML basics (Click here to get started on HTML Basics for Selenium)

Once you have understood the above HTML Structure and other HTML Basics, you can now understand the steps for adding Paragraphs to the Web Page using HTML.

Let’s get started

HTML for Selenium (Part 12) – Adding Paragraphs in the Web Page

Follow the below steps for adding Paragraphs to the Web Page using HTML.

1) HTML provides the tags <p> .. </p> for adding  Paragraphs where ever necessary on the Web Page. The following is an example of the same:

<p> QAFox is a free Online QA Tutorial, where all the software testing concepts and tools are 
explained in the easiest way to keep you updated in Software Testing.</p>
<p> I am a software testing professional since 2007 (12 years of experience). I am fond of 
software testing - learning, blogging, youtubing, video courses and training. My blogging sites
 for Software Testing Professionals: QAFox.com and Selenium-by-arun.blogspot.com. Udemy Instructor
 for the Biggest Selenium Video Course on Udemy (www.udemy.com/selenium-by-arun).</p>

In the above example, there are two paragraphs mentioned using <p> .. </p> tags. In the coming steps, I will practically demonstrate how they display on the web page.

2) Download the Document having HTML structure from here (Download here)

3) Open the above-downloaded Document in NotePad++ as shown below:

HTML for Selenium - Part 12 - NotePad Plus Plus

4) Add multiple <p> ..</p> tags with same text as shown below and save:

HTML for Selenium - Part 12 - Code

5) Right click on the above-saved HTML  file and select ‘Open’ option as shown below:

HTML for Selenium - Part 12 - Open

6) Observe that the two paragraphs got displayed on the web page as shown below:

HTML for Selenium - Part 12 - Displayed

Here concludes this article and will explain more HTML basics in the upcoming posts.

Next Steps:

  • > To learn more about Selenium, continue to the next post (Click on Next Post link below)
  • > Check complete Selenium Tutorial Contents here (Click here)

Please leave your questions/comments/feedback below.

Happy Learning ?

About Me > Arun Motoori

On a mission to contribute to the Software Testing Community in all possible ways.

<<Previous Post                            << Complete Tutorial>>                              Next Post>>

Comments (0)

Leave a Reply

Your email address will not be published. Required fields are marked *