Theory Class: Continuing HTML

today we learn more about HTML, but without using direct practice such as on the lab yesterday. we learnt more about HTML element and also a little bit of CSS in HTML. there are many text element in HTML such as:

  • <p> </p> for parafraph
  • <br\> for line break
  • <hr\> for horizontal line
  • <pre> <\pre> for preformatted text
  • Logical Styles:
    • <em> </em> emphasize the text
    • <strong> </strong> the text is strong
    • <code> </code> the text is some computer code
  • physical style:
    • <b> </b> for bolding the text
    • <i> </i> making the text italic

besides text, we also using image in HTML and the basic code for it is using img tags such as: 
<img src = "imgsrc.jpg">. 

We also can change the width and height of the image inside the tags. the format for it is:
<img src="your image source" width="width of your image" height="height of your image">

if you want to directly said the image name in the image source, you should make sure that the image file is in the same folder with your html file. if it is not in the same folder, the image wont be shown. for the width and the height of your image, just put the number you want for it size, it will use pixel as it default sizing.

there are a lot of other element that cannot be explained one by one, but one thing should be remembered, it is just a basic of HTML, there are a lot more you can learn. besides that, CSS will be used more later on as it would be more easy to edit and won't disturb HTML coding.

Comments

Popular posts from this blog

First Lab Class and First Post

Lab Class: HTML basic