rightexcel.blogg.se

Html indenting paragraphs
Html indenting paragraphs











  1. HTML INDENTING PARAGRAPHS CODE
  2. HTML INDENTING PARAGRAPHS PROFESSIONAL

HTML INDENTING PARAGRAPHS CODE

Placing the lines one below the other and following indentation criteria obeys, mainly, for readability reasons.Īlso when we use tables (quiet, we will arrive) you will see that there are slight changes in appearance on the page if we place the code in a single line or in several.

HTML INDENTING PARAGRAPHS PROFESSIONAL

Think that, at the moment, we are working with very simple codes and with few lines, but it is normal that a professional web page has more than three hundred lines of HTML code. However, this system presents a serious deficiency: when we want to fix in the code something that does not work or we want to improve it or expand it, there is no one who can follow or modify the disorganized code. When you run it, you will see the same result as in the case of the code multiple_highs.htm. Try typing the above code into a single line in the notebook and save it to the disk with the name todo_junto. OrganizaciónEsto debería de ser una línea de texto. For example, the last code we tested would work exactly the same if we had written it like this: This gives us the rule that, in fact it does not matter if the code is written in one line or in many. If we do not insert the line breaks all the text will appear on the same line (unless it does not fit wide on the screen, of course). As we have seen, it does not matter if we put the text in a line or in several.

html indenting paragraphs

The result will be the one you see in the following figure:Īs you can see, the browser respects the line breaks without introducing any other variation in the text, as if the tag was equivalent to the famous "return of car" of the old mechanical typewriters.Īt this point, let's clarify something. Save it with the name varios_saltos.htm and execute it. If you need the most separated lines, you can enter more line breaks (more tags) in the code, as in the following example: Let's see an example, modification of the previous code. The latter is because, unlike other tags, it does not establish an effect on the page (as does, for example, body, which has to mark the beginning and end of the contents), but this tag executes an action punctual (a line break). This tag does not receive any kind of attribute and has no closure, that is, it does not exist.

html indenting paragraphs

This is because browsers do not recognize a line break, unless we specifically indicate it. How you see, the result is quite confusing, especially if one is used to working with, for example, text processors, where lines of text stay (almost always) where you place them. When you execute it, you will see all the text on a single line, instead of the two lines you have typed, as shown in the following figure: Start typing the following code called organize_text_1.html:













Html indenting paragraphs