[html tag review]

html tag review

  1. html is an interpreted language, not a compiled one. Browsers are fault tolerant.
  2. The html page consists of a pair of tags:
<html> Call it the start tag
</html>Call it the end tag

3.title refers to the title of the web page
4. You can set the encoding method in the meta tag
5. <br/> indicates line feed. Br a label is a single label. Single label: the start label and the end label are the same, and the slash is placed after the word
6. p indicates paragraph label
7.img label picture label

  • The src attribute indicates the path of the picture file
  • width and height indicate the size of the picture
  • alt indicates the prompt of the picture
  1. h1~h6: title label
  2. List label:
  • ol ordered list
    Start means to start from *, and the type displayed by type: a a I I 1 (deault)
  • ul unordered list
    type disc(default) , circle , square
  1. u underline b bold i Italic
  2. Superscript sup subscript sub
  3. Entities in HTML: less than sign < greater than or equal sign ≥ copyright ©
  4. span block mark without line breaks
  5. a means hyperlink
  • href linked address
    • target:
      • _ self opens in this window
      • _ blank opens in a new window
      • _ Parent opens in the parent window
      • _ Top opens in the top window
		<title>This is my first web page</title>
		<meta charset="UTF-8">
		HELLO WORLD!<br/>Hello, HTML!
		<p>Here is a paragraph</p>
		<p>Here is the second paragraph</p>
		<img src="D:\sgg2021\0927_javaweb\1109\02.code\imgs\girl.jpg" width="57" height="73" alt="Here is a picture"/>
		<h1>Title I</h1>
		<h2>Title I</h2>
		<h3>Title I</h3>
		<h4>Title I</h4>
		<h5>Title I</h5>
		<h6>Title I</h6>
		Ranking list of Wulin Masters:
		<ol type="i" start="3">
			<li>Sweeping monk</li>
			<li>Phyllostachys pubescens</li>
		List of Wulin assembly personnel:
		<ul type="circle">
			<li>Qiao Feng</li>
			<li>Madame Ma</li>

		You are?<b><i><u>like</u></i></b>yes<b>sweet</b>Moon cake or<i>salty</i><u>Moon Cake</u>?

		Chemical formula of water molecule: H<sub>2</sub>O <br/>
		Chemical formula of oxygen: O<sup>2</sup><br/>

		Registered trademark &reg;
		Copyright symbol &copy;

		<span>You Ting Zhao</span>,Take revenge on your wife.

		<a href="http://www.baidu. com" target="_ Self "> Baidu</a>


Centered picture:

table label

  1. Table table
    Row tr
    Column td
    Header column th

    table has the following attributes (although it has been eliminated, it is best to understand it)

    • Border: the thickness of the table border
    • Width: width of the table
    • cellspacing: cell spacing
    • cellpadding: cell filling

    tr has an attribute: align - > center, left, right

    rowspan: row merge
    colspan: column merge

		<title>Form label learning</title>
		<meta charset="UTF-8">
		<table border="1" width="600" cellspacing="0" cellpadding="4">
			<tr align="center">
				<th>full name</th>
				<th>Famous stunt</th>
				<th>Internal skill value</th>
			<tr align="center">
				<td>Qiao Feng</td>
				<td>a group of beggars</td>
				<td>Shaolin Changquan</td>
			<tr align="center">
				<td>Phyllostachys pubescens</td>
				<td>Lingjiu Palace</td>
				<td>Beiming magic skill</td>
			<tr align="center">
				<td>Sweeping monk</td>
				<td>Shaolin Temple</td>
				<td>Seventy two unique skills</td>
		<table border="1" cellspacing="0" cellpadding="4" width="600">
				<th>Unit Price</th>
			<tr align="center">
				<td rowspan="2">5</td>
				<td><img src="imgs/del.jpg" width="24" height="24"/></td>
			<tr align="center">
				<td><img src="imgs/del.jpg" width="24" height="24"/></td>
			<tr align="center">
				<td><img src="imgs/del.jpg" width="24" height="24"/></td>
			<tr align="center">
				<td colspan="4">181</td>

Form form

1.input type= "text" indicates a text box, in which the name attribute must be specified, otherwise the data in this text box will not be sent to the server in the future
2. input type= "password" indicates the password box
3. input type= "radio" means radio button. It should be noted that the value of the name attribute is consistent, which will have the effect of mutual exclusion; You can set the items selected by default through the checked attribute
4. input type= "checkbox" indicates a check box. It is recommended to keep the value of the name attribute consistent, so that when we get the value on the server in the future, we will get an array
5. select indicates the drop-down list. Each option is option, where the value attribute is the value sent to the server, and selected indicates the item selected by default
6. textarea refers to a multi line text box (or text field), and its value value is the content between the start and end labels
7. input type= "submit" indicates the submit button
8. input type= "reset" indicates the reset button
9. input type= "button" indicates a normal button

		<title>Form label learning</title>
		<meta charset="UTF-8">
		<form action="demo04.html" method="post">
			Nickname?<input type="text" value="Please enter your nickname"/><br/>
			password:<input type="password" name="pwd"/><br/>
			Gender:<input type="radio" name="gender" value="male"/>male
	  			  <input type="radio" name="gender" value="female" checked/>female<br/>
			Hobbies:<input type="checkbox" name="hobby" value="basketball"/>Basketball
				  <input type="checkbox" name="hobby" value="football" checked/>Football
				  <input type="checkbox" name="hobby" value="earth" checked/>earth<br/>
			Constellation:<select name="star">
					<option value="1">Aries</option>
					<option value="2" selected>Taurus</option>
					<option value="3">Gemini</option>
					<option value="4">scorpio</option>
					<option value="5">libra</option>
			remarks:<textarea name="remark" rows="4" cols="50"></textarea><br/>
			<input type="submit" value=" Register "/>
			<input type="reset" value="Reset"/>
			<input type="button" value="This is a normal button"/>

Tags: html Javascript Front-end

Posted by skurai on Tue, 09 Aug 2022 21:54:34 +0530