Html5: Writing HTML Using Notepad or Textedit
Html5: Writing HTML Using Notepad or Textedit
HTML Links
HTML links are defined with the <a> tag.
Example
<a href="http://www.w3schools.com">This is a link</a>
HTML Images
HTML images are defined with the <img> tag.
Example
<img src="w3schools.jpg" width="104" height="142">
HTML Lines
The <hr>tag creates a horizontal line in an HTML page. The hr element can be used to separate content:
Example
<p>This is a paragraph.</p> <hr>
HTML Comments
Comments can be inserted into the HTML code to make it more readable and understandable. Comments are ignored by the browser and are not displayed. Comments are written like this:
Example
<!-- This is a comment --> Try it yourself
Example
<p>This is<br>a para<br>graph with line breaks</p>
Try it yourself
<del>
Example
<a href="http://www.w3schools.com/" target="_blank">Visit W3Schools!</a> Try it yourself
will first add a slash to the address, and then create a new request like this: href="http://www.w3schools.com/html/".
The <script> tag is used to define a client-side script, such as a JavaScript. The <script> element will be explained in a later chapter.