Other HTML tags that are commonly used for emphasising text include underline,<u>underline</u>, and italics, <i>italic</i>.
Which of these HTML fragments show the word ‘really’ in bold?
George Orwell was <b>really</b> Eric Blair.
George Orwell was </b>really<b> Eric Blair.
George Orwell was <b> really</b> Eric Blair.
<b>George Orwell was really Eric Blair.</b>
We have seen the HTML <b> tag that modifies text by telling the browser to displayit as bold. Another very common tag is the anchor tag <a>, which is used to addhyperlinks to web pages. In some ways, this is the defining characteristic of what itmeans to be a webpage. Here is a fragment of HTML that includes such an anchor tag.Click here <a href="www.google.com"> now! </a>It begins with <a, but unlike the relatively simple bold and underline tags, the anchortag has an argument. This means pretty much the same thing it did when we weretalking about functions in Python. Here, the argument or modifier for the anchor tag is
. This stands for
- the target of the link. After the href =we have a string that is a URL, a web address, in this case to Google. The text in themiddle (‘now!’) is often rendered in blue with an underline, although it doesn't haveto be. The anchor tag ends with </a>For this fragment of HTML, the words "Click here now!" will be drawn on the screen.The word ‘now!’ will be a hyperlink.