-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhtml
50 lines (37 loc) · 908 Bytes
/
html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# image resize
# aspect ratio is not preserved by default if you only
# specify one of width or height
style="width:500px;height:600px;"
# degree symbol
°
# justify text in paragraph
<p align="justify">
# change size of table
<table style="width:100%" >
# center an item
<center> </center>
# comments in html
<!-- content -->
# css padding
top right bottom left
if left is missing assumed to be zero
# blocks side by side css
float:left;
# embed a link
<a href=\path> "Text to show </a>
# embed php
<?php
$txt1 = "learn php";
$txt2 = "w3schools.com";
$x = 5;
$y = 4;
print "<h2>" . $txt1 . "</h2>";
print "study php at " . $txt2 . "<br>";
print $x + $y;
$image_folder = "daily_images";
$file_type = ".jpg";
$today = date('l');
$image_name = $today . $file_type;
print "expected image path: $image_name<br>";
print "<img src=\"$image_folder/$image_name\" alt=\"put some text here\" />";
?>